Add nextup and nextdown math functions
[platform/upstream/glibc.git] / ChangeLog
1 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2
3         * NEWS: Mention addition of nextup and nextdown.
4         * manual/arith.texi: Document nextup and nextdown.
5         * manual/libm-err-tab.pl: Add nextup and nextdown.
6         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
7         * math/Versions (libm): Add GLIBC_2.24.
8         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
9         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
10         Add new test.
11         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
12         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
13         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
14         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
15         (nextup_test_data): Likewise.
16         (nextdown_test_data): Likewise.
17         * math/s_nextdown.c: New file.
18         * math/s_nextdownf.c: Likewise.
19         * math/s_nextdownl.c: Likewise.
20         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
21         F(nextup): New function.
22         F(nextdown): Likewise.
23         * math/tgmath.h: Add nextup and nextdown.
24         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
25         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
26         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
27         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
28         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
29         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
30         Add nextup and nextdown.
31         (CFLAGS-nldbl-nextup.c): New variable.
32         (CFLAGS-nldbl-nextdown.c): Likewise.
33         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
34         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
35         * sysdeps/nacl/libm.abilist: Update.
36         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
37         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
38         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
39         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
40         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
41         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
42         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
43         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
44         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
45         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
46         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
47         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
48         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
49         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
50         Likewise.
51         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
52         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
53         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
54         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
55         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
56         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
57         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
58         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
59         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
60         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
61         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
62         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
63         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
64
65 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
66
67         * manual/pattern.texi: Fix typos & grammar errors.
68
69 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
70
71         * manual/search.texi: Fix typos & grammar errors.
72
73 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
74
75         * manual/message.texi: Fix typos & grammar errors.
76
77 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
78
79         * manual/contrib.texi: Fix spelling typos.
80         * manual/crypt.texi: Likewise.
81         * manual/filesys.texi: Likewise.
82         * manual/locale.texi: Likewise.
83         * manual/message.texi: Likewise.
84         * manual/nss.texi: Likewise.
85         * manual/string.texi: Likewise.
86
87 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
88
89         * manual/locale.texi: Fix typos & grammar errors.
90
91 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
92
93         * manual/charset.texi: Fix typos & grammar errors.
94
95 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
96
97         * manual/string.texi: Fix typos.
98
99 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
100
101         * manual/ctype.texi: Fix typos.
102
103 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
104
105         * manual/memory.texi: Fix various typos & grammar errors.
106
107 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
108
109         [BZ #20255]
110         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
111         * math/libm-test.inc (fdim_test_data): Add another test.
112
113         [BZ #6796]
114         [BZ #20255]
115         [BZ #20256]
116         * math/s_fdim.c: Include <math_private.h>.
117         (__fdim): Use math_narrow_eval on result.
118         * math/s_fdimf.c: Include <math_private.h>.
119         (__fdimf): Use math_narrow_eval on result.
120         * sysdeps/i386/fpu/s_fdim.S: Remove file.
121         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
122         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
123         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
124         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
125         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
126         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
127         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
128         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
129         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
130         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
131         * math/libm-test.inc (fdim_test_data): Expect errno setting on
132         overflow.  Add sNaN tests.
133
134         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
135         fpclassify.
136         * math/s_fdimf.c (__fdimf): Likewise.
137         * math/s_fdiml.c (__fdiml): Likewise.
138
139 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
140
141         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
142         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
143         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
144         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
145         ifunc'ed strcasecmp/strncasecmp.
146         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
147         [EALIGN]: Removed.
148         [END]: Likewise.
149         [__strcasecmp]: Define instead of the above to control symbol name.
150         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
151         for __strcasecmp_power8.
152         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
153         for __strncasecmp_power8.
154         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
155         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
156         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
157         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
158         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
159         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
160
161 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
162
163         [BZ #20252]
164         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
165         arguments when second argument is a NaN.
166         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
167         qNaN tests.
168
169         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
170         (conj_test_data): Likewise.
171         (copysign_test_data): Likewise.
172         (creal_test_data): Likewise.
173         (fma_test_data): Likewise.
174         (fmod_test_data): Likewise.
175
176         [BZ #20250]
177         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
178         itself.
179         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
180         zero input to itself.
181         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
182         Likewise.
183         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
184         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
185         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
186         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
187         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
188
189 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
190
191         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
192         * nptl/tst-cancel4-common.c: New file.
193         * nptl/tst-cancel4-common.h: Likewise.
194         * nptl/tst-cancel4.c: Move common definitions to
195         tst-cancel4-common.{c,h} file.
196         * nptl/tst-cancel4_1.c: New test.
197         * nptl/tst-cancel4_2.c: New test.
198
199 2016-06-13  Florian Weimer  <fweimer@redhat.com>
200
201         [BZ #20248]
202         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
203         (write_message): New function.
204         (stackoverflow_handler): Call it instead of printf, to avoid
205         excessive stack usage by printf.
206         (do_test): Restore SIGSEGV, SIGBUS default handlers.
207
208 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
209
210         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
211         (prio_inherit_missing): Remove define.
212         * sysdeps/unix/sysv/linux/arm/kernel-features.h
213         (__ASSUME_FUTEX_LOCK_PI): Likewise.
214         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
215         Likewise.
216         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
217         (__ASSUME_FUTEX_LOCK_PI): Likewise.
218         * sysdeps/unix/sysv/linux/mips/kernel-features.h
219         (__ASSUME_FUTEX_LOCK_PI): Likewise.
220         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
221         (__ASSUME_FUTEX_LOCK_PI): Likewise.
222
223 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
224
225         [BZ #19670]
226         [BZ #19672]
227
228         * io/test-lfs.c (do_prepare): Use xmalloc.
229         * io/tst-fcntl.c (do_prepare): Likewise.
230         * libio/tst-fopenloc.c (do_bz17916): Likewise.
231         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
232         * login/tst-utmp.c (do_prepare): Likewise.
233         * posix/tst-exec.c (do_prepare): Likewise.
234         * posix/tst-pathconf.c (prepare): Likewise.
235         * posix/tst-spawn.c (do_prepare): Likewise.
236         * posix/tst-truncate.c (do_prepare): Likewise.
237         * rt/tst-aio.c (do_prepare): Likewise.
238         * rt/tst-aio64.c (do_prepare): Likewise.
239
240 2016-06-11  Florian Weimer  <fweimer@redhat.com>
241
242         [BZ #20237]
243         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
244         (get*ent): Set entidx to NULL during initialization.  If entidx is
245         NULL, start iteration from the beginning.
246
247 2016-06-11  Florian Weimer  <fweimer@redhat.com>
248
249         * malloc/malloc.c (musable): Return correct size for dumped fake
250         mmapped chunk.
251
252 2016-06-11  Florian Weimer  <fweimer@redhat.com>
253
254         [BZ #20222]
255         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
256         (_IO_cookie_write): Likewise.
257         (_IO_cookie_seek): Likewise.
258         (_IO_cookie_close): Likewise.
259         (_IO_old_cookie_seek): Likewise.
260         (set_callbacks): New function.
261         (_IO_cookie_init): Call set_callbacks to copy callbacks.
262
263 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
264
265         * locale/programs/localedef.c (oldstyle_tables): Remove.
266         * locale/programs/localedef.h (oldstyle_tables): Likewise.
267
268 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
269
270         [BZ #20240]
271         * math/Makefile (CFLAGS-s_modf.c): New variable.
272         (CFLAGS-s_modff.c): Likewise.
273         (CFLAGS-s_modfl.c): Likewise.
274         * math/libm-test.inc (modf_test_data): Add sNaN tests.
275
276 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
277
278         [BZ #20215]
279         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
280         [!__GNUC_PREREQ (3,2)]: Likewise.
281
282 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
283
284         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
285         (msghdr.msg_controllen): Likewise.
286         (cmsghdr.cmsg_len): Likewise.
287         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
288         ptw-oldsendmsg.
289         (CFLAGS-oldrecvmsg.c): Remove rule.
290         (CFLAGS-oldsendmsg.c): Likewise.
291         (CFLAGS-recvmsg.c): Add rule.
292         (CFLAGS-sendmsg.c): Likewise.
293         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
294         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
295         (CFLAGS-recvmsg.c): Remove rule.
296         (CFLAGS-sendmsg.c): Likewise.
297         (CFLAGS-oldrecvmsg.c): Likewise.
298         (CFLAGS-oldsendmsg.c): Likewise.
299         (CFLAGS-recvmmsg.c): Likewise.
300         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
301         to kernel defined interfaces.
302         (msghdr.msg_controllen): Likewise.
303         (cmsghdr.cmsg_len): Likewise.
304         (msghdr.__glibc_reserved1): Remove member.
305         (msghdr.__glibc_reserved2): Likewise.
306         (cmsghdr.__glibc_reserved1): Likewise.
307         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
308         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
309         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
310         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
311         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
312         version.
313         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
314         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
315         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
316         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
317         Remove recvmsg and sendmsg.
318         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
319         Likewise.
320         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
321         Likewise.
322         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
323         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
324         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
325         Likewise.
326         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
327         Likewise.
328         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
329         [libc] (GLIBC_2.24): Likewise.
330         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
331         Likewise.
332         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
333         Likewise.
334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
335         [libc] (GLIBC_2.24): Likewise.
336         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
337         Likewise.
338         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
339         Likewise.
340         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
341         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
342         Likewise.
343         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
344         Likewise.
345         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
346         Likewise.
347         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
348         Likewise.
349         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
350         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
351         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
352         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
353         version for {recv,send,recm,sendm}msg.
354         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
355         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
356         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
357         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
358         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
359         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
360         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
361         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
362         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
363         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
364         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
365         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
367         Likewise.
368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
369         Likewise.
370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
372         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
373         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
374         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
375         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
376         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
377         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
378         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
379         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
380         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
381         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
382         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
383
384 2016-06-10  Florian Weimer  <fweimer@redhat.com>
385
386         [BZ #19564]
387         Remove __malloc_initialize_hook from the API.
388         * malloc/malloc.h (__malloc_initialize_hook): Remove.
389         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
390         #pragma GCC poison.
391         * malloc/malloc-hooks.h: New file.
392         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
393         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
394         (old__malloc_initialize_hook): Rename from
395         __malloc_initialize_hook to evade poisoning.  Turn into compat
396         symbol.
397         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
398         __malloc_initialize_hook.
399         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
400         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
401         * manual/memory.texi (Hooks for Malloc): Remove
402         __malloc_initialize_hook.  Adjust hook example.
403
404 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
405
406         [BZ #20235]
407         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
408         itself.
409         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
410         * math/libm-test.inc (log2_test_data): Add sNaN tests.
411
412         [BZ #20234]
413         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
414         infinity or NaN input to itself.
415
416         [BZ #20233]
417         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
418         to itself.
419
420         [BZ #20232]
421         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
422         itself.
423
424 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
425
426         * sysdeps/x86_64/start.S (_start): Always indirect branch to
427         __libc_start_main via GOT.
428
429 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
430
431         * sysdeps/x86_64/memcopy.h: New file.
432         * sysdeps/x86_64/wordcopy.c: Likewise.
433
434 2016-06-09  Florian Weimer  <fweimer@redhat.com>
435
436         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
437         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
438         <cstdlib>.
439         (optimization_barrier): New.
440         (do_test): Use it.  Call quick_exit in the global namespace.
441         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
442         instead of <cstdlib>, <thread>.
443         (optimization_barrier): New.
444         (non_main_thread): Adjust declaration.  Call optimization_barrier.
445         Call quick_exit in the global namespace.
446         (do_test): Call optimization_barrier.  Use pthread_create,
447         pthread_join instead of std::thread.
448
449 2016-06-09  Andreas Schwab  <schwab@suse.de>
450
451         [BZ #19755]
452         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
453         new entries in auto-propagate mode.
454         * nscd/grpcache.c (cache_addgr): Likewise.
455
456 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
457
458         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
459         New functions.
460         (add_temp_file): Use them.
461
462 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
463
464         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
465
466 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
467
468         [BZ #20229]
469         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
470         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
471         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
472
473         [BZ #20228]
474         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
475         itself.
476         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
477         * math/libm-test.inc (log10_test_data): Add sNaN tests.
478
479         [BZ #20227]
480         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
481         itself.
482         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
483         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
484         * math/libm-test.inc (log_test_data): Add sNaN tests.
485
486         [BZ #20226]
487         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
488         itself.
489         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
490         * math/libm-test.inc (exp_test_data): Add sNaN tests.
491         (exp10_test_data): Likewise.
492         (expm1_test_data): Likewise.
493
494         [BZ #20225]
495         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
496         itself.
497         * math/s_ldexpf.c (__ldexpf): Likewise.
498         * math/s_ldexpl.c (__ldexpl): Likewise.
499         * math/w_scalbln.c (__w_scalbln): Likewise.
500         * math/w_scalblnf.c (__w_scalblnf): Likewise.
501         * math/w_scalblnl.c (__w_scalblnl): Likewise.
502         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
503         (scalbln_test_data): Likewise.
504
505         [BZ #20224]
506         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
507         argument to itself.
508         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
509
510 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
511
512         [BZ #19776]
513         * sysdeps/x86_64/memcpy.S: Make it dummy.
514         * sysdeps/x86_64/mempcpy.S: Likewise.
515         * sysdeps/x86_64/memmove.S: New file.
516         * sysdeps/x86_64/memmove_chk.S: Likewise.
517         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
518         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
519         * sysdeps/x86_64/memmove.c: Removed.
520         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
521         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
522         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
523         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
524         Likewise.
525         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
526         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
527         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
528         memcpy-sse2-unaligned, memmove-avx-unaligned,
529         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
530         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
531         (__libc_ifunc_impl_list): Replace
532         __memmove_chk_avx512_unaligned_2 with
533         __memmove_chk_avx512_unaligned.  Remove
534         __memmove_chk_avx_unaligned_2.  Replace
535         __memmove_chk_sse2_unaligned_2 with
536         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
537         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
538         with __memmove_avx512_unaligned.  Replace
539         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
540         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
541         with __memcpy_chk_avx512_unaligned.  Remove
542         __memcpy_chk_avx_unaligned_2.  Replace
543         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
544         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
545         Replace __memcpy_avx512_unaligned_2 with
546         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
547         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
548         with __mempcpy_chk_avx512_unaligned.  Remove
549         __mempcpy_chk_avx_unaligned_2.  Replace
550         __mempcpy_chk_sse2_unaligned_2 with
551         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
552         Replace __mempcpy_avx512_unaligned_2 with
553         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
554         Replace __mempcpy_sse2_unaligned_2 with
555         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
556         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
557         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
558         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
559         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
560         (ENTRY): Removed.
561         (END): Likewise.
562         (ENTRY_CHK): Likewise.
563         (libc_hidden_builtin_def): Likewise.
564         Don't include ../memcpy.S.
565         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
566         __memcpy_chk_avx512_unaligned_erms and
567         __memcpy_chk_avx512_unaligned.  Use
568         __memcpy_chk_avx_unaligned_erms and
569         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
570         Default to __memcpy_chk_sse2_unaligned.
571         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
572         Change function suffix from unaligned_2 to unaligned.
573         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
574         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
575         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
576         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
577         (ENTRY): Removed.
578         (END): Likewise.
579         (ENTRY_CHK): Likewise.
580         (libc_hidden_builtin_def): Likewise.
581         Don't include ../mempcpy.S.
582         (mempcpy): New.  Add a weak alias.
583         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
584         __mempcpy_chk_avx512_unaligned_erms and
585         __mempcpy_chk_avx512_unaligned.  Use
586         __mempcpy_chk_avx_unaligned_erms and
587         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
588         Default to __mempcpy_chk_sse2_unaligned.
589
590 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
591
592         [BZ #19881]
593         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
594         into ...
595         * sysdeps/x86_64/memset.S: This.
596         (__bzero): Removed.
597         (__memset_tail): Likewise.
598         (__memset_chk): Likewise.
599         (memset): Likewise.
600         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
601         defined.
602         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
603         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
604         (__memset_zero_constant_len_parameter): Check SHARED instead of
605         PIC.
606         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
607         memset-avx2 and memset-sse2-unaligned-erms.
608         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
609         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
610         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
611         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
612         (__bzero): Enabled.
613         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
614         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
615         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
616         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
617         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
618         (memset): Removed.
619         (__memset_chk): Likewise.
620         (MEMSET_SYMBOL): New.
621         (libc_hidden_builtin_def): Replace __memset_sse2 with
622         __memset_sse2_unaligned.
623         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
624         __memset_chk_sse2 and __memset_chk_avx2 with
625         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
626         Use __memset_chk_sse2_unaligned_erms or
627         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
628         __memset_chk_avx512_unaligned_erms and
629         __memset_chk_avx512_unaligned.
630
631 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
632
633         * math/gen-auto-libm-test.c (fp_format_desc): remove
634         suffix member.
635         (output_generic_value): Remove usage of suffix member,
636         and the resulting unuse of the fp_format argument.
637         (output_for_one_input_case): Remove unused fp_format
638         parameter.
639
640         * math/auto-libm-test-out: Regenerate.
641
642         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
643         usage with TEST_COND_ibm128.
644         (TEST_COND_flt_32): Remove.
645         (TEST_COND_dbl_64): Remove.
646         (TEST_COND_ldbl_96_intel): Remove.
647         (TEST_COND_ldbl_96_m68k): Remove.
648         (TEST_COND_ldbl_128): Remove.
649
650 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
651
652         * auto-libm-test-in:
653         Replace flt-32 usage with binary32.
654         Replace dbl-64 usage with binary64.
655         Replace ldbl-intel-96 usage with intel96.
656         Replace ldbl-m68k-96 usage with m68k96.
657         Replace ldbl-128ibm usage with ibm128.
658         Replace ldbl-128 usage with binary128.
659
660         * auto-libm-test-out: Regenerate.
661
662 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
663
664         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
665         (parse_ulps): Dynamically generate type name matching
666         string from all_floats.
667         (get_ulps): Generate the ulps as an array instead.
668         (output_ulps): Dynamically compose the type based
669         on the number of supported formats, and print
670         the indices as type specific helper macros.
671
672         * math/libm-test.inc: Remove comment about CHOOSE.
673         (ulp_data): Generate the type in libm-test-ulps.h.
674         (ULP_IDX): New macro.
675         (find_ulps): Update usage of max_ulp.
676
677         * math/test-double-vlen2.h (CHOOSE): Remove.
678         * math/test-double-vlen4.h (CHOOSE): Likewise.
679         * math/test-double-vlen8.h (CHOOSE): Likewise.
680         * math/test-float.c (CHOOSE): Likewise.
681         * math/test-float-finite.c (CHOOSE): Likewise.
682         * math/test-double.c (CHOOSE): Likewise.
683         * math/test-double-finite.c (CHOOSE): Likewise.
684         * math/test-idouble.c (CHOOSE): Likewise.
685         * math/test-ifloat.c (CHOOSE): Likewise.
686         * math/test-ildoubl.c (CHOOSE): Likewise.
687         * math/test-ldouble-finite.c (CHOOSE): Likewise.
688         * math/test-ldouble.c (CHOOSE): Likewise.
689
690         * math/test-float.h (TEST_FLOAT): Remove.
691         * math/test-double.h (TEST_DOUBLE): Likewise.
692         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
693
694 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
695
696         * math/gen-libm-test.pl: (apply_lit): New subroutine.
697         (parse_args): Strip C suffix from floating point literals
698         typed with 'f' and wrap them with LIT().
699
700         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
701         (test_ff_f_data_nexttoward): Rename to
702         (test_fj_f_data): New struct.
703         (nexttoward_test_data): Relabel tests as
704         TEST_fj_f instead of TEST_ff_f.
705
706 2016-06-08  Florian Weimer  <fweimer@redhat.com>
707
708         Emacs bug 23726.
709         * malloc/malloc.c (dumped_main_arena_start): Update comment.
710         (__libc_realloc): Correct size computation for dumped fake mmapped
711         chunks.
712
713 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
714
715         [BZ #20219]
716         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
717         to itself.
718         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
719
720         [BZ #20218]
721         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
722         to itself.
723         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
724
725 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
726
727         [BZ #20195]
728         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
729         check to ...
730         (init_cpu_features): Here.
731
732 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
733
734         [BZ #20214]
735         * sysdeps/unix/sysv/linux/bits/in.h
736         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
737          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
738         Define to 1.
739         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
740          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
741         Define to 0.
742         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
743         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
744
745 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
746
747         [BZ #20198]
748         * stdlib/Makefile (tests): Add tst-quick_exit, and
749         tst-thread-quick_exit.
750         [ifeq ($(have-cxx-thread_local),yes)]
751         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
752         (CFLAGS-tst-thread-quick_exit.o): Likewise.
753         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
754         (LDLIBS-tst-thread-quick_exit): Likewise.
755         [ifneq ($(have-cxx-thread_local),yes)]
756         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
757         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
758         If run_dtors is true call __call_tls_dtors.
759         (exit): Call __run_exit_handlers with run_dtors set to true.
760         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
761         definition.
762         * stdlib/quick_exit.c (quick_exit): Remove function.
763         (__new_quick_exit): New function.
764         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
765         function.
766         * stdlib/tst-quick_exit.cc: New file.
767         * stdlib/tst-thread-quick_exit.cc: New file.
768         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
769         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
770         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
771         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
772         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
773         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
774         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
775         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
776         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
777         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
778         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
779         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
780         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
781         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
782         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
783         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
788         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
789         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
790         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
791         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
792         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
793         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
794         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
795         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
796         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
797         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
798
799 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
800
801         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
802         a typo in comments.
803
804 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
805
806         [BZ #20213]
807         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
808         argument to itself.
809         * math/libm-test.inc (asin_test_data): Add sNaN tests.
810
811 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
812
813         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
814         required flags.
815         (CFLAGS-pwritev64.c): Likewise.
816         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
817         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
818         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
819         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
820         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
821         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
822         syscall from auto-generation.
823         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
824         [WORDSIZE == 64] (pwritev64): Remove macro.
825         [!PWRITEV] (PWRITEV): Likewise.
826         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
827         [!PWRITEV] (PWRITE): Likewise.
828         [!PWRITEV] (OFF_T): Likewise.
829         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
830         (LO_HI_LONG): Remove macro.
831         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
832         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
833         (PWRITEV): Remove macro.
834         (PWRITEV_REPLACEMENTE): Likewise.
835         (PWRITE): Likewise.
836         (OFF_T): Likewise.
837         (pwritev64): New function.
838         * nptl/tst-cancel4.c (tf_writev): Add test.
839
840         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
841         required flags.
842         (CFLAGS-preadv64.c): Likewise.
843         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
844         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
845         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
846         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
847         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
848         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
849         syscall from auto-generation.
850         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
851         [WORDSIZE == 64] (preadv64): Remove macro.
852         [!PREADV] (PREADV): Likewise.
853         [!PREADV] (PREADV_REPLACEMENT): Likewise.
854         [!PREADV] (PREAD): Likewise.
855         [!PREADV] (OFF_T): Likewise.
856         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
857         (LO_HI_LONG): Remove macro.
858         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
859         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
860         (PREADV): Remove macro.
861         (PREADV_REPLACEMENTE): Likewise.
862         (PREAD): Likewise.
863         (OFF_T): Likewise.
864         (preadv64): New function.
865         * nptl/tst-cancel4.c (tf_preadv): Add test.
866
867 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
868
869         [BZ #20212]
870         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
871         argument to itself.
872         * math/libm-test.inc (acos_test_data): Add sNaN tests.
873
874 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
875
876         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
877         New symbol defined as libc_hidden_def.
878         (strcasestr): Became a weak alias to __strcasestr.
879         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
880         according to multi-arch support.  Move __stpncpy hidden
881         definition from here to...
882         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
883         symbol stpncpy.
884         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
885         libc_hidden_builtin_def.
886         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
887         memset symbol to use when multi-arch support is available.
888
889 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
890
891         * dlfcn/tst-rec-dlopen.c: Include string.h.
892
893 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
894
895         * manual/install.texi: Remove mention of --without-tls
896         * INSTALL: Regenerate.
897
898 2016-06-05  Florian Weimer  <fweimer@redhat.com>
899
900         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
901         Remove.
902         (call_function, interposed_malloc_called): New variables.
903         (malloc): New function.
904         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
905         and clear call_function as needed.
906
907 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
908
909         * include/wchar.h (__wmemset): Use __typeof.
910
911 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
912
913         * include/wchar.h (__wmemset): Declare function without typeof.
914
915 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
916
917         [BZ #20205]
918         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
919         exponent when incrementing negative subnormal with low mantissa
920         word zero.
921         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
922         Add another test.
923
924 2016-06-03  Florian Weimer  <fweimer@redhat.com>
925
926         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
927         __wmemset instead of wmemset.
928
929 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
930
931         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
932         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
933         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
934         __USE_KERNEL_IPV6_DEFS to 0.
935         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
936         Update comment.
937
938 2016-06-01  Florian Weimer  <fweimer@redhat.com>
939
940         [BZ #19861]
941         Do not use IFUNC resolver with potentially unrelocated symbol.
942         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
943         (DEFINE_FORK): Remove macro and inline definition.
944         (fork_alias): Renamed from fork_ifunc.
945         (__fork_alias): Renamed from __fork_ifunc.
946
947 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
948
949         [BZ 19653]
950         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
951         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
952
953 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
954
955         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
956         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
957         i386-linux-gnu).
958         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
959         Set to no.
960         * sysdeps/mach/hurd/configure: Refresh.
961
962 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
963
964         [BZ #20178]
965         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
966         on failure instead of exit.
967
968 2016-05-30  Roland McGrath  <roland@hack.frob.com>
969
970         [BZ #3629]
971         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
972         of POSIX.1-2008.
973
974 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
975
976         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
977           Use PLT entry for calling _hurd_self_sigstate.
978
979 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
980
981         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
982         available logical processors with SMT level type sharing L2
983         cache for Intel processors.
984
985 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
986
987         [BZ #20160]
988         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
989         argument to itself before returning the result.
990         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
991         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
992         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
993         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
994         Likewise.
995         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
996         Likewise.
997         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
998         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
999         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
1000         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
1001         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1002         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1003
1004         [BZ #20160]
1005         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
1006         argument to itself before returning the result.
1007         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1008         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1009         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1010         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
1011         Likewise.
1012         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
1013         Likewise.
1014         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
1015         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
1016         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
1017         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
1018         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1019         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1020
1021 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1022
1023         * libm-test.inc: Replace usage of M_El with
1024         (lit_e): New macro.
1025
1026 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1027
1028         * libm-test.inc: Replace usage of M_PI_4l with
1029         (lit_pi_4_d): New macro.
1030
1031 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1032
1033         * libm-test.inc: Replace usage of M_PIl with
1034         (lit_pi): New macro.
1035
1036 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1037
1038         * libm-test.inc: Replace usage of M_PI2l with
1039         (lit_pi_2_d): New macro.
1040
1041         * math/test-double.h (LITM): New macro.
1042         * math/test-float.h (LITM): Likewise.
1043         * math/test-ldouble.h (LITM): Likewise.
1044
1045 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1046
1047         * libm-test.inc (M_PI_34l): Rename to
1048         (lit_pi_3_m_4_d): New Macro.
1049         (M_PI_34_LOG10El): Rename to
1050         (lit_pi_3_m_4_ln10_m_d): New Macro.
1051         (M_PI2_LOG10El): Rename to
1052         (lit_pi_2_ln10_m_d):  New Macro.
1053         (M_PI4_LOG10El): Rename to
1054         (lit_pi_4_ln10_m_d):  New Macro.
1055         (M_PI_LOG10El): Rename to
1056         (lit_pi_ln10_d):  New Macro.
1057
1058 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1059
1060         [BZ #20157]
1061         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
1062         determine whether to negate low half if [_ARCH_PPCGR], and integer
1063         comparison otherwise.
1064         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
1065         determine whether to negate low half.
1066
1067         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
1068         (NO_TEST_INLINE_DOUBLE): Likewise.
1069         (TEST_COND_x86_64): Likewise.
1070         (TEST_COND_x86): Likewise.
1071         (M_PI_6l): Likewise.
1072
1073 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1074
1075         * math/libm-test.inc:
1076         (TEST_FLOAT): Change usage to TEST_COND_binary32.
1077         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
1078         (TEST_LDOUBLE): Update usage to evaluate as true if
1079         the guarded tests match the property being tested.
1080         (LDBL_MAX_EXP): Change to MAX_EXP.
1081         (LDBL_MIN_EXP): Change to MIN_EXP.
1082         (LDBL_MANT_DIG): Change to MANT_DIG, except for
1083         nexttoward tests.
1084
1085 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1086
1087         * math/libm-test.inc:
1088         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
1089         (TYPE_MIN): Likewise.
1090         (TYPE_TRUE_MIN): Likewise.
1091         (TYPE_MAX): Likewise.
1092         (MIN_EXP): Likewise.
1093         (MAX_EXP): Likewise.
1094         (MANT_DIG): Likewise.
1095
1096         (FSTR_MAX): New macro.
1097         (__CONCATX): Likewise.
1098         (QTYPE_STR): Likewise.
1099         (TEST_COND_binary32): Likewise.
1100         (TEST_COND_binary64): Likewise.
1101         (TEST_COND_binary128): Likewise.
1102         (TEST_COND_ibm128): Likewise.
1103         (TEST_COND_intel96): Likewise.
1104         (TEST_COND_m68k96): Likewise.
1105
1106         (TEST_COND_flt_32): Redefine as equivalent format test macro.
1107         (TEST_COND_dbl_64): Likewise.
1108         (TEST_COND_ldbl_96_intel): Likewise.
1109         (TEST_COND_ldbl_96_m68k): Likewise.
1110         (TEST_COND_ldbl_128): Likewise.
1111         (TEST_COND_ldbl_128ibm): Likewise.
1112
1113         (plus_zero): Redefine using LIT macro.
1114         (minus_zero): Likewise.
1115         (plus_infty): Redefine as (INF).
1116         (minux_infty): Redefine as (-INF).
1117         (max_value): Redefine as TYPE_MAX.
1118         (min_value): Redefine as TYPE_MIN.
1119         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
1120
1121         (print_float): Refactor to use snprintf to convert FLOAT values
1122         to string. This brings it closer to dropin replacement of strtof
1123         for the TS 18661 defined types.
1124         (update_stats): Likewise.
1125         (print_complex_function_ulps): Likewise.
1126         (print_max_error): Likewise.
1127         (print_complex_max_error): Likewise.
1128         (check_float_internal): Likewise.
1129
1130         * math/test-float.h (PREFIX): New macro.
1131         (LIT): Likewise.
1132         (TYPE_STR): Likewise.
1133         (FTOSTR): Likewise.
1134
1135         * math/test-double.h (PREFIX): New macro.
1136         (LIT): Likewise.
1137         (TYPE_STR): Likewise.
1138         (FTOSTR): Likewise.
1139
1140         * math/test-ldouble.h (PREFIX): New macro.
1141         (LIT): Likewise.
1142         (TYPE_STR): Likewise.
1143         (FTOSTR): Likewise.
1144
1145 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1146
1147         [BZ #20156]
1148         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
1149         to itself when zero or not finite.
1150         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
1151         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
1152         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
1153         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
1154
1155 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
1156
1157         [BZ #20153]
1158         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
1159         x * x + x for infinities and NaNs.
1160
1161         [BZ #20151]
1162         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
1163         argument to itself before returning result.
1164         (__ieee754_y0l): Likewise.
1165         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1166         (__ieee754_y1l).
1167
1168         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
1169         (atan_test_data): Likewise.
1170         (ceil_test_data): Likewise.
1171         (cos_test_data): Likewise.
1172         (cosh_test_data): Likewise.
1173         (erf_test_data): Likewise.
1174         (exp2_test_data): Likewise.
1175         (fabs_test_data): Likewise.
1176         (floor_test_data): Likewise.
1177         (ilogb_test_data): Likewise.
1178         (j0_test_data): Likewise.
1179         (j1_test_data): Likewise.
1180         (jn_test_data): Likewise.
1181         (lgamma_test_data): Likewise.
1182         (lrint_test_data): Likewise.
1183         (llrint_test_data): Likewise.
1184         (logb_test_data): Likewise.
1185         (lround_test_data): Likewise.
1186         (llround_test_data): Likewise.
1187         (nearbyint_test_data): Likewise.
1188         (rint_test_data): Likewise.
1189         (round_test_data): Likewise.
1190         (sin_test_data): Likewise.
1191         (sincos_test_data): Likewise.
1192         (sinh_test_data): Likewise.
1193         (sqrt_test_data): Likewise.
1194         (tan_test_data): Likewise.
1195         (tanh_test_data): Likewise.
1196         (tgamma_test_data): Likewise.
1197         (trunc_test_data): Likewise.
1198         (y0_test_data): Likewise.
1199         (y1_test_data): Likewise.
1200         (yn_test_data): Likewise.
1201
1202         * math/libm-test.inc: Update comment about NaN testing.
1203         (TEST_SNAN): New macro.
1204         (snan_value): Likewise.
1205         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
1206         (fpclassify_test_data): Add sNaN tests.
1207         (isfinite_test_data): Likewise.
1208         (isinf_test_data): Likewise.
1209         (isnan_test_data): Likewise.
1210         (isnormal_test_data): Likewise.
1211         (issignaling_test_data): Likewise.
1212         (signbit_test_data): Likewise.
1213         * math/gen-libm-test.pl (%beautify): Add snan_value.
1214         (show_exceptions): Add argument $test_snan.
1215         (parse_args): Handle snan_value as non-finite.  Update call to
1216         show_exceptions.
1217         * math/Makefile (libm-test-no-inline-cflags): Add
1218         -fsignaling-nans.
1219
1220 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1221
1222         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
1223         (CFLAGS-oldsendmsg.c): Add rule.
1224         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
1225         Correct recvmsg symbol name.
1226         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
1227         Likewise.
1228
1229 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1230
1231         * sysdeps/unix/sysv/linux/Makefile
1232         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
1233         oldsendmmsg.
1234         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
1235         sendmmsg.
1236         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1237         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1238         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1239         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1241         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1242         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1243         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
1244         Likewise.
1245         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1246         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
1247         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
1248         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
1249         iovlen and controllen fields to adjust to POSIX specification.
1250         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
1251
1252         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
1253         and change to correct expected type.
1254         (msghdr.msg_controllen): Likewise.
1255         (cmsghdr.cmsg_len): Likewise.
1256         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
1257         expected POSIX assumption about the size.
1258         (msghdr.msg_controllen): Likewise.
1259         (msghdr.__glibc_reserved1): Likewise.
1260         (msghdr.__glibc_reserved2): Likewise.
1261         (cmsghdr.cmsg_len): Likewise.
1262         (cmsghdr.__glibc_reserved1): Likewise.
1263         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
1264         Add ptw-oldrecvmsg and ptw-oldsendmsg.
1265         (CFLAGS-sendmsg.c): Remove rule.
1266         (CFLAGS-recvmsg.c): Likewise.
1267         (CFLAGS-oldsendmsg.c): Add rule.
1268         (CFLAGS-oldrecvmsg.c): Likewise.
1269         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
1270         recvmsg and sendmsg.
1271         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
1272         Likewise.
1273         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
1274         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
1275         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
1276         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
1277         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
1278         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
1279         Likewise.
1280         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
1281         Likewise.
1282         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
1283         Likewise.
1284         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
1285         Likewise.
1286         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
1287         Likewise.
1288         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
1289         Likewise.
1290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
1291         (GLIBC_2.24): Likewise.
1292         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
1293         Likewise.
1294         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
1295         Likewise.
1296         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
1297         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
1298         Likewise.
1299         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
1300         Likewise.
1301         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
1302         Likewise.
1303         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
1304         (GLIBC_2.24): Likewise.
1305         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
1306         Likewise.
1307         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
1308         Likewise.
1309         * sysdeps/unix/sysv/linux/Makefile
1310         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
1311         (CFLAGS-sendmsg.c): Add rule.
1312         (CFLAGS-recvmsg.c): Likewise.
1313         (CFLAGS-oldsendmsg.c): Likewise.
1314         (CFLAGS-oldrecvmsg.c): Likewise.
1315         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
1316         initialization.
1317         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
1318         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
1319         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
1320         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
1321         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
1322         iovlen and controllen fields to adjust to POSIX specification.
1323         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
1324         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
1325         added recvmsg and sendmsg.
1326         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1327         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1328         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1329         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1330         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1331         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1332         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1333         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1334         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1335         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1336         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1337         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1339         Likewise.
1340         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
1341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1342         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1343         Likewise.
1344         Likewise.
1345         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1346         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1347         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1348         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1349         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1350         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1351         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1352         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1353         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1354         Likewise.
1355         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1356         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1357
1358         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
1359         from auto-generation.
1360         (sendmsg): Likewise.
1361         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
1362         (sendmsg): Likewise.
1363         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
1364         (sendmsg): Likewise.
1365         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
1366         (sendmsg): Likewise.
1367         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
1368         (sendmsg): Likewise.
1369         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
1370         (sendmsg): Likewise.
1371         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
1372         Likewise.
1373         (sendmsg): Likewise.
1374         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
1375         (sendmsg): Likewise.
1376         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1377         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1378         Remove.
1379         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1380         Likewise.
1381         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1382         Undefine.
1383         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1384         Likewise.
1385         * sysdeps/unix/sysv/linux/kernel-features.h
1386         (__ASSUME_SENDMSG_SYSCALL): Define.
1387         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1388         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1389         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1390         Remove.
1391         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1392         Likewise.
1393         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1394         Undefine.
1395         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1396         Likewise.
1397         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1398         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1399         Remove.
1400         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1401         Likewise.
1402         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1403         Undefine.
1404         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1405         Likewise.
1406         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1407         (__ASSUME_SENDMSG_SYSCALL): Undefine.
1408         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1409         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
1410         (__ASSUME_SENDMSG_SYSCALL): Likewise.
1411         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1412         * sysdeps/unix/sysv/linux/sh/kernel-features.h
1413         (__ASSUME_SENDMSG_SYSCALL): Likewise.
1414         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1415
1416 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1417
1418         * stdlib/gen-tst-strtod-round.c: Add backslash to
1419         compile command in comment.
1420         (printfp): Remove the literal suffix, and define an infinite
1421         value as INF to avoid expansion clash with INFINITY.
1422         (round_str): Remove the literal suffix.
1423         (round_for_all): Likewise, remove the now duplicate ldbl-64
1424         entry, and remove some magic constants.
1425
1426         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
1427         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
1428         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
1429         (_CONCAT): New macro.
1430         (CONCAT): Likewise.
1431         (CHOOSE_ld): Likewise.
1432         (CHOOSE_f): Likewise.
1433         (CHOOSE_d): Likewise.
1434         (FTYPE_MEMBER): Likewise.
1435         (BOOL_MEMBER): Likewise.
1436         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
1437         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
1438         (_XNTRY): Likewise.
1439         (XNTRY): Likewise.
1440         (_ENTRY): Likewise.
1441         (ENTRY): Likewise.
1442         (test_exactness): Generate members via macro.
1443         (test_results): Likewise.
1444         (test): Update members.
1445         (TEST): Redefine using new macros.
1446         (INF): New macro.
1447         (fetestmodes): New structure.
1448         (do_test): Refactor to be type generic.
1449         (test_in_one_mode): Refactor duplicate code into
1450         (GEN_ONE_TEST): New macro.
1451
1452         * stdlib/tst-strtod-round-data.h: Regenerate.
1453
1454         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
1455         Extend to pass additional arbitrary parameters to
1456         generators.
1457
1458 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
1459
1460         [BZ #15479]
1461         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
1462         floating-point state after first floating-point operation on
1463         input.  Restore full floating-point state instead of just rounding
1464         mode.
1465         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1466         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1467         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1468         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1469         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1470
1471         [BZ #15479]
1472         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
1473         floating-point state after first floating-point operation on
1474         input.  Restore full floating-point state instead of just rounding
1475         mode.
1476         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1477         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1478         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1479         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1480         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1481
1482 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1483
1484         [BZ #19727]
1485         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
1486         valid high surrogate.
1487         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
1488         of an utf16 surrogate.
1489         * iconv/gconv_simple.c (BODY): Likewise.
1490         * iconvdata/bug-iconv12.c: New file.
1491         * iconvdata/Makefile (tests): Add bug-iconv12.
1492
1493 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1494
1495         [BZ #19726]
1496         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
1497         outptrp in case of an illegal input.
1498         * iconv/tst-iconv6.c: New file.
1499         * iconv/Makefile (tests): Add tst-iconv6.
1500
1501 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1502
1503         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
1504         an error in case of a value in range of an utf16 low surrogate.
1505
1506 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1507
1508         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
1509         an error in case of a value in range of an utf16 low surrogate.
1510
1511 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1512
1513         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
1514         Move to ...
1515         * sysdeps/s390/Makefile: ... here.
1516         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
1517         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
1518         (BRANCH_ON_COUNT): New define.
1519         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
1520         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
1521         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
1522         run on s390-32, too.
1523         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
1524         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
1525         run on s390-32, too.
1526         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
1527         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
1528         run on s390-32, too.
1529
1530 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1531
1532         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
1533         etf3eh or new vector loop-variant.
1534
1535 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1536
1537         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
1538         etf3eh or new vector loop-variant.
1539
1540 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1541
1542         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
1543         or new vector loop-variant.
1544
1545 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1546
1547         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
1548         Rename to TR_LOOP and usage of tr instead of troo instruction.
1549
1550 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1551
1552         * sysdeps/s390/multiarch/gconv_simple.c: New File.
1553         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
1554
1555 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1556
1557         * sysdeps/s390/multiarch/8bit-generic.c: New File.
1558         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
1559         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
1560         New override define.
1561         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
1562
1563 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1564
1565         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
1566         * sysdeps/s390/configure.ac: Add test for S390 vector register
1567         support in gcc.
1568         * sysdeps/s390/configure: Regenerated.
1569
1570 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
1571
1572         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
1573         Install file from $(objpfx)gconv-modules.
1574         ($(objpfx)gconv-modules): Concatenate architecture specific file
1575         in variable sysdeps-gconv-modules and gconv-modules in src dir.
1576         * sysdeps/s390/gconv-modules: New file.
1577         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
1578         Deleted.
1579         ($(objpfx)gconv-modules-s390): Deleted.
1580         (sysdeps-gconv-modules): New variable.
1581
1582 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
1583
1584         [BZ #15479]
1585         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
1586         of immediate operand to rounding instruction.
1587         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
1588         Likewise.
1589         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
1590         Likewise.
1591         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
1592         Likewise.
1593
1594 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1595
1596         * math/libm-test.inc (MIN_EXP): Directly define as
1597         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
1598
1599 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1600
1601         * math/libm-test.inc (MANT_DIG): Directly define as
1602         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
1603
1604 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1605
1606         * stdlib/gen-tst-strtod-round.c (main):
1607           Change usage to more closely match the generated
1608           output.  Add usage and compilation instructions.
1609           (string_to_fp): Add and use FILE* parameter as
1610           output target.
1611           (print_fp): Likewise.
1612           (round_str): Likewise.
1613           (round_for_all): Likewise.
1614         * stdlib/tst-strtod-round.c (tests): Move into
1615         * stdlib/tst-strtod-round-data.h: New file.
1616
1617 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
1618
1619         [BZ #15479]
1620         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
1621         (__round): Do not force "inexact" exception.
1622         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
1623         variable.
1624         (__round): Do not force "inexact" exception.
1625         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
1626         (__roundf): Do not force "inexact" exception.
1627         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
1628         (__roundl): Do not force "inexact" exception.
1629         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
1630         (__roundl): Do not force "inexact" exception.
1631         * math/libm-test.inc (round_test_data): Do not allow spurious
1632         "inexact" exceptions.
1633
1634         [BZ #15479]
1635         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
1636         exception in comment.
1637         (huge): Remove variable.
1638         (__floor): Do not force "inexact" exception.
1639         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
1640         "inexact" exception in comment.
1641         (huge): Remove variable.
1642         (__floor): Do not force "inexact" exception.
1643         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
1644         exception in comment.
1645         (huge): Remove variable.
1646         (__floorf): Do not force "inexact" exception.
1647         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
1648         exception in comment.
1649         (huge): Remove variable.
1650         (__floorl): Do not force "inexact" exception.
1651
1652         [BZ #15479]
1653         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
1654         exception in comment.
1655         (huge): Remove variable.
1656         (__ceil): Do not force "inexact" exception.
1657         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
1658         "inexact" exception in comment.
1659         (huge): Remove variable.
1660         (__ceil): Do not force "inexact" exception.
1661         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
1662         (__ceilf): Do not force "inexact" exception.
1663         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
1664         exception in comment.
1665         (huge): Remove variable.
1666         (__ceill): Do not force "inexact" exception.
1667
1668 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1669
1670         * config.h.in (BIND_NOW): New.
1671         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
1672         * configure: Regenerated.
1673         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
1674         indirect branch via the GOT slot.
1675
1676 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1677
1678         [BZ #19765]
1679         * sysdeps/s390/mempcpy.S: New File.
1680         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
1681         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
1682         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
1683         Add mempcpy variants.
1684         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
1685         (memcpy): Adjust to be usable from mempcpy entry point.
1686         (__memcpy_mvcle): Likewise.
1687         * sysdeps/s390/s390-64/memcpy.S: Likewise.
1688         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
1689         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
1690         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
1691         (__memcpy_z10): Likewise.
1692         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
1693
1694 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1695
1696         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
1697         Remove __GI_ symbol.
1698         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
1699         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
1700         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
1701         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
1702         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
1703         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
1704
1705 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1706
1707         * sysdeps/s390/s390-64/memcpy.S (memcpy):
1708         Use cghi instead of chi to compare 64bit value.
1709
1710 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
1711
1712         * sysdeps/s390/s390-32/memcpy.S (memcpy):
1713         Jump to 1MB check before executing mvc-loop.
1714
1715 2016-05-24  Florian Weimer  <fweimer@redhat.com>
1716
1717         [BZ #6527]
1718         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
1719         unconditionally.
1720         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
1721
1722 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1723
1724         * stdlib/tst-strtod6.c (do_test): Use new type generic
1725         invocation of the test function.
1726         (test): Refactor into ...
1727         (TEST_STRTOD): New macro base function.
1728
1729 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1730
1731         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
1732         (TEST_STRTOD): New macro.
1733         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
1734
1735 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1736
1737         * stdlib/tst-strtod6.c (do_test): Use new type generic
1738         invocation of the test function.
1739         (test): Refactor into ...
1740         (TEST_STRTOD): New macro base function.
1741
1742 2016-05-23  Florian Weimer  <fweimer@redhat.com>
1743
1744         CVE-2016-4429
1745         [BZ #20112]
1746         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
1747         payload.
1748
1749 2016-05-23  Florian Weimer  <fweimer@redhat.com>
1750
1751         [BZ #20111]
1752         * bits/sockaddr.h (_SS_SIZE): Define.
1753         * bits/socket.h (_SS_SIZE): Remove.
1754         (_SS_PADSIZE): Adjust to account for all padding.
1755         (struct sockaddr_storage): Update comment.  Avoid implicit
1756         padding.
1757         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
1758         (_SS_PADSIZE): Adjust to account for all padding.
1759         (struct sockaddr_storage): Update comment.  Avoid implicit
1760         padding.
1761         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
1762         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
1763         (_SS_PADSIZE): Adjust to account for all padding.
1764         (struct sockaddr_storage): Update comment.  Avoid implicit
1765         padding.
1766         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
1767         __SS_SIZE is 126 in this version.
1768         * inet/tst-sockaddr.c: New file.
1769         * inet/Makefile (tests): Add tst-sockaddr.c
1770         (tst-sockaddr.c): Compile with non-strict aliasing.
1771
1772 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
1773
1774         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
1775         [XPG3 || XPG4].
1776         (NL_ARGMAX): Also expect for [XPG3].
1777         (NL_LANGMAX): Likewise.
1778         (NL_MSGMAX): Likewise.
1779         (NL_NMAX): Likewise.
1780         (NL_SETMAX): Likewise.
1781         (NL_TEXTMAX): Likewise.
1782         (NZERO): Likewise.
1783         (TMP_MAX): Likewise.
1784         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
1785         variable.
1786
1787         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
1788         (PF_MAX): Update value.
1789         (AF_KCM): New macro.
1790         (SOL_NETBEUI): Likewise.
1791         (SOL_LLC): Likewise.
1792         (SOL_DCCP): Likewise.
1793         (SOL_NETLINK): Likewise.
1794         (SOL_TIPC): Likewise.
1795         (SOL_RXRPC): Likewise.
1796         (SOL_PPPOL2TP): Likewise.
1797         (SOL_BLUETOOTH): Likewise.
1798         (SOL_PNPIPE): Likewise.
1799         (SOL_RDS): Likewise.
1800         (SOL_IUCV): Likewise.
1801         (SOL_CAIF): Likewise.
1802         (SOL_ALG): Likewise.
1803         (SOL_NFC): Likewise.
1804         (SOL_KCM): Likewise.
1805         (MSG_BATCH): New enum value and macro.
1806
1807 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
1808
1809         [BZ #18185]
1810         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
1811         sharing L2 cache to 2 for Knights Landing.
1812
1813 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
1814
1815         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
1816         (FTW_DP): Do not expect for [XPG3 || XPG4].
1817         (FTW_SL): Do not expect for [XPG3].
1818         (FTW_SLN): Likewise.
1819         (FTW_PHYS): Likewise.
1820         (FTW_MOUNT): Likewise.
1821         (FTW_DEPTH): Likewise.
1822         (FTW_CHDIR): Likewise.
1823         (nftw): Likewise.
1824         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
1825         variable.
1826
1827 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
1828
1829         * manual/errno.texi: Fix various typos & grammar errors.
1830
1831 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
1832
1833         * manual/intro.texi: Fix duplicated typo.
1834
1835 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
1836
1837         [BZ #13304]
1838         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
1839         <float.h>, <math_private.h> and <stdlib.h>.
1840         (add_split): New function.
1841         (mul_split): Likewise.
1842         (ext_val): New typedef.
1843         (store_ext_val): New function.
1844         (mul_ext_val): New function.
1845         (compare): New function.
1846         (add_split_ext): New function.
1847         (__fmal): After checking for Inf, NaN and zero, compute result as
1848         an exact sum of scaled double values in round-to-nearest before
1849         adding those up and adjusting for other rounding modes.
1850         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
1851         tests of fma.
1852         * math/auto-libm-test-out: Regenerated.
1853
1854 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1855
1856         [BZ #20119]
1857         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
1858         processor level type mask for CPUID with EAX == 11.
1859
1860 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1861
1862         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
1863         logical threads if the HTT bit is 0.
1864         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
1865         (index_cpu_HTT): Likewise.
1866         (reg_HTT): Likewise.
1867
1868 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1869
1870         [BZ #20115]
1871         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
1872         Remove alignments on jump targets.
1873
1874 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
1875
1876         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
1877         (getpwent): Likewise.
1878         (setpwent): Likewise.
1879         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
1880         variable.
1881
1882         * conform/data/search.h-data (insque): Do not expect for [XPG3].
1883         (remque): Likewise.
1884         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
1885         variable.
1886
1887 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
1888
1889         * math/libm-test.inc: Update comment not to refer to signs of NaNs
1890         not being tested.
1891
1892 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1893
1894         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
1895         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
1896         call.
1897         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
1898         (__condvar_cleanup1): Likewise.
1899
1900 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1901
1902         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
1903         New
1904         (__pthread_unwind): Renamed to ...
1905         (PTHREAD_UNWIND): This.
1906         (__pthread_enable_asynccancel): Replace
1907         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
1908
1909 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
1910
1911         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
1912         (CLONE_NEWCGROUP): New macro.
1913
1914         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
1915         (Q_GETNEXTQUOTA): New macro.
1916
1917 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1918
1919         [BZ #19907]
1920         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
1921         buffer updated by the previous run.
1922         * string/test-memcpy.c (do_one_test): Likewise.
1923         * benchtests/bench-memmove.c (do_one_test): Add a comment.
1924         * string/test-memmove.c (do_one_test): Likewise.
1925
1926 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
1927
1928         [BZ #20094]
1929         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
1930         not [__USE_XOPEN].
1931         (unlockpt): Likewise.
1932         (ptsname): Likewise.
1933         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
1934         variable.
1935
1936         [BZ #20076]
1937         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
1938         instead of [__USE_UNIX98].
1939         (S_ISSOCK): Likewise.
1940         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
1941         variable.
1942
1943         [BZ #20074]
1944         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
1945         [__USE_POSIX].
1946         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
1947         variable.
1948
1949         [BZ #20051]
1950         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
1951         (ttyslot): Do not declare.
1952         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
1953         (ttyslot): New prototype.
1954         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
1955         variable.
1956         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
1957
1958 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
1959
1960         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
1961
1962 2016-05-13  Florian Weimer  <fweimer@redhat.com>
1963
1964         Fix race condition in tst-mallocfork2, use fewer resources.
1965         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
1966         to current process group.
1967         (signal_sender): Yield in the non-sleeping case.
1968
1969 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
1970
1971         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
1972         (ecvt): Likewise.
1973         (fcvt): Likewise.
1974         (gcvt): Likewise.
1975         (getsubopt): Likewise.
1976         (grantpt): Likewise.
1977         (initstate): Likewise.
1978         (l64a): Likewise.
1979         (mktemp): Likewise.
1980         (mkstemp): Likewise.
1981         (ptsname): Likewise.
1982         (random): Likewise.
1983         (realpath): Likewise.
1984         (setstate): Likewise.
1985         (srandom): Likewise.
1986         (ttyslot): Likewise.
1987         (unlockpt): Likewise.
1988         (valloc): Likewise.
1989
1990         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
1991         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
1992         variable.
1993
1994 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1995
1996         [BZ #20072]
1997         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
1998         init_cpu_features only if SHARED is defined.
1999         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
2000
2001 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2002
2003         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
2004         non-inclusive caches on Intel processors.
2005
2006 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2007
2008         * malloc/malloc.c (dumped_main_arena_start)
2009         (dumped_main_arena_end): New variables.
2010         (DUMPED_MAIN_ARENA_CHUNK): New macro.
2011         (do_check_chunk): Skip dumped fake mmapped chunks.
2012         (munmap_chunk): Likewise.
2013         (__libc_free): Do not adjust statistics for fake mmapped chunks.
2014         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
2015         mmapped chunks.
2016         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
2017         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
2018         and dumped_main_arena_end to cover the dumped heap.
2019
2020 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
2021
2022         * conform/data/time.h-data (getdate_err): Do not expect for
2023         [XPG3].
2024         (getdate): Likewise.
2025         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
2026         variable.
2027
2028         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
2029         (F_ULOCK): Likewise.
2030         (F_TEST): Likewise.
2031         (F_TLOCK): Likewise.
2032         (useconds_t): Likewise.
2033         (intptr_t): Do not expect for [XPG3] or [XPG4].
2034         (brk): Do not expect for [XPG3]
2035         (fchown): Likewise.
2036         (fchdir): Likewise.
2037         (ftruncate): Likewise.
2038         (getdtablesize): Likewise.
2039         (gethostid): Likewise.
2040         (getpagesize): Likewise.
2041         (getpgid): Likewise.
2042         (getsid): Likewise.
2043         (getwd): Likewise.
2044         (lchown): Likewise.
2045         (lockf): Likewise.
2046         (readlink): Likewise.
2047         (sbrk): Likewise.
2048         (setpgrp): Likewise.
2049         (setregid): Likewise.
2050         (setreuid): Likewise.
2051         (symlink): Likewise.
2052         (sync): Likewise.
2053         (truncate): Likewise.
2054         (ualarm): Likewise.
2055         (usleep): Likewise.
2056         (vfork): Likewise.
2057         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
2058         variable.
2059
2060         [BZ #20054]
2061         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
2062         not [__USE_UNIX98].
2063         * conform/data/unistd.h-data (gethostname): Do not expect for
2064         [XPG3].
2065
2066         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
2067         [!POSIX] (S_IFBLK): Likewise.
2068         [!POSIX] (S_IFCHR): Likewise.
2069         [!POSIX] (S_IFIFO): Likewise.
2070         [!POSIX] (S_IFREG): Likewise.
2071         [!POSIX] (S_IFDIR): Likewise.
2072         [!POSIX] (S_IFLNK): Likewise.
2073         [!POSIX] (S_IFSOCK): Likewise.
2074         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
2075         variable.
2076         (test-xfail-XPG4/fcntl.h/conform): Likewise.
2077
2078 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
2079
2080         * sysdeps/aarch64/memset.S (__memset):
2081         Rewrite of optimized memset.
2082
2083 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2084
2085         [BZ #19703]
2086         Partially async-signal-safe fork for single-threaded processes.
2087         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
2088         variable.  Do not acquire and reset/release malloc and libio locks
2089         in single-threaded processes.
2090         * malloc/tst-mallocfork2.c: New file.
2091         * malloc/Makefile (tests): Add it.
2092
2093 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2094
2095         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
2096         argument.  Use scratch buffer instead of extend_alloca.
2097         (gethosts): Use scratch buffer instead of extend_alloca.
2098         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
2099         extend_alloca.
2100         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
2101
2102 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
2103
2104         [BZ #20055]
2105         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
2106         instead of [__USE_UNIX98].
2107         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
2108         [__USE_UNIX98].
2109         * conform/data/termios.h-data (tcgetsid): Do not expect for
2110         [XPG3].
2111         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
2112         variable.
2113         (test-xfail-XPG4/termios.h/conform): Likewise.
2114
2115 2016-05-11  Florian Weimer  <fweimer@redhat.com>
2116
2117         Do not use mcheck in localedef.
2118         * locale/programs/localedef.c (turn_on_mcheck)
2119         (__malloc_initialize_hook): Remove.
2120
2121 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
2122
2123         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
2124         * sysdeps/s390/s390-64/Makefile: Likewise.
2125
2126 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2127
2128         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
2129         Remove ifunc-defines.sym.
2130         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
2131         Likewise.
2132         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
2133         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
2134         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
2135         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
2136         rtld-global-offsets.sym.
2137         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
2138         * sysdeps/x86/cpu-features-offsets.sym: This.
2139         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
2140         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
2141
2142 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
2143
2144         [BZ #20073]
2145         * io/sys/stat.h (fchmod): Declare for
2146         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
2147         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
2148         variable.
2149
2150         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
2151         [XPG3] (S_IFSOCK): Likewise.
2152         [XPG3] (S_ISVTX): Likewise.
2153         [XPG3] (S_ISLNK): Likewise.
2154         [XPG3] (S_ISSOCK): Likewise.
2155         [XPG3] (fchmod): Likewise.
2156         [XPG3] (lstat): Likewise.
2157         [XPG3] (mknod): Likewise.
2158
2159         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
2160         [XPG3].  Expect type long and XFAIL for [XPG4].
2161         (st_blocks): Likewise.
2162
2163         [BZ #20044]
2164         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
2165         (pthread_atfork): New prototype.
2166         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
2167         variable.
2168
2169         [BZ #20043]
2170         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
2171         prototype.
2172
2173 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2174
2175         [BZ #20017]
2176         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
2177         gmtime.
2178
2179 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2180
2181         [BZ #19994]
2182         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
2183         flag in _res.options.
2184
2185 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
2186
2187         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
2188         [XPG3 || XPG4].
2189         (blksize_t): Likewise.
2190         (clockid_t): Likewise.
2191         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
2192         variable.
2193         (test-xfail-XPG4/sys/types.h/conform): Likewise.
2194
2195 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
2196
2197         * sysdeps/unix/sysv/linux/s390/init-first.c:
2198         Add VDSO_SYMBOL(getcpu).
2199         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
2200         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
2201         Add VDSO_SYMBOL(getcpu).
2202         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
2203         New define HAVE_GETCPU_VSYSCALL.
2204         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2205
2206 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
2207
2208         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
2209         instead of <sysdeps/x86_64/cacheinfo.c>.
2210         * sysdeps/x86_64/cacheinfo.c: Moved to ...
2211         * sysdeps/x86/cacheinfo.c: Here.
2212
2213 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2214
2215         * malloc/malloc-internal.h: Adjust header file guard.
2216
2217 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2218
2219         [BZ #19787]
2220         * inet/getnameinfo.c (check_sprintf_result): New function.
2221         (CHECKED_SNPRINTF): New macro.
2222         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
2223         to the host buffer.
2224         (gni_host_local): Use checked_copy to copy the host name.
2225         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
2226         (gni_serv_local): Use checked_copy to copy the service name.
2227         (getnameinfo): Remove unnecessary truncation of result buffers.
2228
2229 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2230
2231         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
2232         in case of inet_ntop failure.
2233
2234 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2235
2236         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
2237         avoid long lines.
2238         (gni_host_inet_numeric): Likewise.  Reduce scope of local
2239         variables.
2240         (gni_host_inet, gni_host_local): Add comment.
2241         (gni_host): Add comment.  Use temporary to avoid long lines.
2242
2243 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2244
2245         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
2246         registers specifiers where general purpose registers specifiers should
2247         have been used.
2248
2249 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2250
2251         [BZ #19779]
2252         CVE-2016-1234
2253         Avoid copying names of directory entries.
2254         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
2255         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
2256         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
2257         (struct readdir_result): New type.
2258         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
2259         (GL_READDIR): New macros.
2260         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
2261         (convert_dirent, convert_dirent64): New functions.
2262         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
2263         convert_dirent64.  Adjust references to the readdir result.
2264         * sysdeps/unix/sysv/linux/i386/glob64.c:
2265         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
2266         * posix/bug-glob2.c (LONG_NAME): Define.
2267         (filesystem): Add LONG_NAME.
2268         (my_DIR): Increase the size of room_for_dirent.
2269
2270 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
2271
2272         [BZ #20041]
2273         * misc/sys/select.h (__need_timespec): Only define if
2274         [__USE_XOPEN2K].
2275         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
2276         variable.
2277         (test-xfail-XPG4/utmpx.h/conform): Likewise.
2278         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
2279         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
2280
2281 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2282             Segher Boessenkool  <segher@gcc.gnu.org>
2283
2284         [BZ #20004]
2285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
2286         (__novec_swapcontext): Add missing load.
2287
2288 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
2289
2290         [BZ #20023]
2291         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
2292         <time.h>.
2293         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
2294         variable.
2295         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
2296
2297 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2298
2299         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
2300         flags CLONE_VM compare.
2301
2302 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2303
2304         [BZ #20031]
2305         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
2306         completely empty.
2307
2308 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2309
2310         [BZ #19573]
2311         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
2312         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
2313         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
2314         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
2315         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
2316         (hesiod_free_list): Mark as hidden.
2317         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
2318         res_set, res_get.
2319         * hesiod/hesiod.c: Remove unnecessary forward declarations.
2320         (init, __hesiod_res_get, __hesiod_res_set): Remove.
2321         (hesiod_init): Remove obsolete res_ninit call.
2322         (hesiod_end): Do not free resolver state.  Do not invoke callback.
2323         (hesiod_bind): Do not call init.
2324         (get_txt_records): Use res_mkquery, res_send instead of
2325         res_nmkquery, res_nsend.
2326         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
2327         instead of _nss_hesiod_init.
2328         (_nss_hesiod_initgroups_dyn): Likewise.
2329         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2330         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
2331         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2332
2333 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2334
2335         * hesiod/hesiod_p.h (DEF_RHS): Remove.
2336         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
2337
2338 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2339
2340         * hesiod/hesiod.h: Remove RCS keyword.
2341         * hesiod/hesiod_p.h: Likewise.
2342
2343         * hesiod/hesiod.c: Likewise.
2344
2345 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
2346
2347         [BZ #12450]
2348         * locale/iso-639.def: Add Samogitian/sgs.
2349
2350 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
2351
2352         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
2353
2354         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
2355
2356 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
2357             Carlos O'Donell  <carlos@redhat.com>
2358
2359         [BZ #19072]
2360         * grp/Makefile (headers): Add grp-merge.h
2361         (routines): Add grp-merge.
2362         * grp/getgrgid_r.c: Include grp-merge.h.
2363         (DEEPCOPY_FN): Define.
2364         (MERGE_FN): Define.
2365         * grp/getgrname_r.c: Include grp-merge.h.
2366         (DEEPCOPY_FN): Define.
2367         (MERGE_FN): Define.
2368         * grp/grp-merge.c: New file.
2369         * grp/grp-merge.h: New file.
2370         * include/grp-merge.h: New file.
2371         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
2372         __copy_grp@GLIBC_PRIVATE.
2373         * manual/nss.texi (Actions in the NSS configuration): Describe
2374         return, continue, and merge.
2375         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
2376         (DEEPCOPY_FN): Define.
2377         (MERGE_FN): Define.
2378         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
2379         (DEEPCOPY_FN): Define.
2380         (MERGE_FN): Define.
2381         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
2382         [!MERGE_FN]: Define __merge_einval.
2383         (CHECK_MERGE): Define.
2384         (REENTRANT_NAME): Process merge if do_merge is true.
2385         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
2386         (__nss_getent_r): Likewise.
2387         * nss/nsswitch.c (nss_parse_service_list): Likewise.
2388         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
2389
2390 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2391
2392         [BZ #20012]
2393         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
2394         length to calculate the buffer to read.
2395         (fmemopen_write): Set the buffer position based on bytes written.
2396         (fmemopen_seek): Return EINVAL for invalid whence modes.
2397
2398         [BZ #19957]
2399         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
2400         tst-getpid2.
2401         (test): Add tst-clone2.
2402         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
2403         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
2404         pid/tid fields for CLONE_VM.
2405         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
2406         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
2407         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
2408         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
2409         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
2410         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
2411         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
2412         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
2413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
2414         Likewise.
2415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
2416         Likewise.
2417         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
2418         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
2419         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
2420         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
2421         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
2422         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
2423         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
2424         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
2425
2426 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2427
2428         [BZ #19642]
2429         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
2430         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
2431         (gni_serv_local, gni_serv): New functions extracted from
2432         getnameinfo.
2433         (getnameinfo): Call gni_host and gni_serv to perform the
2434         processing.  Always free scratch buffer.
2435
2436 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2437
2438         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
2439         remaining bytes in the dest string, with zeros.
2440
2441 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2442
2443         [BZ #20010]
2444         CVE-2016-3706
2445         * sysdeps/posix/getaddrinfo.c
2446         (convert_hostent_to_gaih_addrtuple): New function.
2447         (gethosts): Call convert_hostent_to_gaih_addrtuple.
2448         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
2449         AF_INET data.
2450
2451 2016-04-29  Florian Weimer  <fweimer@redhat.com>
2452
2453         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
2454         callback function gl_readdir.
2455         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
2456         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
2457         (glob_in_dir): Remove len.  Use strdup instead of malloc and
2458         memcpy to copy the name.
2459         * manual/pattern.texi (Calling Glob): Document requirements for
2460         implementations of the gl_readdir callback function.
2461         * manual/examples/mkdirent.c: New example.
2462         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
2463         per the manual guidance.
2464         * posix/tst-gnuglob.c (my_readdir): Likewise.
2465
2466 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
2467
2468         [BZ #20014]
2469         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
2470         not [__USE_POSIX].
2471         (getchar_unlocked): Likewise.
2472         (putc_unlocked): Likewise.
2473         (putchar_unlocked): Likewise.
2474         (flockfile): Likewise.
2475         (ftrylockfile): Likewise.
2476         (funlockfile): Likewise.
2477         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
2478         variable.
2479         (test-xfail-XPG4/stdio.h/conform): Likewise.
2480
2481         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
2482         Expect constant.
2483         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
2484         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
2485         variable.
2486         (test-xfail-XPG4/langinfo.h/conform): Likewise.
2487         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
2488
2489         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
2490         [__USE_LARGEFILE64] (off64_t): Likewise.
2491         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
2492         variable.
2493
2494 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2495
2496         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
2497
2498 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2499
2500         * resolv/inet_addr.c: Reindent preprocessor conditionals.
2501         * resolv/res_init.c: Likewise.
2502         * resolv/res_mkquery.c: Likewise.
2503
2504 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2505
2506         * resolv/res_init.c (isascii): Do not define.  Use definition in
2507         <ctype.h>.
2508         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
2509         (LOG_AUTH): Remove.
2510         (SPRINTF): Remove, adjust caller.
2511         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
2512
2513 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2514
2515         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
2516         SUNSECURITY conditional.
2517         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
2518
2519 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2520
2521         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
2522         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
2523         Remove BSD-related preprocessor conditionals.
2524         * conf/portability.h: Remove.
2525
2526 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2527
2528         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
2529         * resolv/res_data.c: Likewise.
2530
2531 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2532
2533         * resolv/res_comp.c: Remove code conditional on __ultrix__.
2534         * resolv/res_data.c: Remove code conditional on ultrix.
2535
2536 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2537
2538         * resolv/res_init.c (RFC1535): Do not define.  Remove
2539         RFC1535 preprocessor conditionals.
2540         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
2541         because there configuration options which make the resolver
2542         behavior different.
2543
2544 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2545
2546         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
2547         RESOLVSORT preprocessor conditionals.
2548         * resolv/nss_dns/dns-host.c: Likewise.
2549         * resolv/res_init.c: Likewise.
2550
2551 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2552
2553         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
2554         is never defined.
2555
2556 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2557
2558         * inet/inet_lnaof.c: Remove SCSS keyword.
2559         * inet/inet_mkadr.c: Likewise.
2560         * inet/inet_net.c: Likewise.
2561         * inet/inet_netof.c: Likewise.
2562         * inet/rcmd.c: Likewise.
2563         * inet/rexec.c: Likewise.
2564         * inet/ruserpass.c: Likewise.
2565
2566 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2567
2568         * resolv/inet_addr.c: Remove _LIBC conditionals.
2569         * resolv/res_data.c: Likewise.
2570         * resolv/res_init.c: Likewise.
2571         * resolv/res_mkquery.c: Likewise.
2572         * resolv/res_libc.c: Update comment.
2573         * resolv/README: Update.
2574
2575 2016-04-28  Florian Weimer  <fweimer@redhat.com>
2576
2577         * resolv/gethnamaddr.c: Remove SCSS keyword.
2578         * resolv/herror.c: Likewise.
2579         * resolv/inet_addr.c: Likewise.
2580         * resolv/inet_net_ntop.c: Likewise.
2581         * resolv/inet_net_pton.c: Likewise.
2582         * resolv/inet_neta.c: Likewise.
2583         * resolv/inet_ntop.c: Likewise.
2584         * resolv/inet_pton.c: Likewise.
2585         * resolv/ns_date.c: Remove RCS keyword.
2586         * resolv/ns_name.c: Likewise.
2587         * resolv/ns_netint.c: Likewise.
2588         * resolv/ns_parse.c: Likewise.
2589         * resolv/ns_print.c: Likewise.
2590         * resolv/ns_samedomain.c: Likewise.
2591         * resolv/ns_ttl.c: Likewise.
2592         * resolv/nsap_addr.c: Likewise.
2593         * resolv/res_comp.c: Remove SCSS and RCS keyword.
2594         * resolv/res_data.c: Remove RCS keyword.
2595         * resolv/res_debug.c: Remove SCSS and RCS keyword.
2596         * resolv/res_init.c: Likewise.
2597         * resolv/res_mkquery.c: Likewise.
2598         * resolv/res_query.c: Likewise.
2599         * resolv/res_send.c: Likewise.
2600
2601 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
2602
2603         * conform/data/stdio.h-data (fdopen): Expect also for
2604         [XPG3 || XPG4].
2605
2606         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
2607         (fseeko): Likewise.
2608         (ftello): Likewise.
2609         (ftrylockfile): Likewise.
2610         (funlockfile): Likewise.
2611         (getc_unlocked): Likewise.
2612         (getchar_unlocked): Likewise.
2613         (putc_unlocked): Likewise.
2614         (putchar_unlocked): Likewise.
2615
2616 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2617
2618         [BZ #19868]
2619         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
2620         DNS packet syntax checks (which were not needed before).  Skip
2621         over non-PTR records.
2622
2623 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2624
2625         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
2626         definition.  Include <stddef.h> instead.
2627
2628 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2629
2630         [BZ #19831]
2631         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
2632         function.
2633         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
2634         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
2635
2636 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2637
2638         [BZ #19862]
2639         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
2640         (getanswer_r): Do not call syslog.
2641         (gaih_getanswer_slice): Likewise.
2642         * resolv/gethnamaddr.c (AskedForGot): Remove.
2643         (getanswer): Do not call syslog.
2644         (gethostbyaddr): Likewise.
2645
2646 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
2647
2648         * conform/data/signal.h-data (union sigval): Expect also if
2649         [XOPEN2K].
2650         (struct sigevent): Likewise.
2651         (SIGEV_NONE): Likewise.
2652         (SIGEV_SIGNAL): Likewise.
2653         (SIGEV_THREAD): Likewise.
2654         (SIGRTMIN): Likewise.
2655         (SIGRTMAX): Likewise.
2656         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
2657         variable.
2658         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
2659
2660 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2661
2662         [BZ #19830]
2663         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
2664         (gaih_getanswer_slice): Likewise.
2665         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
2666         Also check for availability of RR metadata.
2667
2668 2016-04-27  Florian Weimer  <fweimer@redhat.com>
2669
2670         [BZ #19825]
2671         * resolv/res_send.c (send_vc): Remove early *resplen2
2672         initialization.  Set *resplen2 on socket error.  Call
2673         close_and_return_error for other errors.
2674
2675 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
2676
2677         * sysdeps/unix/sysv/linux/netiucv/iucv.h
2678         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
2679         (SCM_IUCV_TRGCLS): New define.
2680
2681 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2682
2683         [BZ #20005]
2684         * libio/fmemopen.c (fmemopen_write): Update internal position after
2685         write.
2686         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
2687         * stdio-common/tst-fmemopen4.c: New file..
2688
2689 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
2690
2691         [BZ #19996]
2692         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
2693         not [__USE_XOPEN2K].
2694         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
2695         variable.
2696
2697         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
2698         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
2699         variable.
2700
2701         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
2702         [__USE_XOPEN2K8].
2703         [__USE_LARGEFILE64] (off64_t): Likewise.
2704         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
2705         variable.
2706
2707 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
2708
2709         [BZ #19989]
2710         * libio/stdio.h (cuserid): Do not declare if
2711         [__USE_XOPEN2K && !__USE_GNU].
2712         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
2713         variable.
2714
2715 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2716
2717         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
2718         (sysdep_routines): Add P8 and PPC64 strcspn targets.
2719         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
2720         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
2721         ifunc'ed strcspn.
2722         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
2723         [EALIGN]: Removed.
2724         [END]: Likewise
2725         [STRSPN]: Define instead of the above to control symbol name.
2726         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
2727         New file.
2728         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
2729         Likewise.
2730         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
2731         Likewise.
2732         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
2733         Likewise.
2734         * sysdeps/powerpc/powerpc64/power8/strspn.S:
2735         [INITIAL_MASK]: New macro.
2736         [STRCSPN]: Likewise.
2737         [UPDATE_MASK]: Likewise.
2738         [USE_AS_STRCSPN]: Lisewise.
2739
2740 2016-04-25  Florian Weimer  <fweimer@redhat.com>
2741
2742         [BZ #19931]
2743         * stdio-common/tst-vfprintf-width-prec.c: New file.
2744         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
2745         (tests-special): Add tst-vfprintf-width-prec-mem.out.
2746         (generated): Add mtrace-related files.
2747         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
2748         (tst-%-mem.out): New pattern rule, replaces
2749         tst-printf-bz18872-mem.out.
2750         * stdio-common/vfprintf.c (vfprintf): When handling a precision
2751         specifier, deallocate any previously allocated work buffer.
2752
2753 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
2754
2755         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
2756         Add nop before __startcontext, add explaining comments.
2757
2758 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
2759
2760         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
2761         any more. Notably since IPV6_PKTINFO has been reintroduced with a
2762         completely different API.
2763
2764         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
2765         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
2766         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
2767         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
2768         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
2769         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
2770         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
2771         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
2772         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
2773         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
2774
2775 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2776
2777         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
2778
2779 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
2780
2781         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
2782         when it is the default of 0.
2783
2784 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2785
2786         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
2787         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
2788         (sysdep_routines): Add new strcasestr targets.
2789         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
2790         (__libc_ifunc_impl_list): Likewise.
2791         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
2792         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
2793         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
2794         * sysdeps/powerpc/powerpc64/power8/Makefile:
2795         New file to add strcasestr-ppc64 to sysdep_routines.
2796         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
2797         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
2798
2799 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
2800
2801         * benchtests/Makefile (wcsmbs-benchset): Include only for
2802         native builds and runs.
2803         (LOCALES): Likewise.
2804         (bench-build): Build timing-type here instead of the bench
2805         target.  Generate locale only for native builds.
2806         * benchtests/README: Add note for cross-building.
2807
2808         * benchtests/Makefile (bench-clean): Clean up extra-objs.
2809
2810         * benchtests/README: Update README to include instructions on
2811         using bench-build.
2812
2813         * Makefile.in (bench-build): New target.
2814         * Rules (PHONY): Add bench-build target.
2815         * benchtests/Makefile (bench): Depend on bench-build.
2816         (bench-build): New target.
2817
2818 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2819
2820         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
2821         profil_reply_port.
2822         (profile_waiter): Do not initialize profil_reply_port.
2823         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
2824         frequency instead of tick length in us.
2825
2826 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
2827
2828         [BZ #18712]
2829         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
2830         (__old_mempcpy_small): Likewise.
2831         (__old_strcpy_small): Likewise.
2832         (__old_stpcpy_small): Likewise.
2833         (__old_strpbrk_c2): Fix compat symbol name.
2834         (__old_strpbrk_c3): Likewise.
2835         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
2836         (__mempcpy_small): Remove.
2837         (__strcpy_small): Remove.
2838         (__stpcpy_small): Remove.
2839
2840 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
2841
2842         [BZ #19400]
2843         * locale/iso-639.def: Add the Talossan/tzl language.
2844
2845 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
2846
2847         [BZ #16983]
2848         * locale/programs/ld-address.c (address_finish): Update postal_fmt
2849         comment.  Add "ln" to strchr check on postal_fmt.
2850
2851 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
2852
2853         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
2854         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
2855         tel_dom_fmt.
2856
2857 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
2858
2859         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
2860         (sysdep_routines): Added __strlen_power8.
2861         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
2862         __strlen_power8 entry.
2863         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
2864         Implementation for POWER8.
2865         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
2866         for __strlen_power8.
2867         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
2868         Implementation for POWER8.
2869
2870 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
2871
2872         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
2873
2874 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
2875
2876         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
2877         Goldmont and Airmont processors.
2878
2879 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
2880
2881         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
2882         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
2883         (__STRING2_SMALL_GET32): Remove.
2884         (memset): Remove.
2885         (__memset_1): Remove.
2886         (__memset_gc): Remove.
2887         (__mempcpy): Remove.
2888         (mempcpy): Remove.
2889         (__mempcpy_args): Remove.
2890         (strchr): Remove.
2891         (strcpy): Remove.
2892         (strcpy_args): Remove.
2893         (__stpcpy_args): Remove.
2894         (__strcmp_cc): Remove.
2895         (__strcmp_gc): Remove.
2896         (strstr): Remove.
2897
2898 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
2899
2900         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
2901         * nis/nis_call.c (nis_server_cache_add): Likewise.
2902
2903 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2904
2905         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
2906
2907 2016-04-14  Florian Weimer  <fweimer@redhat.com>
2908
2909         * malloc/arena.c (__malloc_fork_lock_parent)
2910         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
2911         internal_function attribute.
2912
2913 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
2914
2915         * stdio-common/printf_fp.c (__printf_fp_l):
2916         Rename ___printf_fp_l to __printf_fp_l and
2917         remove strong alias. Use libc_hidden_def instead
2918         of ldbl_hidden_def macro.
2919
2920 2016-04-14  Florian Weimer  <fweimer@redhat.com>
2921
2922         Remove malloc hooks from fork handler.  They are no longer needed
2923         because malloc runs right before fork, and no malloc calls from
2924         other fork handlers are not possible anymore.
2925         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
2926         declarations.
2927         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
2928         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
2929         (atfork_recursive_cntr): Remove.
2930         (__malloc_fork_lock_parent): Do not override malloc hooks and
2931         thread_arena.
2932         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
2933         thread_arena.
2934         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
2935         thread_arena instead of save_arena.
2936
2937 2016-04-14  Florian Weimer  <fweimer@redhat.com>
2938
2939         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
2940         (thread_atfork, thread_atfork_static): Remove.
2941         * sysdeps/mach/hurd/malloc-machine.h:
2942         (thread_atfork, thread_atfork_static): Remove.
2943
2944 2016-04-14  Florian Weimer  <fweimer@redhat.com>
2945
2946         [BZ #19431]
2947         Run the malloc fork handler as late as possible to avoid deadlocks.
2948         * malloc/malloc-internal.h: New file.
2949         * malloc/malloc.c: Include it.
2950         * malloc/arena.c (ATFORK_MEM): Remove.
2951         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
2952         Update comment.
2953         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
2954         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
2955         Remove outdated comment.
2956         (ptmalloc_init): Do not call thread_atfork.  Remove
2957         thread_atfork_static.
2958         * malloc/tst-malloc-fork-deadlock.c: New file.
2959         * Makefile (tests): Add tst-malloc-fork-deadlock.
2960         (tst-malloc-fork-deadlock): Link against libpthread.
2961         * manual/memory.texi (Aligned Memory Blocks): Update safety
2962         annotation comments.
2963         * sysdeps/nptl/fork.c (__libc_fork): Call
2964         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
2965         __malloc_fork_unlock_child.
2966         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2967
2968 2016-04-14  Florian Weimer  <fweimer@redhat.com>
2969
2970         [BZ #19613]
2971         Remove union wait.
2972         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
2973         (w_stopsig, w_stopval): Remove.
2974         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
2975         stat_loc argument.
2976         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
2977         (__WAIT_STATUS_DEFN): Remove.
2978         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
2979         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
2980         (wait, wait3, wait4): Use int * for the stat_loc argument.
2981         * posix/wait.c (__wait): Likewise.
2982         * posix/wait3.c (__wait3): Likewise.
2983         * posix/wait4.c (__wait4): Likewise.
2984         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
2985         (__WAIT_STATUS_DEFN): Remove.
2986         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
2987         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
2988         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
2989         argument.
2990         * sysdeps/posix/wait.c (__libc_wait): Likewise.
2991         * sysdeps/posix/wait3.c (__wait3): Likewise.
2992         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
2993         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
2994         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
2995         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
2996         stat_loc argument.
2997         * manual/process.texi (BSD Wait Functions): Remove union wait.
2998
2999 2016-04-13  Andreas Schwab  <schwab@suse.de>
3000
3001         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
3002         (test-extras): Add tst-tlsalign-vars.
3003         * math/Makefile: Wrap long lines.
3004         (libm-vec-test-wrappers): Define.
3005         (test-extras): Add $(libm-vec-test-wrappers).
3006         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
3007         * nss/Makefile (extra-test-objs): Add nss_test1.os.
3008         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
3009         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
3010         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
3011         (extra-test-objs): Add corresponding objects.
3012
3013 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
3014
3015         [BZ #19928]
3016         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
3017         New.
3018         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
3019         times of shared cache size.
3020         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
3021         (VMOVNT): New.
3022         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
3023         (VMOVNT): Likewise.
3024         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
3025         (VMOVNT): Likewise.
3026         (VMOVU): Changed to movups for smaller code sizes.
3027         (VMOVA): Changed to movaps for smaller code sizes.
3028         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
3029         comments.
3030         (PREFETCH): New.
3031         (PREFETCH_SIZE): Likewise.
3032         (PREFETCHED_LOAD_SIZE): Likewise.
3033         (PREFETCH_ONE_SET): Likewise.
3034         Rewrite to use forward and backward loops, which move 4 vector
3035         registers at a time, to support overlapping addresses and use
3036         non temporal store if size is above the threshold and there is
3037         no overlap between destination and source.
3038
3039 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
3040
3041         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
3042         Include dl-vdso.
3043         * sysdeps/unix/sysv/linux/mips/Versions: Add
3044         __vdso_clock_gettime.
3045         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
3046         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
3047         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
3048         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
3049         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
3050         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
3051         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
3052         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
3053         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
3054
3055 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3056
3057         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
3058         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
3059         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
3060         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
3061         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3062         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3063         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
3064         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
3065         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
3066         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
3067         syscalls generation.
3068         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3069         [__NR_pwrite64] (__NR_write): Remove define.
3070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3071         [__NR_pwrite64] (__NR_write): Remove define.
3072         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
3073         Remove define.
3074         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
3075         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
3076         Remove define.
3077         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
3078         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
3079         Linux implementation as base.
3080         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
3081
3082         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
3083         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
3084         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
3085         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
3086         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
3087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
3088         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
3089         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
3090         syscall generation.
3091         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3092         [__NR_pread64] (__NR_pread): Remove define.
3093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3094         [__NR_pread64] (__NR_pread): Likewise.
3095         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
3096         define.
3097         (__libc_pread): Use SYSCALL_LL macro on offset argument.
3098         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
3099         Remove define.
3100         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
3101         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
3102         Linux implementation as base.
3103         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
3104         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3105         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3106
3107         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
3108         definition.
3109         (__ALIGNMENT_COUNT): Likewise.
3110         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
3111         (__ALIGNMENT_COUNT): Likewise.
3112         (SYSCALL_LL): New define.
3113         (SYSCALL_LL64): Likewise.
3114         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
3115         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
3116         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
3117         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
3118
3119         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3120         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
3121         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3122         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3123         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3124         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3125
3126 2016-04-11  Florian Weimer  <fweimer@redhat.com>
3127
3128         [BZ #19865]
3129         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
3130         original buffer before retry.
3131
3132 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3133
3134         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
3135         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
3136         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
3137         GLRO(dl_auxv) list.
3138         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
3139         including <ldsodefs.h>.
3140         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
3141
3142 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
3143
3144         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
3145         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
3146         $(CPPFLAGS).
3147
3148 2016-04-09  Khem Raj  <raj.khem@gmail.com>
3149
3150         [BZ #17950]
3151         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
3152         Add -mfpmath=387.
3153
3154 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
3155
3156         * sysdeps/i386/configure.ac: Change == to = when calling test.
3157         * sysdeps/x86_64/configure.ac: Likewise.
3158         * sysdeps/i386/configure: Regenerated.
3159         * sysdeps/x86_64/configure: Likewise.
3160
3161 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
3162
3163         [BZ #16137]
3164         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
3165         * benchtests/bench-strcoll.c (input_files): Likewise.
3166         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
3167         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
3168         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
3169
3170 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
3171
3172         [BZ #19929]
3173         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
3174         [__USE_XOPEN2K8 && !__USE_GNU].
3175         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
3176         variable.
3177
3178         [BZ #19925]
3179         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
3180         define if [!__USE_MISC && __USE_XOPEN2K].
3181         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
3182         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
3183         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
3184         Likewise.
3185         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
3186         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
3187         variable.
3188         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
3189
3190 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3191
3192         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3193         (sysdep_routines): Add new strspn targets.
3194         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3195         (__libc_ifunc_impl_list): Add strspn.
3196         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3197         New file.
3198         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
3199         Likewise.
3200         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
3201         Likewise.
3202         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3203         Likewise.
3204
3205 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3206
3207         * misc/hsearch_r.c: Include <limits.h>.
3208
3209 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3210
3211         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
3212
3213 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3214
3215         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
3216         (MEMCPY_SYMBOL): New.
3217         (MEMPCPY_SYMBOL): Likewise.
3218         (MEMMOVE_CHK_SYMBOL): Likewise.
3219         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
3220         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
3221         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
3222         Provide alias for memcpy in libc.a and ld.so.
3223
3224 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3225
3226         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
3227         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
3228         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
3229         Disabled fro now.
3230         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
3231         symbols.  Properly check USE_MULTIARCH on __memset symbols.
3232
3233 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3234
3235         * benchtests/Makefile (string-benchset): Add memcpy-large,
3236         memmove-large and memset-large.
3237         * benchtests/bench-memcpy-large.c: New file.
3238         * benchtests/bench-memmove-large.c: Likewise.
3239         * benchtests/bench-memmove-large.c: Likewise.
3240         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
3241
3242 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3243
3244         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
3245         32-bit displacement to avoid long nop between instructions.
3246
3247 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3248
3249         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
3250         a comment on VMOVU and VMOVA.
3251
3252 2016-04-04  Florian Weimer  <fweimer@redhat.com>
3253
3254         [BZ #19633]
3255         Use specified locale for number formatting in strfmon_l.
3256         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
3257         (__nl_lookup_word): New inline functions.
3258         * include/printf.h (__print_fp_l): Declare.
3259         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
3260         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
3261         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
3262         (___printf_fp): New function.
3263         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
3264         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
3265         * stdlib/tst-strfmon_l.c (do_test): New test.
3266         * stdlib/Makefile (tests): Add kt.
3267         (LOCALES): Build additional locales.
3268         (tst-strfmon_l.out): Require locales.
3269
3270 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3271
3272         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
3273         if not in libc.
3274         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3275         Likewise.
3276         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
3277         Likewise.
3278         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3279         Likewise.
3280
3281 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3282
3283         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3284         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
3285         with unaligned_erms.
3286         (__memmove_erms): Skip if source == destination.
3287         (__memmove_unaligned_erms): Don't check source == destination
3288         first.
3289
3290 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3291
3292         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
3293         bit_arch_Fast_Copy_Backward for Intel Core proessors.
3294
3295 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3296
3297         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
3298         * string/strspn.c (strspn): Likewise.
3299
3300 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3301
3302         * benchtests/bench-memset.c (do_test): Support 64-byte
3303         alignment.
3304         (test_main): Test 64-byte alignment.
3305
3306 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3307
3308         * benchtests/bench-memmove.c (test_main): Test 64-byte
3309         alignment.
3310
3311 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3312
3313         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
3314
3315 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3316
3317         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
3318         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
3319         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
3320
3321         * string/strpbrk.c (strpbrk): Rewrite function.
3322         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
3323         (__strpbrk_c2): Likewise.
3324         (__strpbrk_c3): Likewise.
3325         * string/string-inlines.c
3326         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
3327         Likewise.
3328         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
3329         Likewise.
3330
3331         * string/strspn.c (strcspn): Rewrite function.
3332         * string/bits/string2.h (strspn): Use __builtin_strcspn.
3333         (__strspn_c1): Remove inline function.
3334         (__strspn_c2): Likewise.
3335         (__strspn_c3): Likewise.
3336         * string/string-inlines.c
3337         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
3338         compatibility symbol.
3339         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
3340         Likewise.
3341         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
3342         Likewise.
3343         * string/string-inlines.c: Include generic version.
3344
3345 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
3346             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3347
3348         * string/Version (libc): Add GLIBC_2.24.
3349         * string/strcspn.c (strcspn): Rewrite function.
3350         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
3351         (__strcspn_c1): Remove inline function.
3352         (__strcspn_c2): Likewise.
3353         (__strcspn_c3): Likewise.
3354         * string/string-inline.c
3355         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
3356         compatibility symbol.
3357         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
3358         Likewise.
3359         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
3360         Likewise.
3361         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
3362
3363 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
3364
3365         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
3366         Use ahi instead of aghi to adjust stack pointer.
3367
3368 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3369
3370         [BZ #19853]
3371         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
3372         TEST to take significant digits as second parameter.
3373         [TEST]: Redefine in terms of TEST_N taking 30
3374         significant digits.
3375         (do_test): Add test case to demonstrate precision
3376         failure in the ldbl-128ibm printf.
3377         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
3378         (__mpn_extract_long_double): Carry 7 extra intermediate
3379         bits of precision to aide computing difference when
3380         signs differ.
3381
3382 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
3383
3384         [BZ #19881]
3385         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3386         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
3387         memset-avx512-unaligned-erms.
3388         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3389         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
3390         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
3391         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
3392         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
3393         __memset_sse2_unaligned_erms, __memset_erms,
3394         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
3395         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
3396         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
3397         file.
3398         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3399         Likewise.
3400         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
3401         Likewise.
3402         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
3403         Likewise.
3404
3405 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
3406
3407         [BZ #19776]
3408         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3409         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
3410         memmove-avx512-unaligned-erms.
3411         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3412         (__libc_ifunc_impl_list): Test
3413         __memmove_chk_avx512_unaligned_2,
3414         __memmove_chk_avx512_unaligned_erms,
3415         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
3416         __memmove_chk_sse2_unaligned_2,
3417         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
3418         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
3419         __memmove_avx512_unaligned_erms, __memmove_erms,
3420         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
3421         __memcpy_chk_avx512_unaligned_2,
3422         __memcpy_chk_avx512_unaligned_erms,
3423         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
3424         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
3425         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
3426         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
3427         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
3428         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
3429         __mempcpy_chk_avx512_unaligned_erms,
3430         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
3431         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
3432         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
3433         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
3434         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
3435         __mempcpy_erms.
3436         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
3437         file.
3438         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3439         Likwise.
3440         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
3441         Likwise.
3442         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3443         Likwise.
3444
3445 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
3446
3447         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
3448         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
3449         (La_s390_64_regs): Likewise.
3450         (La_s390_32_retval): Append vector register lrv_v24.
3451         (La_s390_64_retval): Likeweise.
3452         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
3453         Handle extended structs La_s390_32_regs and La_s390_32_retval.
3454         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
3455         Handle extended structs La_s390_64_regs and La_s390_64_retval.
3456
3457 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
3458
3459         [BZ #19916]
3460         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
3461         to create a non-vector/vector version for _dl_runtime_resolve and
3462         _dl_runtime_profile. Move implementation to ...
3463         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
3464         (_dl_runtime_resolve) Save and restore fpr/vrs.
3465         (_dl_runtime_profile) Save and restore vrs and fix some issues
3466         if _dl_call_pltexit is called.
3467         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
3468         Choose the correct resolver function if running on a machine with vx.
3469         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
3470         to create a non-vector/vector version for _dl_runtime_resolve and
3471         _dl_runtime_profile. Move implementation to ...
3472         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
3473         (_dl_runtime_resolve) Save and restore fpr/vrs.
3474         (_dl_runtime_profile) Save and restore vrs and fix some issues
3475         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
3476         Choose the correct resolver function if running on a machine with vx.
3477
3478 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3479
3480         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
3481
3482 2016-03-31  Florian Weimer  <fweimer@redhat.com>
3483
3484         [BZ #19509]
3485         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
3486         skip_map != NULL.
3487         * elf/tst-dlsym-error.c: New file.
3488         * elf/Makefile (tests): Add tst-dlsym-error.
3489         (tst-dlsym-error): Link against libdl.
3490
3491 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
3492
3493         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3494         (__ASSUME_FUTIMESAT): Remove macro.
3495         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
3496
3497 2016-03-29  Florian Weimer  <fweimer@redhat.com>
3498
3499         [BZ #19879]
3500         CVE-2016-3075
3501         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
3502         copy name.
3503
3504 2016-03-29  Florian Weimer  <fweimer@redhat.com>
3505
3506         [BZ #19837]
3507         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
3508         error if parse_line fails.
3509
3510 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3511
3512         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
3513         (index_cpu_ERMS): Likewise.
3514         (reg_ERMS): Likewise.
3515
3516 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
3517
3518         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
3519         PER_LINUX_FDPIC): Add.
3520
3521 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3522
3523         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3524         memcpy-avx512-no-vzeroupper.
3525         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
3526         to ...
3527         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
3528         (MEMCPY): Don't define.
3529         (MEMCPY_CHK): Likewise.
3530         (MEMPCPY): Likewise.
3531         (MEMPCPY_CHK): Likewise.
3532         (MEMPCPY_CHK): Renamed to ...
3533         (__mempcpy_chk_avx512_no_vzeroupper): This.
3534         (MEMPCPY_CHK): Renamed to ...
3535         (__mempcpy_chk_avx512_no_vzeroupper): This.
3536         (MEMCPY_CHK): Renamed to ...
3537         (__memmove_chk_avx512_no_vzeroupper): This.
3538         (MEMCPY): Renamed to ...
3539         (__memmove_avx512_no_vzeroupper): This.
3540         (__memcpy_avx512_no_vzeroupper): New alias.
3541         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
3542
3543 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3544
3545         [BZ #18858]
3546         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
3547         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
3548         and mempcpy-avx512-no-vzeroupper.
3549         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
3550         New.
3551         (MEMPCPY): Likewise.
3552         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
3553         (MEMPCPY_CHK): New.
3554         (MEMPCPY): Likewise.
3555         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
3556         (MEMPCPY): Likewise.
3557         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
3558         (MEMPCPY): Likewise.
3559         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
3560         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
3561         Likewise.
3562         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
3563         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
3564
3565 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
3566              Amit Pawar  <Amit.Pawar@amd.com>
3567
3568         [BZ #19583]
3569         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
3570         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
3571         processors.  Set Fast_Copy_Backward for AMD Excavator
3572         processors.
3573         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
3574         New.
3575         (index_arch_Fast_Unaligned_Copy): Likewise.
3576         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
3577         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
3578
3579 2016-03-25  Florian Weimer  <fweimer@redhat.com>
3580
3581         [BZ #19791]
3582         * resolv/res_send.c (close_and_return_error): New function.
3583         (send_dg): Initialize *resplen2 after reopen failure.  Call
3584         close_and_return_error for error returns.  On error paths without
3585         __res_iclose, initialze *resplen2 explicitly.  Update comment for
3586         successful return.
3587
3588 2016-03-25  Florian Weimer  <fweimer@redhat.com>
3589
3590         [BZ# 19860]
3591         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
3592         zero if the compiler does not provide the AVX512F bit.
3593
3594 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
3595
3596         [BZ #19848]
3597         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
3598         from 8 to 4.
3599         (__ieee754_powl): Compare integer exponent against 4 not 8.
3600         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
3601         from 8 to 4.
3602         (__ieee754_powl): Compare integer exponent against 4 not 8.
3603         * math/auto-libm-test-in: Add more tests of pow.
3604         * math/auto-libm-test-out: Regenerated.
3605         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
3606         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3607
3608 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
3609
3610         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
3611         Make code unconditional.
3612         [!__NR_utimensat]: Remove conditional code.
3613         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
3614         Make code unconditional.
3615         [!__NR_utimensat]: Remove conditional code.
3616         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
3617         Make code unconditional.
3618         [!__NR_utimensat]: Remove conditional code.
3619
3620 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
3621
3622         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
3623         Make code unconditional.
3624
3625 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
3626
3627         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
3628         call-clobbered %eax on retry path.
3629         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
3630
3631 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3632
3633         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
3634         Don't set %rcx twice before "rep movsb".
3635
3636 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3637
3638         [BZ #19583]
3639         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
3640         inline.  Check family before setting family, model and
3641         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
3642         bits here.
3643         (init_cpu_features): Replace HAS_CPU_FEATURE and
3644         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
3645         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
3646         for Intel processors with usable AVX2.  Call get_common_indeces
3647         for other processors with family == NULL.
3648         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
3649         (CPU_FEATURES_ARCH_P): Likewise.
3650         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
3651         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
3652
3653 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3654
3655         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
3656         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
3657         $(shared-thread-library) instead of hardcoding the path to libpthread.
3658
3659 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
3660
3661         * sysdeps/unix/sysv/linux/kernel-features.h
3662         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
3663         * sysdeps/unix/sysv/linux/getdents.c
3664         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
3665         [!have_no_getdents64_defined]: Likewise.
3666         (__GETDENTS): Remove __have_no_getdents64 conditional.
3667
3668 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
3669
3670         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
3671         Remove macro.
3672         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
3673         <kernel-features.h>.
3674         (signalfd) [__NR_signalfd4]: Make code unconditional.
3675         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
3676
3677 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3678
3679         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
3680         style.
3681
3682 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
3683
3684         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
3685         (__pthread_enable_asynccancel): Use JUMPTARGET to call
3686         __pthread_unwind.
3687         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
3688         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
3689         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
3690         (__condvar_cleanup1): Likewise.
3691
3692 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
3693
3694         [BZ #19822]
3695         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
3696         move it to the final $@ location.
3697
3698 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3699
3700         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
3701         access where posix_spawn success and pid argument is null.
3702         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
3703         success case.
3704
3705 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
3706
3707         * sysdeps/mach/hurd/i386/c++-types.data: New file.
3708
3709         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
3710
3711         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
3712         and __fcntl.
3713         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
3714         __fcntl only.
3715         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
3716         adding attribute_hidden to __open and __fcntl.
3717
3718         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
3719         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
3720         depend on libc-modules.h,
3721         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
3722
3723 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
3724
3725         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
3726         Remove macro.
3727         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
3728         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
3729         entry.
3730
3731         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
3732         Remove macro.
3733         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
3734         include <kernel-features.h>.
3735         [!__ASSUME_FALLOCATE]: Remove conditional code.
3736         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
3737
3738 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
3739
3740         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
3741         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
3742         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
3743         (_ZGVdN4v_cos_avx2): Likewise.
3744         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
3745         (_ZGVdN4v_cos): Likewise.
3746         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
3747         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
3748         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
3749         (_ZGVdN4v_exp_avx2): Likewise.
3750         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
3751         (_ZGVdN4v_exp): Likewise.
3752         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
3753         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
3754         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
3755         (_ZGVdN4v_log_avx2): Likewise.
3756         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
3757         (_ZGVdN4v_log): Likewise.
3758         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
3759         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
3760         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
3761         (_ZGVdN4vv_pow_avx2): Likewise.
3762         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
3763         (_ZGVdN4vv_pow): Likewise.
3764         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
3765         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
3766         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
3767         (_ZGVdN4v_sin_avx2): Likewise.
3768         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
3769         (_ZGVdN4v_sin): Likewise.
3770         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
3771         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
3772         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
3773         (_ZGVdN4vvv_sincos_avx2): Likewise.
3774         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
3775         (_ZGVdN4vvv_sincos): Likewise.
3776         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
3777         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
3778         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
3779         (_ZGVbN4v_cosf_sse4): Likewise.
3780         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
3781         (_ZGVdN8v_cosf_avx2): Likewise.
3782         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
3783         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
3784         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
3785         (_ZGVbN4v_expf_sse4): Likewise.
3786         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
3787         (_ZGVdN8v_expf_avx2): Likewise.
3788         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
3789         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
3790         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
3791         (_ZGVbN4v_logf_sse4): Likewise.
3792         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
3793         (_ZGVdN8v_logf_avx2): Likewise.
3794         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
3795         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
3796         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
3797         (_ZGVbN4vv_powf_sse4): Likewise.
3798         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
3799         (_ZGVdN8vv_powf_avx2): Likewise.
3800         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
3801         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
3802         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
3803         (_ZGVbN4vvv_sincosf_sse4): Likewise.
3804         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
3805         (_ZGVdN8vvv_sincosf_avx2): Likewise.
3806         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
3807         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
3808         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
3809         (_ZGVbN4v_sinf_sse4): Likewise.
3810         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
3811         (_ZGVdN8v_sinf_avx2): Likewise.
3812         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
3813         Use JUMPTARGET to call callee.
3814         (WRAPPER_IMPL_SSE2_ff): Likewise.
3815         (WRAPPER_IMPL_SSE2_fFF): Likewise.
3816         (WRAPPER_IMPL_AVX): Likewise.
3817         (WRAPPER_IMPL_AVX_ff): Likewise.
3818         (WRAPPER_IMPL_AVX_fFF): Likewise.
3819         (WRAPPER_IMPL_AVX512): Likewise.
3820         (WRAPPER_IMPL_AVX512_ff): Likewise.
3821         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
3822         Likewise.
3823         (WRAPPER_IMPL_SSE2_ff): Likewise.
3824         (WRAPPER_IMPL_SSE2_fFF): Likewise.
3825         (WRAPPER_IMPL_AVX): Likewise.
3826         (WRAPPER_IMPL_AVX_ff): Likewise.
3827         (WRAPPER_IMPL_AVX_fFF): Likewise.
3828         (WRAPPER_IMPL_AVX512): Likewise.
3829         (WRAPPER_IMPL_AVX512_ff): Likewise.
3830         (WRAPPER_IMPL_AVX512_fFF): Likewise.
3831
3832 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3833
3834         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
3835         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
3836         qualifier.
3837         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
3838         internal_function qualifiers.
3839
3840 2016-03-15  Carlos O'Donell <carlos@redhat.com>
3841
3842         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
3843         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
3844         * math/atest-exp.c (exp_mpn): Mark chk unused.
3845         * math/atest-exp2.c (exp_mpn): Likwise.
3846         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
3847         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
3848
3849 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
3850
3851         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
3852         Remove macro.
3853         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
3854         <kernel-features.h>.
3855         [__NR_ppoll]: Make code unconditional.
3856         [!__ASSUME_PPOLL]: Remove conditional code.
3857
3858         * sysdeps/unix/sysv/linux/kernel-features.h
3859         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
3860         (__ASSUME_ACCEPT4): Likewise.
3861         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
3862         Define.
3863         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
3864         Likewise.
3865         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
3866         Likewise.
3867         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
3868         Likewise.
3869         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
3870         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
3871         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3872         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
3873         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3874         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3875         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3876         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3877         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3878         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3879         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
3880         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3881         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3882         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3883         * sysdeps/unix/sysv/linux/i386/kernel-features.h
3884         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
3885         Likewise.
3886         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
3887         Likewise.
3888         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3889         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
3890         0x040300].
3891         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3892         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
3893         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3894         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3895         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
3896         0x030300].
3897         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
3898         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3899         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3900         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
3901         0x040300].
3902         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3903         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3904         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3905         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
3906         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3907         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3908         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
3909         0x030300].
3910         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3911         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
3912         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3913         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3914         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3915         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3916         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3917         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3918         * sysdeps/unix/sysv/linux/s390/kernel-features.h
3919         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
3920         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
3921         0x040300].
3922         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3923         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3924         * sysdeps/unix/sysv/linux/sh/kernel-features.h
3925         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
3926         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3927         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3928         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
3929         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3930         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3931         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3932         * sysdeps/unix/sysv/linux/tile/kernel-features.h
3933         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3934         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
3935         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
3936         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
3937         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3938         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
3939         Likewise.
3940         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
3941         Likewise.
3942
3943 2016-03-15  Andreas Schwab  <schwab@suse.de>
3944
3945         [BZ #19257]
3946         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
3947         statp->_u._ext.nscount as loop count.
3948
3949 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
3950
3951         * math/test-signgam-finite-c99.c: Also #undef
3952         __LIBC_INTERNAL_MATH_INLINES.
3953         * math/test-signgam-main.c: Likewise.
3954
3955 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
3956
3957         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
3958         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
3959         (MADV_FREE): Likewise.
3960         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
3961         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
3962         EPOLLEXCLUSIVE.
3963
3964 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
3965
3966         * timezone/README: Remove mention of checktab.awk. Mention wiki
3967         SharedSourceFiles.
3968
3969 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
3970
3971         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
3972         WUNTRACED.
3973
3974 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3975
3976         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
3977         order to match the type of p when calling atomic_exchange_acq().
3978
3979 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3980
3981         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
3982         cfi_offset calls.
3983         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
3984         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
3985         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
3986         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
3987         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
3988
3989 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
3990
3991         * timezone/checktab.awk: Removed.
3992
3993 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
3994
3995         * manual/math.texi (Errors in Math Functions): Document relaxed
3996         accuracy goals for IBM long double.
3997         * math/libm-test.inc (test_exceptions): Always allow spurious
3998         "underflow" and "inexact" exceptions for IBM long double.
3999
4000 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
4001
4002         [BZ #19762]
4003         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4004         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
4005         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
4006         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
4007         (bit_arch_*): This for feature array.
4008         (bit_*): Renamed to ...
4009         (bit_cpu_*): This for cpu array.
4010         (index_*): Renamed to ...
4011         (index_arch_*): This for feature array.
4012         (index_*): Renamed to ...
4013         (index_cpu_*): This for cpu array.
4014         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
4015         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
4016         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
4017         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
4018         bit_##name with index_cpu_##name and bit_cpu_##name.
4019         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
4020         bit_##name with index_arch_##name and bit_arch_##name.
4021
4022 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
4023
4024         [BZ #19792]
4025         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4026         Terminate FDE before return label.
4027
4028 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
4029
4030         [BZ #19790]
4031         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
4032         (rintl): Define as macro.
4033         [USE_AS_NEARBYINTL] (__rintl): Likewise.
4034         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
4035         of fesetround.  Ensure results are evaluated before end of scope.
4036         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
4037         USE_AS_NEARBYINTL and include s_rintl.c.
4038         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
4039         Disable exception traps in new environment.
4040         (libc_feholdsetround_ppc_ctx): Likewise.
4041
4042 2016-03-08  Roland McGrath  <roland@hack.frob.com>
4043
4044         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
4045         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
4046         (tst_audit10_aux) [__AVX512F__]: ... here.
4047
4048 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
4049
4050         * include/sys/auxv.h: New file.
4051
4052 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4053
4054         [BZ #19759]
4055         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
4056
4057 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4058
4059         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
4060         operand modifier.
4061         (feclearexcept): Likewise.
4062
4063 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4064
4065         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
4066         to reflect the entire 32-bit HWCAP.
4067         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
4068         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
4069
4070 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4071
4072         [BZ #19783]
4073         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
4074         $(test-via-rtld-prefix).
4075         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
4076
4077 2016-03-08  Florian Weimer  <fweimer@redhat.com>
4078
4079         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
4080         union wait.  Report any non-zero exit status as error.
4081
4082 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4083
4084         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
4085         configured with --enable-hardcoded-path-in-tests.
4086
4087 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
4088
4089         [BZ #19677]
4090         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4091         (__ieee754_remainderl): Put zero low parts in canonical form.
4092         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
4093         file.  Based on
4094         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
4095         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
4096         with wrapper round test-fmodrem-ldbl-128ibm.c.
4097         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
4098         file.
4099         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
4100         Likewise.
4101         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
4102         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
4103
4104 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4105
4106         [BZ #19610]
4107         * elf/ldconfig.c (opt_link): Update comment.
4108         (options): Update help string for option -X.
4109         (search_dir): Unlink stale symbolic link only if updating symbolic
4110         links.
4111         * elf/tst-ldconfig-X.sh: New file.
4112         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
4113         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
4114
4115 2016-03-07  Andreas Schwab  <schwab@suse.de>
4116
4117         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
4118         needed arguments.
4119
4120 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
4121
4122         [BZ #15333]
4123         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
4124         to lstat64.
4125
4126 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4127
4128         * libio/filedoalloc.c (isatty): Remove.
4129         (local_isatty): Add comment.  Call __isatty directly.
4130         (_IO_file_doallocate): Update comment.  Assume _LIBC.
4131         * libio/wfiledoalloc.c (isatty): Remove.
4132         (_IO_wfile_doallocate): Update comment.
4133
4134 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4135
4136         [BZ #19269]
4137         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
4138         tst-audit4-aux.o.
4139         (tst-audit10): Depend on tst-audit10-aux.o.
4140         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
4141         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
4142         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
4143         instead of inline AVX code.
4144         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
4145         instead of inline AVX512 code.
4146         * sysdeps/x86_64/tst-audit4-aux.c: New file
4147         * sysdeps/x86_64/tst-audit10-aux.c: New file
4148
4149         [BZ #19648]
4150         * test-skeleton.c (main): Do not set RLIMIT_DATA.
4151
4152 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4153
4154         [BZ #14750]
4155         [BZ #10354]
4156         [BZ #18433]
4157         * include/sched.h (__clone): Add hidden prototype.
4158         (__clone2): Likewise.
4159         * include/unistd.h (__dup): Likewise.
4160         * posix/Makefile (tests): Add tst-spawn2.
4161         * posix/tst-spawn2.c: New file.
4162         * sysdeps/posix/dup.c (__dup): Add hidden definition.
4163         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
4164         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
4165         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
4166         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
4167         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
4168         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
4169         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
4170         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
4171         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
4172         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
4173         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
4174         Likewise.
4175         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
4176         Likewise.
4177         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
4178         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
4179         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
4180         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
4181         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
4182         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
4183         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
4184         * sysdeps/unix/sysv/linux/nptl-signals.h
4185         (____nptl_is_internal_signal): New function.
4186         * sysdeps/unix/sysv/linux/spawni.c: New file.
4187
4188         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
4189         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
4190         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
4191         * posix/tst-execvp2.c (do_test): Likewise.
4192         * posix/tst-execvp3.c (do_test): Likewise.
4193         * posix/tst-execvp4.c (do_test): Likewise.
4194         * posix/tst-execvpe1.c: New file.
4195         * posix/tst-execvpe2.c: Likewise.
4196         * posix/tst-execvpe3.c: Likewise.
4197         * posix/tst-execvpe4.c: Likewise.
4198         * posix/tst-execvpe5.c: Likewise.
4199         * posix/tst-execvpe6.c: Likewise.
4200
4201         [BZ #19534]
4202         * posix/execl.c (execl): Remove dynamic memory allocation.
4203         * posix/execle.c (execle): Likewise.
4204         * posix/execlp.c (execlp): Likewise.
4205
4206 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4207
4208         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
4209         Replace .text with .text.avx512.
4210         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
4211         Likewise.
4212
4213 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
4214
4215         * sysdeps/generic/libnsl.abilist: New file.
4216         * sysdeps/generic/libutil.abilist: New file.
4217
4218 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4219
4220         [BZ #19762]
4221         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
4222         HAS_ARCH_FEATURE with Fast_Rep_String.
4223         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
4224         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
4225         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
4226         Likewise.
4227         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
4228         Likewise.
4229         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
4230         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
4231         Likewise.
4232         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
4233         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
4234         Likewise.
4235
4236 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4237
4238         [BZ #19745]
4239         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
4240         with *%rax in call.
4241
4242 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4243
4244         [BZ #19745]
4245         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
4246         with *__libc_start_main@GOTPCREL(%rip) in call.
4247
4248 2016-03-04  Roland McGrath  <roland@hack.frob.com>
4249
4250         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
4251         inside conditional for nonempty $(CXX).
4252
4253         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
4254         nonempty.
4255
4256         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
4257         to test for empty $(CXX) rather than $(CXX) of "no".
4258
4259 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4260
4261         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
4262
4263 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
4264             H.J. Lu  <hongjiu.lu@intel.com>
4265
4266         [BZ #18880]
4267         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
4268         instead of Slow_BSF, and also check for Fast_Copy_Backward to
4269         enable __memcpy_ssse3_back.
4270
4271 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4272
4273         [BZ #19758]
4274         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4275         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
4276
4277 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
4278
4279         [BZ #19490]
4280         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
4281         (__fentry__): Likewise.
4282
4283 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4284
4285         * gmon/Makefile (noprof): Add $(sysdep_noprof).
4286         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
4287
4288 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4289
4290         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
4291         __mcount_internal directly.
4292         (C_LABEL(__fentry__)): Likewise.
4293         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
4294         directly.
4295
4296 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4297
4298         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4299         (__start_context): Call __setcontext directly.
4300
4301 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
4302
4303         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4304         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4305         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
4306         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4307         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4308         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4309         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
4310         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4311         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4312         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
4313         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4314         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4315         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4316         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4317         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4318         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4319         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
4320         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4321         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4322         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4323         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
4324         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4325         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4326         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4327         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
4328         Remove conditional code.
4329         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4330         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
4331         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4332         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4333         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
4334         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4335         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4336         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4337         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4338         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4339         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4340         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4341
4342 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
4343
4344         * NEWS (2.23): Fix typo in bug 19048 text.
4345
4346 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
4347
4348         [BZ #14259]
4349         * Makeconfig: Rename msgcatdir to localedir.
4350         Rename inst_msgcatdir to inst_localedir.
4351         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
4352         * config.make.in: Add localedir.
4353         * elf/Makefile ($(objpfx)sotruss): Use localedir.
4354         (ldd-rewrite): Likewise.
4355         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
4356         (install-others): Use inst_localedir.
4357         (CPPFLAGS): Use localedir.
4358         * locale/Makefile (locale-CPPFLAGS): Likewise.
4359         * po/Makefile (mo-installed): Use inst_localedir.
4360
4361         [BZ #19575]
4362         * localedata/charmaps/GB18030: Update comments regarding PAU to
4363         non-PUA mappings.
4364
4365 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
4366
4367         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
4368         test for header.
4369         * sysdeps/unix/sysv/linux/configure: Regenerated.
4370         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
4371         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
4372         Remove conditional code.
4373         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
4374
4375         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
4376         Define to 3.2.0.
4377         (arch_minimum_kernel): Likewise.
4378         * sysdeps/unix/sysv/linux/configure: Regenerated.
4379         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
4380         Define to 2.6.32.
4381         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
4382         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
4383         (arch_minimum_kernel): Define to 2.6.32.
4384         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
4385         * README: Document Linux 3.2 requirement.
4386         * manual/install.texi (Linux): Document Linux 3.2 headers
4387         requirement.
4388         * INSTALL: Regenerated.
4389
4390 2016-02-24  Andreas Schwab  <schwab@suse.de>
4391
4392         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
4393         if !NO_LONG_DOUBLE.
4394
4395 2016-02-22  Roland McGrath  <roland@hack.frob.com>
4396
4397         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
4398         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
4399
4400 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
4401
4402         [BZ #19512]
4403         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
4404
4405 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
4406
4407         * posix/tst-dir.c: Include libc-internal.h.
4408
4409 2016-02-20  Florian Weimer  <fweimer@redhat.com>
4410
4411         [BZ #19056]
4412         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
4413         * manual/filesys.texi (Reading/Closing Directory): Mention
4414         deprecaion.
4415         * posix/tst-dir.c (main): Disable deprecation warning in test.
4416
4417 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
4418
4419         [BZ #19679]
4420         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
4421         Renamed to ...
4422         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
4423         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4424         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
4425         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4426         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
4427         * sysdeps/x86_64/dl-trampoline.h
4428         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
4429         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
4430
4431 2016-02-19  Mark Wielaard  <mjw@redhat.com>
4432
4433         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
4434
4435 2016-02-19  Mark Wielaard  <mjw@redhat.com>
4436
4437         * elf/elf.h (R_386_GOT32X): New.
4438         (R_386_NUM): Update.
4439         (R_X86_64_GOTPCRELX: New.
4440         (R_X86_64_REX_GOTPCRELX): New.
4441         (R_X86_64_NUM): Update.
4442
4443 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
4444
4445         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
4446
4447 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
4448
4449         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
4450         assign attr->stackaddr to it, and adjust it down when
4451         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
4452         [_STACK_GROWS_UP]: Delete assert.
4453         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
4454         Implement stack grows up logic.
4455         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
4456         stack grows up logic.
4457
4458 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4459
4460         * NEWS: Update with 2.24 template.
4461
4462 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
4463
4464         [BZ #19678]
4465         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
4466         Ensure +0.0 is returned when taking the next value below the least
4467         positive value.
4468
4469 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4470
4471         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
4472         available.  Do not define NO_THREADS.
4473         * malloc/malloc.c: Do not check NO_THREADS.
4474         * malloc/arena.c: Likewise.
4475
4476 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4477
4478         * malloc/malloc.c (__libc_mallinfo): Update comment.
4479         (struct malloc_par): Remove max_total_mem member, it was always 0.
4480         (int_mallinfo): Store 0 into usmblks (no functional change).
4481         * malloc/hooks.c (struct malloc_state): Document that
4482         max_total_mem is always 0.
4483         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
4484         always 0.
4485         * manual/memory.texi (Statistics of Malloc): Likewise.
4486
4487 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4488
4489         * malloc/malloc.c (sysmalloc): Do not update arena_max.
4490         * malloc/arena.c (arena_max): Remove.
4491         (heap_trim, _int_new_arena): Do not update arena_max.
4492
4493 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4494
4495         * resolv/res_init.c (res_ninit): Update comment.
4496
4497 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4498
4499         [BZ #19505]
4500         * posix/spawn_int.h: Add headers and include guard.
4501         (__spawn_valid_fd): New function.
4502         * posix/spawn_faction_addopen.c
4503         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
4504         * posix/spawn_faction_addclose.c
4505         (posix_spawn_file_actions_addclose): Likewise.
4506         * posix/spawn_faction_adddup2.c
4507         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
4508         second file descriptor.
4509         * posix/spawn_valid_fd.c: New file.
4510         * posix/tst-posix_spawn-fd.c: New file.
4511         * posix/Makefile (routines): Add spawn_valid_fd.
4512         (tests): Add tst-posix_spawn-fd.
4513
4514 2016-02-19  Florian Weimer  <fweimer@redhat.com>
4515
4516         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
4517         (do_test): Limit the number of arenas, so that we can use fewer
4518         outer threads.  Limit timeout to 3 seconds, in preparation for a
4519         larger TIMEOUT value.
4520
4521 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
4522
4523         [BZ #19674]
4524         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
4525         sign in overflowing and underflowing results when overflow or
4526         underflow is detected early.  Include sign in result before rather
4527         than after scaling.
4528
4529         [BZ #19603]
4530         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4531         (__ieee754_remainderl): Adjust sign of integer version of low part
4532         when taking absolute value of high part.
4533         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
4534         * math/libm-test.inc (remainder_test_data): Add another test.
4535         (remquo_test_data): Likewise.
4536
4537 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
4538
4539         [BZ #19602]
4540         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
4541         equal high parts and both low parts zero specially.
4542         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
4543         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
4544         Add test-fmodl-ldbl-128ibm.
4545
4546         [BZ #19595]
4547         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
4548         common logic for all cases of shifting subnormal results.  Do not
4549         insert sign bit in shifted mantissa.  Always pass -1023 as biased
4550         exponent to ldbl_insert_mantissa in subnormal case.
4551
4552         [BZ #19594]
4553         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
4554         on high and low parts then adjust result and use
4555         ldbl_canonicalize_int if needed.
4556
4557         [BZ #19593]
4558         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
4559         on high part and __floor or __ceil on low part then use
4560         ldbl_canonicalize_int if needed.
4561
4562         [BZ #19592]
4563         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
4564         high and low parts then use ldbl_canonicalize_int if needed.
4565
4566         [BZ #17899]
4567         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
4568         New function.
4569         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
4570         on high and low parts then use ldbl_canonicalize_int if needed.
4571
4572 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4573
4574         * configure: Regenerated.
4575
4576         * po/libc.pot: Regenerated.
4577
4578         * po/be.po: Updated translation.
4579         * po/bg.po: Likewise.
4580         * po/ca.po: Likewise.
4581         * po/cs.po: Likewise.
4582         * po/da.po: Likewise.
4583         * po/el.po: Likewise.
4584         * po/eo.po: Likewise.
4585         * po/es.po: Likewise.
4586         * po/fi.po: Likewise.
4587         * po/fr.po: Likewise.
4588         * po/gl.po: Likewise.
4589         * po/hr.po: Likewise.
4590         * po/hu.po: Likewise.
4591         * po/ia.po: Likewise.
4592         * po/id.po: Likewise.
4593         * po/it.po: Likewise.
4594         * po/ja.po: Likewise.
4595         * po/lt.po: Likewise.
4596         * po/nb.po: Likewise.
4597         * po/nl.po: Likewise.
4598         * po/pt_BR.po: Likewise.
4599         * po/rw.po: Likewise.
4600         * po/sk.po: Likewise.
4601         * po/sl.po: Likewise.
4602         * po/sv.po: Likewise.
4603         * po/tr.po: Likewise.
4604         * po/zh_CN.po: Likewise.
4605         * po/zh_TW.po: Likewise.
4606
4607         * version.h (RELEAES): Set to "development".
4608         (VERSION): Set to 2.23.90.
4609
4610         * version.h (RELEASE): Set to "stable".
4611         (VERSION): Set to 2.23.
4612         * include/feature.h (__GLIBC_MINOR__): Set to 23.
4613
4614         * NEWS: Updated fixed bugs.
4615
4616 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
4617             Wilco Dijkstra  <wdijkstr@arm.com>
4618
4619         [BZ #19462]
4620         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
4621         (_STRING_INLINE_unaligned): This.
4622         * include/string.h: Include <string_private.h>.
4623         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
4624         _STRING_INLINE_unaligned.
4625         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
4626         (_STRING_INLINE_unaligned): New.
4627         * sysdeps/aarch64/string_private.h: New file.
4628         * sysdeps/generic/string_private.h: Likewise.
4629         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
4630         * sysdeps/s390/string_private.h: Likewise.
4631         * sysdeps/x86/string_private.h: Likewise.
4632         * sysdeps/m68k/m680x0/m68020/bits/string.h
4633         (_STRING_ARCH_unaligned): Renamed to ...
4634         (_STRING_INLINE_unaligned): This.
4635         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
4636         to ...
4637         (_STRING_INLINE_unaligned): This.
4638         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
4639         to ...
4640         (_STRING_INLINE_unaligned): This.
4641         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
4642         to ...
4643         (_STRING_INLINE_unaligned): This.
4644
4645 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
4646             H.J. Lu  <hongjiu.lu@intel.com>
4647
4648         [BZ #19590]
4649         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
4650         relocation.
4651
4652 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
4653
4654         [BZ #18665]
4655         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
4656         *herrno_p.
4657         (gaih_getanswer): Document functional behviour. Return tryagain
4658         if any result is tryagain.
4659         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
4660         when freed.
4661         * resolv/res_send.c: Add copyright text.
4662         (__libc_res_nsend): Document that MAXPACKET is expected.
4663         (send_vc): Document. Remove buffer reuse.
4664         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
4665         size of the buffer. Add Dprint for truncated UDP buffer.
4666
4667 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
4668
4669         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
4670         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
4671         * INSTALL: Regenerate.
4672
4673 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
4674             Jonathan Wakely  <jwakely@redhat.com>
4675             Carlos O'Donell  <carlos@redhat.com>
4676
4677         [BZ 19439]
4678         * math/Makefile (tests): Add test-math-isinff.
4679         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
4680         * math/bits/mathcalls.h [__USE_MISC]: Use
4681         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
4682         functions not in C++11 and which don't conflict e.g. isinff,
4683         isinfl etc.
4684         * math/test-math-isinff.cc: New file.
4685
4686 2016-02-12  Florian Weimer  <fweimer@redhat.com>
4687
4688         * misc/bug18240.c (do_test): Set RLIMIT_AS.
4689
4690 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4691
4692         [BZ #19529]
4693         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
4694
4695 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4696
4697         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
4698
4699 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
4700
4701         [BZ #19550]
4702         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
4703         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
4704         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
4705         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
4706         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
4707         New syscall entry.
4708         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
4709         New syscall entry.
4710         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
4711         syscall entry.
4712
4713 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4714
4715         [BZ #18240]
4716         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
4717         unsigned int wraparound.
4718
4719 2016-01-27  Florian Weimer  <fweimer@redhat.com>
4720
4721         [BZ #18240]
4722         * misc/bug18240.c: New test.
4723         * misc/Makefile (tests): Add it.
4724
4725 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
4726             Joseph Myers  <joseph@codesourcery.com>
4727
4728         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
4729         load in branch delay slot when less than a word of input left.
4730
4731 2016-01-27  Andreas Schwab  <schwab@suse.de>
4732
4733         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
4734         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
4735         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
4736         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
4737
4738 2016-01-26  David S. Miller  <davem@davemloft.net>
4739
4740         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
4741
4742 2016-01-25  David S. Miller  <davem@davemloft.net>
4743
4744         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
4745         __sqrtl_finite.
4746         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
4747         instead using versioned_symbol.
4748         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
4749         of entries.
4750
4751         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
4752         __sqrtl_finite to GLIBC_2.23
4753
4754 2016-01-25  Ricchard Henderson  <rth@redhat.com>
4755
4756         * sysdeps/alpha/fpu/libm-test-ulps: Update.
4757
4758 2016-01-25  Andreas Schwab  <schwab@suse.de>
4759
4760         [BZ #17514]
4761         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
4762         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
4763         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
4764         * nptl/tst-mutex-errorcheck.c: New file.
4765
4766 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4767
4768         [BZ #18560]
4769         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
4770         (IPCOP_semop): Likewise.
4771         (IPCOP_semget): Likewise.
4772         (IPCOP_semctl): Likewise.
4773         (IPCOP_msgsnd): Likewise.
4774         (IPCOP_msgrcv): Likewise.
4775         (IPCOP_msgget): Likewise.
4776         (IPCOP_msgctl): Likewise.
4777         (IPCOP_shmat): Likewise.
4778         (IPCOP_shmdt): Likewise.
4779         (IPCOP_shmget): Likewise.
4780         (IPCOP_shmctl): Likewise.
4781
4782 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
4783
4784         * string/tst-endian.c: Include <libc-internal.h>.
4785         (do_test): Ignore tautological-compare warnings around
4786         "htobeXX (beXXtoh (i)) != i" and
4787         "htoleXX (leXXtoh (i)) != i" if-statements.
4788
4789 2016-01-24  David S. Miller  <davem@davemloft.net>
4790
4791         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
4792         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
4793         alias.
4794         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
4795         __sqrtl_finite.
4796
4797         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4798
4799 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
4800
4801         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
4802         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
4803         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
4804
4805 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4806
4807         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
4808         (thread_func): Use new function to simplify barrier check.
4809         (do_test): Use new function to simplify checking barrier exit
4810         code, and actually join the child thread.
4811
4812 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4813
4814         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
4815         semicolon.
4816         (__libc_tend): Likewise.
4817         (__libc_tabort): Likewise.
4818
4819 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
4820
4821         * sysdeps/nios2/libm-test-ulps: Update.
4822         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
4823         (__gtsf2): Likewise.
4824         (__unorddf2): Likewise.
4825         (__unordsf2): Likewise.
4826         (__ledf2): Likewise.
4827
4828 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
4829
4830         * nis/nis_table.c (__follow_path): Disable diagnostic for
4831         uninitialized variable that is a false positive for gcc 4.7.
4832         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
4833
4834 2016-01-20  Roland McGrath  <roland@hack.frob.com>
4835
4836         * sysdeps/nacl/lowlevellock-futex.h
4837         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
4838         Always evaluate PRIVATE argument.
4839
4840 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
4841
4842         [BZ #19490]
4843         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
4844         (pthread_cond_broadcast): Use ENTRY/END
4845         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
4846         (pthread_cond_signal): Likewise.
4847         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
4848         Likewise.
4849         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
4850         Likewise.
4851         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
4852         Likewise.
4853
4854 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
4855
4856         * sysdeps/ieee754/dbl-64/s_finite.c
4857         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
4858         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
4859         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
4860         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
4861         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
4862
4863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
4864         (__gtsf2): Add as optional for libc.so.
4865         (__unordsf2): Likewise.
4866         (__signbit): Remove for libc.so.
4867         (__signbitl): Likewise.
4868
4869 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
4870
4871         * iconvdata/bug-iconv11.c (test_ibm93x):
4872         Use %zu printf format specifier for size_t argument.
4873
4874 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
4875
4876         * math/gen-libm-test.pl (parse_ulps): Do not reduce
4877         already-recorded ulps.
4878         * sysdeps/arm/libm-test-ulps: Regenerated.
4879         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
4880         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4881         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
4882
4883 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
4884             Paul Pluzhnikov  <ppluzhnikov@google.com>
4885
4886         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
4887         assembler not supporting AVX-512.
4888
4889 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
4890
4891         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4892
4893 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
4894
4895         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
4896         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4897
4898         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
4899
4900         * sysdeps/arm/libm-test-ulps: Regenerated.
4901
4902 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
4903
4904         [BZ #19451]
4905         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
4906
4907 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
4908
4909         [BZ #19486]
4910         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
4911         * sysdeps/generic/fix-fp-int-convert-overflow.h
4912         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
4913         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
4914         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
4915         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
4916         Likewise.
4917         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
4918         Avoid conversions to long int where inexact exceptions
4919         could be raised.
4920         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
4921         Likewise.
4922         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
4923         Avoid conversions to long long int where inexact exceptions
4924         could be raised.
4925         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
4926         Likewise.
4927
4928 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
4929
4930         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
4931         * configure: Regenerated.
4932
4933 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
4934
4935         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
4936
4937 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
4938
4939         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
4940         outside of comment.
4941
4942 2016-01-15  Torvald Riegel  <triegel@redhat.com>
4943
4944         * nptl/tst-barrier1.c: Add description on first line.
4945         * nptl/tst-barrier2.c: Likewise.
4946         * nptl/tst-barrier3.c: Likewise.
4947         * nptl/tst-barrier4.c: Likewise.
4948         * nptl/tst-barrier5.c: Likewise.
4949
4950 2016-01-15  Torvald Riegel  <triegel@redhat.com>
4951
4952         [BZ #18868]
4953         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
4954
4955 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
4956
4957         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
4958         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
4959         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
4960         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
4961         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
4962         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
4963         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
4964         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
4965         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
4966         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
4967         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
4968
4969 2016-01-15  Torvald Riegel  <triegel@redhat.com>
4970
4971         [BZ #13065]
4972         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
4973         new implementation.
4974         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
4975         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
4976         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
4977         (BARRIER_IN_THRESHOLD): New macro.
4978         * nptl/pthread_barrierattr_setpshared.c
4979         (pthread_barrierattr_setpshared): Clean up.
4980         * nptl/tst-barrier4.c: Correct comment.
4981         * nptl/tst-barrier5.c: New file.
4982         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
4983         (gen-as-const-headers): Remove lowlevelbarrier.sym.
4984         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
4985         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
4986         * nptl/lowlevelbarrier.sym: Remove.
4987         * nptl/DESIGN-barrier.txt: Remove.
4988         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
4989         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
4990         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
4991         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
4992         error.
4993         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
4994         implementation.
4995
4996 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4997
4998         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
4999         (do_child): Mask SIGRTMIN while thr is running.
5000
5001 2016-01-15  Martin Sebor  <msebor@redhat.com>
5002
5003         [BZ #19432]
5004         * iconvdata/Makefile: Add bug-iconv11.
5005         * iconvdata/bug-iconv11.c: New test.
5006         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
5007         * iconvdata/ibm933.c: Same.
5008         * iconvdata/ibm935.c: Same.
5009         * iconvdata/ibm937.c: Same.
5010         * iconvdata/ibm939.c: Same.
5011
5012 2016-01-15  Martin Sebor  <msebor@redhat.com>
5013
5014         [BZ #19443]
5015         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
5016         [DEBUG] (_ufc_set_bits): Declare used.
5017         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
5018         [DEBUG] (print_all): Declare used.
5019         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
5020         operands of the ternary ?: expression to target type.
5021         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
5022         calling the undeclared abort.
5023         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
5024
5025 2016-01-15  Martin Sebor  <msebor@redhat.com>
5026
5027         [BZ #18755]
5028         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
5029         warnings.
5030         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
5031         (__gai_create_helper_thread): Same.
5032         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
5033         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
5034         to suppress -Wmaybe-uninitialized warnings.
5035
5036 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
5037
5038         [BZ #19465]
5039         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
5040         inside if.
5041         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5042         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
5043         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5044
5045 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
5046
5047         [BZ #19466]
5048         * time/tst-mktime2.c (time_t_max): Removed.
5049         (time_t_min): Likewise.
5050         (TYPE_SIGNED): New.
5051         (TYPE_MINIMUM): Likewise.
5052         (TYPE_MAXIMUM): Likewise.
5053         (TIME_T_MIN): Likewise.
5054         (TIME_T_MAX): Likewise.
5055         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
5056         and TIME_T_MIN.
5057         (do_test): Likewise.
5058
5059 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
5060
5061         [BZ #19467]
5062         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
5063         index_Fast_Unaligned_Load flag for Excavator family CPUs.
5064
5065 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
5066
5067         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
5068
5069 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
5070
5071         * benchtests/Makefile (PYTHON): Define.
5072         (bench-func): Use $(PYTHON) to run python scripts.
5073         ($(objpfx)bench-%.c): Likewise.
5074
5075 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
5076
5077         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
5078         leading slash when `file_name' is "/".
5079
5080 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
5081
5082         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
5083         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
5084         Likewise.
5085         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
5086         Likewise.
5087         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
5088         Likewise.
5089         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
5090         enum constant and macro.
5091         (PTRACE_SETSIGMASK): Likewise.
5092         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5093         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
5094         (PTRACE_GETSIGMASK): Likewise.
5095         (PTRACE_SETSIGMASK): Likewise.
5096         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5097         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
5098         Likewise.
5099         (PTRACE_SETSIGMASK): Likewise.
5100         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5101         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
5102         (PTRACE_GETSIGMASK): Likewise.
5103         (PTRACE_SETSIGMASK): Likewise.
5104         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5105         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
5106         Likewise.
5107         (PTRACE_SETSIGMASK): Likewise.
5108         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5109         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
5110         Likewise.
5111         (PTRACE_SETSIGMASK): Likewise.
5112         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5113         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
5114         Likewise.
5115         (PTRACE_SETSIGMASK): Likewise.
5116         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5117
5118 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
5119             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5120
5121         [BZ #19439]
5122         * math/bits/mathcalls.h
5123         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
5124         prototype.
5125         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
5126
5127 2016-01-11  Andreas Schwab  <schwab@suse.de>
5128
5129         [BZ #19253]
5130         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
5131         cache when TZDEFRULES was used.
5132         * time/tst-tzname.c: New file.
5133         * time/Makefile (test): Add tst-tzname.
5134         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
5135         * timezone/Makefile (test-zones): Add $(posixrules-file).
5136         ($(testdata)/$(posixrules-file)): New rule.
5137
5138 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5139
5140         Fix doc quoting problems with Texinfo 5
5141         Without this change, in the info file output, Texinfo 5 quotes code
5142         in text with undirected single quotes 'like this' and generates
5143         code examples that with many PDF readers cannot be cut out of PDFs
5144         and pasted into code.
5145         * manual/libc.texinfo: Configure the libc manual like the GNU
5146         Emacs manual, by using @documentencoding and setting
5147         txicodequoteundirected and txicodequotebacktick.  This way,
5148         Texinfo 5 quotes code in text with directed single quotes ‘like
5149         this’ and produces examples that can be cut out of PDFs.  This
5150         change causes Texinfo 5 to generate info files that contain UTF-8
5151         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
5152         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
5153
5154 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5155
5156         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
5157         __libc_tabort, __libc_tend): New wrappers that enforce compiler
5158         barriers to their respective compiler built-ins.
5159         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
5160         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
5161         * sysdeps/powerpc/sysdep.h: Likewise.
5162         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
5163         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
5164         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
5165
5166 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
5167
5168         * scripts/config.guess: Revert previous shebang change.
5169         * scripts/config.sub: Likewise.
5170         * scripts/mkinstalldirs: Likewise.
5171
5172 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5173
5174         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
5175         PPC_FEATURE2_HAS_IEEE128.
5176         * sysdeps/powerpc/dl-procinfo.c:
5177         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
5178
5179 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
5180
5181         [BZ #19415]
5182         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
5183         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
5184         (_dl_lookup_address): Rewrite using function resolver trampoline.
5185         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
5186         two bits in address.
5187
5188 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5189
5190         * longlong.h: Change !__SHMEDIA__ to
5191         (!defined (__SHMEDIA__) || !__SHMEDIA__).
5192         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
5193
5194 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
5195             Joseph Myers  <joseph@codesourcery.com>
5196             Mark Shinwell  <shinwell@codesourcery.com>
5197             Andrew Stubbs  <ams@codesourcery.com>
5198             Rich Felker <dalias@libc.org>
5199
5200         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
5201
5202 2016-01-07  Richard Henderson  <rth@redhat.com>
5203
5204         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
5205
5206 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5207
5208         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
5209         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
5210         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
5211         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
5212         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
5213
5214 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
5215             Joseph Myers  <joseph@codesourcery.com>
5216
5217         * timezone/private.h: Update from tzcode 2015g.
5218         * timezone/tzfile.h: Likewise.
5219         * timezone/tzselect.ksh: Likewise.
5220         * timezone/zdump.c: Likewise.
5221         * timezone/zic.c: Likewise.
5222         * timezone/ialloc.c: Remove file.
5223         * timezone/scheck.c: Likewise.
5224         * timezone/Makefile (extra-objs): Remove variable.
5225         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
5226         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
5227         -Wno-maybe-uninitialized.
5228         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
5229         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
5230         (CFLAGS-ialloc.c): Remove variable.
5231         (CFLAGS-scheck.c): Likewise.
5232         * timezone/README: Update list of files from tzcode.
5233
5234 2016-01-07  Khem Raj  <raj.khem@gmail.com>
5235
5236         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
5237         instead of __fxprintf when _LIBC is undefined.
5238
5239 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
5240
5241         * catgets/test-gencat.sh: Remove space after shebang.
5242         * conform/GlibcConform.pm: Likewise.
5243         * conform/check-header-lists.sh: Likewise.
5244         * conform/conformtest.pl: Likewise.
5245         * conform/linknamespace.pl: Likewise.
5246         * conform/list-header-symbols.pl: Likewise.
5247         * debug/catchsegv.sh: Likewise.
5248         * elf/genrtldtbl.awk: Likewise.
5249         * elf/tst-pathopt.sh: Likewise.
5250         * elf/tst-rtld-load-self.sh: Likewise.
5251         * grp/tst_fgetgrent.sh: Likewise.
5252         * iconvdata/gen-8bit-gap-1.sh: Likewise.
5253         * iconvdata/gen-8bit-gap.sh: Likewise.
5254         * iconvdata/gen-8bit.sh: Likewise.
5255         * iconvdata/run-iconv-test.sh: Likewise.
5256         * intl/tst-gettext.sh: Likewise.
5257         * intl/tst-gettext2.sh: Likewise.
5258         * intl/tst-gettext4.sh: Likewise.
5259         * intl/tst-gettext6.sh: Likewise.
5260         * intl/tst-translit.sh: Likewise.
5261         * io/ftwtest-sh: Likewise.
5262         * libio/test-freopen.sh: Likewise.
5263         * locale/gen-translit.pl: Likewise.
5264         * malloc/tst-mtrace.sh: Likewise.
5265         * manual/check-safety.sh: Likewise.
5266         * manual/libc-texinfo.sh: Likewise.
5267         * manual/tsort.awk: Likewise.
5268         * manual/xtract-typefun.awk: Likewise.
5269         * nptl/tst-cancel-wrappers.sh: Likewise.
5270         * nptl/tst-tls6.sh: Likewise.
5271         * posix/globtest.sh: Likewise.
5272         * posix/tst-getconf.sh: Likewise.
5273         * posix/wordexp-tst.sh: Likewise.
5274         * scripts/check-c++-types.sh: Likewise.
5275         * scripts/check-local-headers.sh: Likewise.
5276         * scripts/config.guess: Likewise.
5277         * scripts/config.sub: Likewise.
5278         * scripts/cpp: Likewise.
5279         * scripts/cross-test-ssh.sh: Likewise.
5280         * scripts/documented.sh: Likewise.
5281         * scripts/evaluate-test.sh: Likewise.
5282         * scripts/gen-libc-abis: Likewise.
5283         * scripts/gen-sorted.awk: Likewise.
5284         * scripts/list-fixed-bugs.py: Likewise.
5285         * scripts/merge-test-results.sh: Likewise.
5286         * scripts/mkinstalldirs: Likewise.
5287         * scripts/rellns-sh: Likewise.
5288         * scripts/test-installation.pl: Likewise.
5289         * scripts/update-copyrights: Likewise.
5290         * stdio-common/tst-printf.sh: Likewise.
5291         * stdio-common/tst-unbputc.sh: Likewise.
5292         * stdlib/tst-fmtmsg.sh: Likewise.
5293         * stdlib/tst-setcontext3.sh: Likewise.
5294         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
5295         * sysdeps/unix/make-syscalls.sh: Likewise.
5296
5297 2016-01-06  John David Anglin  <dave.anglin@bell.net>
5298
5299         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
5300         asm stw with atomic_exchange_rel.  Add explanatory comment.
5301         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
5302         Likewise.
5303
5304 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5305
5306         [BZ #19122]
5307         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
5308         * sysdeps/generic/dl-unistd.h: New file.
5309         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
5310
5311 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5312
5313          [BZ #19122]
5314          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
5315          * sysdeps/generic/dl-mman.h: New file.
5316          * sysdeps/mach/hurd/dl-mman.h: Likewise.
5317
5318 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
5319
5320         * manual/texinfo.tex: Update to version 2016-01-04.21 with
5321         trailing whitespace removed.
5322         * scripts/config.guess: Update to version 2016-01-01.
5323         * scripts/config.sub: Update to version 2016-01-01.
5324         * scripts/move-if-change: Update from gnulib.
5325
5326 2016-01-04  Anton Blanchard  <anton@samba.org>
5327
5328         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
5329         for array indices.
5330         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
5331
5332 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
5333
5334         * NEWS: Update copyright dates.
5335         * catgets/gencat.c (print_version): Likewise.
5336         * csu/version.c (banner): Likewise.
5337         * debug/catchsegv.sh: Likewise.
5338         * debug/pcprofiledump.c (print_version): Likewise.
5339         * debug/xtrace.sh (do_version): Likewise.
5340         * elf/ldconfig.c (print_version): Likewise.
5341         * elf/ldd.bash.in: Likewise.
5342         * elf/pldd.c (print_version): Likewise.
5343         * elf/sotruss.sh: Likewise.
5344         * elf/sprof.c (print_version): Likewise.
5345         * iconv/iconv_prog.c (print_version): Likewise.
5346         * iconv/iconvconfig.c (print_version): Likewise.
5347         * locale/programs/locale.c (print_version): Likewise.
5348         * locale/programs/localedef.c (print_version): Likewise.
5349         * login/programs/pt_chown.c (print_version): Likewise.
5350         * malloc/memusage.sh (do_version): Likewise.
5351         * malloc/memusagestat.c (print_version): Likewise.
5352         * malloc/mtrace.pl: Likewise.
5353         * manual/libc.texinfo: Likewise.
5354         * nptl/version.c (banner): Likewise.
5355         * nscd/nscd.c (print_version): Likewise.
5356         * nss/getent.c (print_version): Likewise.
5357         * nss/makedb.c (print_version): Likewise.
5358         * posix/getconf.c (main): Likewise.
5359         * scripts/test-installation.pl: Likewise.
5360         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
5361
5362         * All files with FSF copyright notices: Update copyright dates
5363         using scripts/update-copyrights.
5364         * intl/plural.c: Regenerated.
5365         * locale/programs/charmap-kw.h: Likewise.
5366         * locale/programs/locfile-kw.h: Likewise.
5367
5368 2016-01-02  Helge Deller  <deller@gmx.de>
5369
5370         [BZ #19285]
5371         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
5372         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
5373         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
5374         (MADV_xxK_PAGES): Remove.
5375
5376 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
5377
5378         [BZ #15421]
5379         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
5380         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
5381         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
5382         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
5383
5384 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
5385
5386         [BZ #19408]
5387         * sysdeps/unix/sysv/linux/personality.c: New file.
5388         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
5389         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
5390         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
5391         (sysdep_routines): Add personality.
5392         (tests): Add tst-personality.
5393         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
5394         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
5395         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
5396         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
5397         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
5398         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
5399         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
5400         Likewise.
5401         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
5402         Likewise.
5403         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
5404         Likewise.
5405         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
5406         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
5407         Likewise.
5408
5409 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
5410
5411         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
5412         (PATH_ARM_SYSTYPE): Remove.
5413         (PATH_CPUINFO): Likewise.
5414         (IO_BASE_FOOTBRIDGE): Likewise.
5415         (IO_SHIFT_FOOTBRIDGE): Likewise.
5416         (struct platform): Likewise.
5417         (init_iosys): Remove compatibility code for 2.4 kernels.
5418         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
5419
5420 2015-12-29  Florian Weimer  <fweimer@redhat.com>
5421
5422         * malloc/tst-malloc-thread-fail.c: New file.
5423         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
5424         (tst-malloc-thread-fail): Link against libpthread.
5425
5426 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
5427
5428         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
5429         (get_parser): New function.
5430         (main): New function.
5431
5432 2015-12-29  Rob Wu  <rob@robwu.nl>
5433
5434         [BZ #19369]
5435         * resolv/res_init.c (__res_vinit): Reset defdname before use.
5436
5437 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
5438
5439         [BZ #19270]
5440         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
5441
5442 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
5443
5444         [BZ #15421]
5445         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
5446
5447 2015-12-23  Torvald Riegel  <triegel@redhat.com>
5448
5449         [BZ #13690]
5450         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
5451         after releasing it.
5452         (__lll_robust_unlock): Likewise.
5453         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5454         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
5455         (lll_robust_unlock): Likewise.
5456         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
5457         Prevent warnings in callers.
5458
5459 2015-12-23  Florian Weimer  <fweimer@redhat.com>
5460
5461         * malloc/arena.c (list_lock): Update comment.
5462
5463 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5464
5465         * sysdeps/powerpc/hwcapinfo.c: Export symbol
5466         __parse_hwcap_and_convert_at_platform to libc.a.
5467
5468 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5469
5470         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
5471         platform and feature support for POWER9.
5472         * sysdeps/powerpc/dl-procinfo.h: Likewise.
5473         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
5474         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
5475         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
5476         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
5477         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
5478         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
5479         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
5480
5481 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5482
5483         Harmonize generic stdio-lock support with nptl
5484
5485         This fixes build when _IO_funlockfile is a macro, fixes build where
5486         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
5487         stack unwind.
5488
5489         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
5490         _IO_release_lock ): Use cleanup attribute on new
5491         _IO_acquire_lock_file variable instead of assuming that
5492         _IO_release_lock will be called.
5493         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
5494         _IO_acquire_lock_needs_exceptions_enabled.
5495         (_IO_acquire_lock_clear_flags2): New macro.
5496
5497 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5498
5499         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5500
5501 2015-12-21  Florian Weimer  <fweimer@redhat.com>
5502
5503         [BZ #19182]
5504         * malloc/arena.c (list_lock): Document lock ordering requirements.
5505         (free_list_lock): New lock.
5506         (ptmalloc_lock_all): Comment on free_list_lock.
5507         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
5508         (detach_arena): Update comment.  free_list_lock is now needed.
5509         (_int_new_arena): Use free_list_lock around detach_arena call.
5510         Acquire arena lock after list_lock.  Add comment, including FIXME
5511         about incorrect synchronization.
5512         (get_free_list): Switch to free_list_lock.
5513         (reused_arena): Acquire free_list_lock around detach_arena call
5514         and attached threads counter update.  Add two FIXMEs about
5515         incorrect synchronization.
5516         (arena_thread_freeres): Switch to free_list_lock.
5517         * malloc/malloc.c (struct malloc_state): Update comments to
5518         mention free_list_lock.
5519
5520 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
5521
5522         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
5523         Remove functions.
5524         (sloww, sloww1): Accept argument to offset quadrant.
5525         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
5526         quadrant.
5527         (__sin, __cos): Consolidate common code into new functions.
5528         (reduce_sincos_1, do_sincos_1): New functions.
5529         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
5530
5531         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
5532         code to new functions.
5533         (reduce_sincos_2, do_sincos_2): New functions.
5534         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
5535
5536         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
5537         common code for sincos.
5538         (__cos) [!IN_SINCOS]: Likewise.
5539         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
5540         New function.
5541         (__sincos): Use it.
5542
5543 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
5544
5545         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
5546         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
5547         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
5548
5549 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5550
5551         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
5552         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
5553         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5554         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
5555         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
5556         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
5557         index_Prefer_No_VZEROUPPER): New feature.
5558         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
5559         Prefer_No_VZEROUPPER for Knights Landing.
5560
5561 015-12-18  Torvald Riegel  <triegel@redhat.com>
5562
5563         * math/atest-exp2.c (mp_exp_m1): Remove.
5564
5565 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5566
5567         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
5568         syscalls.
5569         (__SYSCALL0): New macro.
5570         (__SYSCALL1): Likewise.
5571         (__SYSCALL2): Likewise.
5572         (__SYSCALL3): Likewise.
5573         (__SYSCALL4): Likewise.
5574         (__SYSCALL5): Likewise.
5575         (__SYSCALL6): Likewise.
5576         (__SYSCALL_CONCAT_X): Likewise.
5577         (__SYSCALL_CONCAT): Likewise.
5578         (__SYSCALL_DIST): Likewise.
5579         (__SYSCALL_CALL): Likewise.
5580
5581 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
5582
5583         [BZ #19363]
5584         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
5585
5586 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5587
5588         [BZ #19375]
5589         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
5590         negative subnormals.
5591
5592 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
5593
5594         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
5595         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
5596         (INTERNAL_SYSCALL_NCS): Use it.
5597         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5598
5599 2015-12-16  Florian Weimer  <fweimer@redhat.com>
5600
5601         [BZ #19243]
5602         * malloc/arena.c (get_free_list): Remove assert and adjust
5603         reference count handling.  Add comment about reused_arena
5604         interaction.
5605         (reused_arena): Add comments abount get_free_list interaction.
5606         * malloc/tst-malloc-thread-exit.c: New file.
5607         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
5608         (tst-malloc-thread-exit): Link against libpthread.
5609
5610 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
5611
5612         [BZ #19367]
5613         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
5614         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
5615         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
5616         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
5617         (index_Prefer_MAP_32BIT_EXEC): Likewise.
5618
5619 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
5620
5621         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
5622         Silvermont optimizations for Knights Landing.
5623
5624 2015-12-15  Andreas Schwab  <schwab@suse.de>
5625
5626         [BZ #17197]
5627         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
5628         immediately after emitting SI.
5629         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
5630         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
5631         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
5632         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
5633         * iconvdata/bug-iconv10.c: New file.
5634         * iconvdata/Makefile (tests): Add bug-iconv10.
5635         ($(objpfx)bug-iconv10.out): New rule.
5636
5637 2015-12-15  Florian Weimer  <fweimer@redhat.com>
5638
5639         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
5640         aliasing violation.
5641
5642 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
5643
5644         [BZ #18472]
5645         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
5646         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
5647         conditionals for them.
5648         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
5649         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
5650         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
5651         sys/kdaemon.h.
5652         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
5653         compat-only syscall, obsoleted in glibc 2.23.
5654         (create_module): Likewise.
5655         (get_kernel_syms): Likewise.
5656         (query_module): Likewise.
5657         (uselib): Likewise.
5658         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
5659
5660 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
5661
5662         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
5663         <linux/version.h>.
5664         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
5665         conditional code.
5666         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
5667         and ioshift_name initialization.
5668
5669 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5670
5671         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
5672         Fix indentation.
5673
5674 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5675
5676         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
5677
5678 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
5679
5680         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
5681
5682 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
5683             Jakub Wilk  <jwilk@debian.org>
5684
5685         [BZ #19347]
5686         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
5687         to change the group of the device to the tty group.
5688
5689 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
5690
5691         Split large string section; add truncation advice
5692         * manual/examples/strncat.c: Remove.
5693         This example was misleading, as the code would have undefined
5694         behavior if "hello" was longer than SIZE.  Anyway, the manual
5695         shouldn't encourage strncpy+strncat for this sort of thing.
5696         * manual/string.texi (Copying Strings and Arrays): Split into
5697         three sections Copying Strings and Arrays, Concatenating Strings,
5698         and Truncating Strings, as this section was way too long.  All
5699         cross-referenced changed.  Add advice about string-truncation
5700         functions.  Remove misleading strncat example.
5701
5702 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
5703
5704         * manual/nss.texi (NSS Modules Interface): Document
5705         NSS_STATUS_NOTFOUND and SUCCESS.
5706
5707 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
5708
5709         [BZ 18568]
5710         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
5711         201505L, for Unicode 8.
5712
5713 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
5714
5715         * locale/C-translit.h: Regenerate.
5716
5717 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
5718
5719         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
5720         and U+0153.
5721
5722 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
5723
5724         [BZ #19351]
5725         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
5726         expanding log(1+z), compare z rather than its square with epsilon
5727         to determine when to avoid evaluating the expansion.
5728
5729         [BZ #19350]
5730         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
5731         Increase overflow threshold.
5732
5733         [BZ #19349]
5734         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
5735         when small.
5736
5737         * sysdeps/unix/sysv/linux/i386/kernel-features.h
5738         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
5739         New macro.
5740         [__LINUX_KERNEL_VERSION >= 0x040300]
5741         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5742         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
5743         Likewise.
5744         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
5745         Likewise.
5746         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
5747         Likewise.
5748         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
5749         Likewise.
5750         [__LINUX_KERNEL_VERSION >= 0x040300]
5751         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
5752         [__LINUX_KERNEL_VERSION >= 0x040300]
5753         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5754         [__LINUX_KERNEL_VERSION >= 0x040300]
5755         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5756         [__LINUX_KERNEL_VERSION >= 0x040300]
5757         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5758         [__LINUX_KERNEL_VERSION >= 0x040300]
5759         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5760         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
5761         Likewise.
5762         [__LINUX_KERNEL_VERSION >= 0x040300]
5763         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
5764         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5765         Likewise.
5766         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
5767         Likewise.
5768         [__LINUX_KERNEL_VERSION >= 0x040300]
5769         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
5770         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5771         Likewise.
5772         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
5773         Likewise.
5774         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5775         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
5776         Likewise.
5777         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
5778         Likewise.
5779         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
5780         Likewise.
5781         [__LINUX_KERNEL_VERSION >= 0x040300]
5782         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5783         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
5784         Likewise.
5785         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
5786         Likewise.
5787         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
5788         Likewise.
5789         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
5790         Likewise.
5791         [__LINUX_KERNEL_VERSION >= 0x040300]
5792         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
5793         [__LINUX_KERNEL_VERSION >= 0x040300]
5794         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5795         [__LINUX_KERNEL_VERSION >= 0x040300]
5796         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5797         [__LINUX_KERNEL_VERSION >= 0x040300]
5798         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5799         [__LINUX_KERNEL_VERSION >= 0x040300]
5800         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5801         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
5802         Likewise.
5803         [__LINUX_KERNEL_VERSION >= 0x040300]
5804         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
5805         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
5806         Likewise.
5807         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
5808         Likewise.
5809         [__LINUX_KERNEL_VERSION >= 0x040300]
5810         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
5811         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
5812         Likewise.
5813         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
5814         Likewise.
5815         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5816         (__ASSUME_SOCKET_SYSCALL): Likewise.
5817         (__ASSUME_BIND_SYSCALL): Likewise.
5818         (__ASSUME_CONNECT_SYSCALL): Likewise.
5819         (__ASSUME_LISTEN_SYSCALL): Likewise.
5820         (__ASSUME_ACCEPT_SYSCALL): Likewise.
5821         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5822         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5823         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5824         (__ASSUME_SEND_SYSCALL): Likewise.
5825         (__ASSUME_SENDTO_SYSCALL): Likewise.
5826         (__ASSUME_RECV_SYSCALL): Likewise.
5827         (__ASSUME_RECVFROM_SYSCALL): Likewise.
5828         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
5829         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5830         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5831         (__ASSUME_SENDMSG_SYSCALL): Likewise.
5832         (__ASSUME_RECVMSG_SYSCALL): Likewise.
5833         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5834         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
5835         Likewise.
5836         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
5837         Likewise.
5838         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
5839         Likewise.
5840         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
5841         Likewise.
5842         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
5843         Likewise.
5844         [__LINUX_KERNEL_VERSION >= 0x020625]
5845         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
5846         [__LINUX_KERNEL_VERSION >= 0x020625]
5847         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
5848         [__LINUX_KERNEL_VERSION >= 0x020625]
5849         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
5850         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
5851         Likewise.
5852         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
5853         Likewise.
5854         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
5855         Likewise.
5856         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
5857         Likewise.
5858         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
5859         Likewise.
5860         [__LINUX_KERNEL_VERSION >= 0x020625]
5861         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
5862         [__LINUX_KERNEL_VERSION >= 0x020625]
5863         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5864         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
5865         Likewise.
5866         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
5867         Likewise.
5868
5869 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
5870
5871         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
5872         record the current if the current ABI and CPU support the FP64
5873         extension.
5874         (has-modd-spreg): Define to record the current if the current ABI and
5875         CPU support 32-bit floating point values in odd FPU registers.
5876         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
5877         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
5878         $(has-modd-spreg) equals yes.
5879         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
5880         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
5881         $(has-modd-spreg) equal yes.
5882
5883 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
5884
5885         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
5886         basename.
5887
5888 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
5889
5890         * benchtests/Makefile (bench-math): Move ffs and ffsll...
5891         (bench-string): ... here.
5892         (bench): Add bench-string.
5893         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
5894         to *-benchset to reflect what they are.
5895         (benchset): Adjust.
5896
5897         * benchtests/sincos-inputs: Add inputs from sin-inputs and
5898         cos-inputs.
5899
5900 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
5901
5902         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
5903         __attribute__ ((__simd__)) for vector math function declarations.
5904
5905 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
5906
5907         Fix typo in strncat, wcsncat manual entries
5908         * manual/string.texi (Copying and Concatenation): Fix typos in
5909         sample implementations of strncat and wcsncat, by having them use
5910         the old value of the destination length, not the new one.
5911
5912 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
5913
5914         [BZ #16961]
5915         [BZ #16962]
5916         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
5917         string on the stack for strtod.
5918         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
5919         a string on the stack for strtof.
5920         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
5921         constructing a string on the stack for strtold.
5922         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
5923         __strtold_nan to GLIBC_PRIVATE.
5924         * math/test-nan-overflow.c: New file.
5925         * math/test-nan-payload.c: Likewise.
5926         * math/Makefile (tests): Add test-nan-overflow and
5927         test-nan-payload.
5928
5929 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
5930
5931         Consistency about byte vs character in string.texi
5932         * manual/string.texi (String and Array Utilities):
5933         Distinguish more carefully among bytes, multibyte characters,
5934         and wide characters.  Use "byte" when talking about C 'char',
5935         to distinguish it more clearly from multibyte characters.
5936         Say "wide character" or "multibyte character" instead of
5937         "character", when a wide or multibyte character is intended.
5938         Similarly for "multibyte string" versus "string".
5939         Define these terms more carefully.
5940
5941 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
5942
5943         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
5944         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
5945         Likewise.
5946         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
5947         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
5948         * sysdeps/sh/math_private.h: New file.
5949         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
5950         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
5951         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
5952         long double function name.
5953         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
5954         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
5955         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
5956         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
5957         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
5958         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
5959         Remove __finitel, __isinfl, and __isnanl.
5960         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
5961         Likewise.
5962         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
5963         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
5964         Remove __finitel.
5965         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
5966         Likewise.
5967         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
5968
5969 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
5970
5971         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
5972         installed libmvec_nonshared.a.
5973
5974 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5975
5976         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
5977         (sysdep_routines): Likewise.
5978         (sysdep-rtld-routines): Likewise.
5979         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
5980         [$(subdir) = nptl](tests-static): test-get_hwcap-static
5981         * sysdeps/powerpc/Versions: Added new
5982         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
5983         * sysdeps/powerpc/hwcapinfo.c: New file.
5984         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
5985         and parse hwcap, hwcap2 and platform number information.
5986         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
5987         to store HWCAP+HWCAP2 and platform number.
5988         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
5989         for HWCAP+HWCAP2 and platform number in the TCB.
5990         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
5991         the HWCAP, HWCAP2 and platform number in the TCB.
5992         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
5993         (TLS_INIT_TP): Included calls to add the hwcap and
5994         at_platform values in the TCB in TP initialization.
5995         (TLS_DEFINE_INIT_TP): Likewise.
5996         (THREAD_GET_HWCAP): New macro.
5997         (THREAD_SET_HWCAP): Likewise.
5998         (THREAD_GET_AT_PLATFORM): Likewise.
5999         (THREAD_SET_AT_PLATFORM): Likewise.
6000         * sysdeps/powerpc/powerpc32/dl-machine.h:
6001         (dl_platform_init): New function that calls
6002         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
6003         powerpc32.
6004         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
6005         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
6006         this functionality, static linking case.
6007         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
6008         linking case.
6009         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
6010         __parse_hwcap_and_convert_at_platform for the static linking case.
6011         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
6012         Included the new __parse_hwcap_and_convert_at_platform symbol in the
6013         ABI list for GLIBC 2.23.
6014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
6015         Likewise.
6016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
6017         Likewise.
6018
6019 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
6020
6021         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
6022         * configure: Regenerate.
6023         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
6024         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
6025
6026 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
6027
6028         * iconvdata/ibm930.c: Add comment explaining encoding uses.
6029         * iconvdata/ibm933.c: Likewise.
6030         * iconvdata/ibm935.c: Likewise.
6031         * iconvdata/ibm937.c: Likewise.
6032         * iconvdata/ibm939.c: Likewise.
6033
6034 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6035
6036         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
6037         pthread_join.
6038         * nptl/tst-cancel21.c (tf): Likewise.
6039
6040 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
6041
6042         [BZ #19313]
6043         * bits/typesizes.h (__CPU_MASK_TYPE): New.
6044         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6045         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6046         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
6047         Likewise.
6048         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
6049         Likewise.
6050         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
6051         Likewise.
6052         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
6053         Likewise.
6054         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
6055         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
6056         unsigned long int with __CPU_MASK_TYPE.
6057
6058 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6059
6060         * sysdeps/aarch64/libm-test-ulps: Regenerated.
6061
6062 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
6063
6064         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
6065         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
6066         t512.x.
6067         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
6068
6069 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
6070
6071         [BZ #19214]
6072         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
6073         argument to return extended model.  Update family and model
6074         with extended family and model when family == 0x0f.
6075         (init_cpu_features): Updated.
6076
6077 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6078
6079         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
6080         signed off_t, so 32bit bigger than 2GiB values are fine actually.
6081
6082         * sysdeps/mach/hurd/mmap64.c: New file.
6083
6084 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
6085
6086         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
6087         rights for its main user thread in NEWTASK.
6088
6089 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
6090
6091         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
6092         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
6093
6094 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
6095
6096         [BZ #14259]
6097         * Makeconfig: Rename localedir to complocaledir.
6098         Rename inst_localedir to inst_complocaledir.
6099         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
6100         * config.make.in: Use complocaledir and libc_cv_complocaledir.
6101         * configure.ac: Use libc_cv_complocaledir.
6102         * configure: Regenerate.
6103         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
6104         -DCOMPLOCALEDIR.
6105         * locale/findlocale.c: Use COMPLOCALEDIR.
6106         * locale/loadarchive.c: Likewise.
6107         * locale/programs/locale.c: Likewise.
6108         * locale/programs/localedef.c: Likewise.
6109         * locale/programs/locarchive.c: Likewise.
6110         * localedata/Makefile: Use inst_complocaledir.
6111         * sysdeps/gnu/configure: Regenerate.
6112         * sysdeps/hppa/configure: Regenerate.
6113         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
6114         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6115         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
6116         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
6117         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
6118         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
6119         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
6120
6121 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
6122
6123         [BZ #19058]
6124         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
6125         AS_NEEDED.
6126         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
6127         workaround.
6128         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
6129         libmvec-static-only-routines): Added new file.
6130         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
6131
6132 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6133
6134         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
6135         of interrupted RPC instead of restoring it.
6136
6137         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
6138         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
6139         libc_hidden_def.
6140         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
6141         into initialized data instead of common. Define rtld_hidden_data_def.
6142         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
6143         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
6144         libc_hidden_def.
6145         (if_freenameindex): Add libc_hidden_weak.
6146         (if_nameindex): Add libc_hidden_weak.
6147         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
6148         __open64.
6149         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
6150         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
6151         * sysdeps/mach/nanosleep.c: Include <time.h>
6152         (__nanosleep): Rename to __libc_nanosleep.
6153         (__nanosleep): Add weak_alias.
6154         (nanosleep): Update alias.
6155
6156 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
6157
6158         * stdlib/strtod_nan.c: New file.
6159         * stdlib/strtod_nan_double.h: Likewise.
6160         * stdlib/strtod_nan_float.h: Likewise.
6161         * stdlib/strtod_nan_main.c: Likewise.
6162         * stdlib/strtod_nan_narrow.h: Likewise.
6163         * stdlib/strtod_nan_wide.h: Likewise.
6164         * stdlib/strtof_nan.c: Likewise.
6165         * stdlib/strtold_nan.c: Likewise.
6166         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
6167         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
6168         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
6169         * wcsmbs/wcstod_nan.c: Likewise.
6170         * wcsmbs/wcstof_nan.c: Likewise.
6171         * wcsmbs/wcstold_nan.c: Likewise.
6172         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
6173         strtold_nan.
6174         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
6175         wcstof_nan.
6176         * include/stdlib.h (__strtof_nan): Declare and use
6177         libc_hidden_proto.
6178         (__strtod_nan): Likewise.
6179         (__strtold_nan): Likewise.
6180         (__wcstof_nan): Likewise.
6181         (__wcstod_nan): Likewise.
6182         (__wcstold_nan): Likewise.
6183         * include/wchar.h (____wcstoull_l_internal): Declare.
6184         * stdlib/strtod_l.c: Do not include <ieee754.h>.
6185         (____strtoull_l_internal): Remove declaration.
6186         (STRTOF_NAN): Define macro.
6187         (SET_MANTISSA): Remove macro.
6188         (STRTOULL): Likewise.
6189         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
6190         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
6191         (STRTOF_NAN): Define macro.
6192         (SET_MANTISSA): Remove macro.
6193         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
6194         (SET_MANTISSA): Remove macro.
6195         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
6196         macro.
6197         (SET_MANTISSA): Remove macro.
6198         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
6199         macro.
6200         (SET_MANTISSA): Remove macro.
6201         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
6202         (SET_MANTISSA): Remove macro.
6203         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
6204         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
6205         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
6206
6207         [BZ #19266]
6208         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
6209         upper case and lower case letters inside NAN(), not using TOLOWER.
6210         * stdlib/tst-strtod-nan-locale-main.c: New file.
6211         * stdlib/tst-strtod-nan-locale.c: Likewise.
6212         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
6213         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
6214         Depend on $(gen-locales).
6215         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
6216         * wcsmbs/tst-wcstod-nan-locale.c: New file.
6217         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
6218         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
6219         Depend on $(gen-locales).
6220         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
6221
6222 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
6223
6224         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
6225
6226         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6227         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
6228         __finitel, __isinfl, and __isnanl.
6229         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6230         Likewise.
6231         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6232         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
6233         __finitel.
6234         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6235         Likewise.
6236         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6237
6238 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
6239
6240         * malloc/memusage.c (me): Remove redundant getenv call.
6241
6242 2015-10-24  Florian Weimer  <fweimer@redhat.com>
6243
6244         [BZ #19143]
6245         [BZ #19164]
6246         * nptl/check-cpuset.h: Remove.
6247         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
6248         Remove CPU set size check.
6249         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
6250         Likewise.
6251         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
6252         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
6253         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
6254         (__pthread_setaffinity_new): Remove CPU set size check.
6255         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6256         (__kernel_cpumask_size): Remove.
6257         (__sched_setaffinity_new): Remove CPU set size check.
6258         * manual/threads.texi (Default Thread Attributes): Remove stale
6259         reference to check_cpuset_attr, determine_cpumask_size in comment.
6260         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
6261         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
6262         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
6263         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
6264         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
6265         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
6266         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
6267         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
6268         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
6269         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
6270         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
6271         skeleton test file.
6272         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
6273         tst-affinity-pid.
6274
6275 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6276
6277         * scripts/update-abilist.sh: New file.
6278         * Makefile (+subdir_targets): Add subdir_update-all-abi.
6279         * Makerules (update-all-abi-%, update-all-abi)
6280         (subdir_update-all-abi): New targets.
6281         * elf/Makefile (update-all-abi): New target.
6282
6283 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6284
6285         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
6286         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
6287         (__libc_lock_define_initialized): Use it.
6288         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
6289         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
6290         * malloc/malloc.c (main_arena): Likewise.
6291         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6292         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6293
6294 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
6295
6296         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
6297         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
6298         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6299         (PTRACE_O_MASK): Update value.
6300         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
6301         New value in enum __ptrace_setoptions.
6302         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6303         (PTRACE_O_MASK): Update value.
6304         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
6305         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6306         (PTRACE_O_MASK): Update value.
6307         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
6308         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6309         (PTRACE_O_MASK): Update value.
6310         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
6311         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6312         (PTRACE_O_MASK): Update value.
6313         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
6314         New value in enum __ptrace_setoptions.
6315         (PTRACE_O_MASK): Update value.
6316         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
6317         New value in enum __ptrace_setoptions.
6318         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6319         (PTRACE_O_MASK): Update value.
6320
6321         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
6322         New macro.
6323         (PACKET_AUXDATA): Likewise.
6324         (PACKET_ORIGDEV): Likewise.
6325         (PACKET_VERSION): Likewise.
6326         (PACKET_HDRLEN): Likewise.
6327         (PACKET_RESERVE): Likewise.
6328         (PACKET_TX_RING): Likewise.
6329         (PACKET_LOSS): Likewise.
6330         (PACKET_VNET_HDR): Likewise.
6331         (PACKET_TX_TIMESTAMP): Likewise.
6332         (PACKET_TIMESTAMP): Likewise.
6333         (PACKET_FANOUT): Likewise.
6334         (PACKET_TX_HAS_OFF): Likewise.
6335         (PACKET_QDISC_BYPASS): Likewise.
6336         (PACKET_ROLLOVER_STATS): Likewise.
6337         (PACKET_FANOUT_DATA): Likewise.
6338         (PACKET_MR_UNICAST): Likewise.
6339
6340         [BZ #19242]
6341         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
6342         (TOUPPER): Likewise.
6343         * stdlib/tst-strtol-locale-main.c: New file.
6344         * stdlib/tst-strtol-locale.c: Likewise.
6345         * stdlib/Makefile (tests): Add tst-strtol-locale.
6346         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
6347         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
6348         Depend on $(gen-locales).
6349         * wcsmbs/tst-wcstol-locale.c: New file.
6350         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
6351         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
6352         tr_TR.ISO-8859-9.
6353         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
6354         Depend on $(gen-locales).
6355
6356 2015-11-20  Roland McGrath  <roland@hack.frob.com>
6357
6358         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
6359         __glibc_likely instead of __builtin_expect.  After falling back to
6360         dyncode_create in a non-ET_DYN case, use the allocate_code_data
6361         system interface to register the code pages as occupied.
6362
6363 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
6364
6365         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6366         [!ARM_MATH_PRIVATE_H].
6367         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
6368         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6369         [!HPPA_MATH_PRIVATE_H].
6370         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
6371         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
6372         to [!I386_MATH_PRIVATE_H].
6373         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
6374         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
6375         Change guard to [!M68K_MATH_PRIVATE_H].
6376         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
6377         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
6378         guard to [!MICROBLAZE_MATH_PRIVATE_H].
6379         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
6380         macro.
6381         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6382         [!MIPS_MATH_PRIVATE_H].
6383         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
6384         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6385         [!NIO2_MATH_PRIVATE_H].
6386         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
6387         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6388         [!TILE_MATH_PRIVATE_H].
6389         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
6390
6391         [BZ #15421]
6392         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
6393         initialize with 0 and define as weak alias of __signgam.
6394         * include/math.h [!_ISOMAC] (__signgam): Declare.
6395         * math/Makefile (libm-calls): Add w_lgamma_compat.
6396         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
6397         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
6398         test-signgam-ullong-init.
6399         (tests-static): Add test-signgam-uchar-static,
6400         test-signgam-uchar-init-static, test-signgam-uint-static,
6401         test-signgam-uint-init-static, test-signgam-ullong-static and
6402         test-signgam-ullong-init-static.
6403         (CFLAGS-test-signgam-uchar.c): New variable.
6404         (CFLAGS-test-signgam-uchar-init.c): Likewise.
6405         (CFLAGS-test-signgam-uchar-static.c): Likewise.
6406         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
6407         (CFLAGS-test-signgam-uint.c): Likewise.
6408         (CFLAGS-test-signgam-uint-init.c): Likewise.
6409         (CFLAGS-test-signgam-uint-static.c): Likewise.
6410         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
6411         (CFLAGS-test-signgam-ullong.c): Likewise.
6412         (CFLAGS-test-signgam-ullong-init.c): Likewise.
6413         (CFLAGS-test-signgam-ullong-static.c): Likewise.
6414         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
6415         * math/Versions (libm): Add GLIBC_2.23.
6416         * math/lgamma-compat.h: New file.
6417         * math/test-signgam-main.c: Likewise.
6418         * math/test-signgam-uchar-init-static.c: Likewise.
6419         * math/test-signgam-uchar-init.c: Likewise.
6420         * math/test-signgam-uchar-static.c: Likewise.
6421         * math/test-signgam-uchar.c: Likewise.
6422         * math/test-signgam-uint-init-static.c: Likewise.
6423         * math/test-signgam-uint-init.c: Likewise.
6424         * math/test-signgam-uint-static.c: Likewise.
6425         * math/test-signgam-uint.c: Likewise.
6426         * math/test-signgam-ullong-init-static.c: Likewise.
6427         * math/test-signgam-ullong-init.c: Likewise.
6428         * math/test-signgam-ullong-static.c: Likewise.
6429         * math/test-signgam-ullong.c: Likewise.
6430         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
6431         wrapper of w_lgamma_main.c.
6432         * math/w_lgamma_compat.c: New file.
6433         * math/w_lgamma_compatf.c: Likewise.
6434         * math/w_lgamma_compatl.c: Likewise.
6435         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
6436         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6437         defining compatibility symbols.
6438         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
6439         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
6440         wrapper of w_lgammaf_main.c.
6441         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
6442         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6443         defining compatibility symbols.
6444         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
6445         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
6446         wrapper of w_lgammal_main.c.
6447         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
6448         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
6449         defining compatibility symbols.
6450         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
6451         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
6452         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
6453         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
6454         <lgamma-compat.h>.
6455         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
6456         (__ieee754_gamma): Define as alias.
6457         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
6458         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
6459         <lgamma-compat.h>.
6460         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
6461         (__ieee754_gammaf): Define as alias.
6462         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
6463         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
6464         <lgamma-compat.h>.
6465         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
6466         (__ieee754_gammal): Define as alias.
6467         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
6468         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
6469         <math/w_lgamma_compat.c>.
6470         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
6471         Define as alias of __lgamma_compat and use in defining lgammal.
6472         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
6473         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
6474         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
6475         (USE_AS_COMPAT): New macro.
6476         (LGAMMA_OLD_VER): Undefine and redefine.
6477         (lgammal): Do not define here.
6478         (gammal): Only define here if [GAMMA_ALIAS].
6479         * conform/linknamespace.pl (@whitelist): Remove signgam.
6480         * sysdeps/nacl/libm.abilist: Update.
6481         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6482         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6483         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6484         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6485         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6486         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6487         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6488         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6489         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6490         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6491         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6492         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6494         Likewise.
6495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6496         Likewise.
6497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6498         Likewise.
6499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6500         Likewise.
6501         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6502         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6503         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6504         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6505         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6506         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6507         Likewise.
6508         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6509         Likewise.
6510         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6511         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6512         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6513
6514 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6515
6516         [BZ #16364]
6517         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
6518         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
6519
6520 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
6521
6522         * sysdeps/s390/fpu/bits/mathinline.h:
6523         Use __asm__ [__volatile__] instead of asm [volatile].
6524         * sysdeps/s390/abort-instr.h: Likewise.
6525         * sysdeps/s390/atomic-machine.h: Likewise.
6526         * sysdeps/s390/bits/string.h: Likewise.
6527         * sysdeps/s390/dl-tls.h: Likewise.
6528         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
6529         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
6530         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
6531         * sysdeps/s390/fpu/fesetround.c: Likewise.
6532         * sysdeps/s390/fpu/fpu_control.h: Likewise.
6533         * sysdeps/s390/fpu/s_fma.c: Likewise.
6534         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
6535         * sysdeps/s390/memusage.h: Likewise.
6536         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
6537         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
6538         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
6539         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
6540         * sysdeps/s390/nptl/tls.h: Likewise.
6541         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
6542         * sysdeps/s390/s390-32/backtrace.c: Likewise.
6543         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6544         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
6545         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6546         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
6547         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
6548         * sysdeps/s390/s390-64/backtrace.c: Likewise.
6549         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6550         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
6551         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
6552         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6553         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
6554         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
6555         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
6556         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
6557         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
6558         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
6559         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
6560         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6561         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
6562         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
6563         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
6564
6565 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6566             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6567
6568         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
6569         Add lwarx hint, and use macro for acquire instruction.
6570         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
6571         Likewise.
6572         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
6573         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
6574         update to use new atomic macros.
6575
6576 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6577
6578         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
6579         (__lll_trylock_elision): Fix setting of adapt_count.
6580         * sysdeps/unix/sysv/linux/powerpc/htm.h
6581         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
6582         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
6583         (_ABORT_SYSCALL): Renumber, and clarify definition.
6584         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
6585
6586 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6587
6588         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
6589         after system headers to prevent MIN/MAX redefinition.  Define
6590         HAVE_ALLOCA to preserve builtin alloca usage.
6591
6592 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
6593
6594         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
6595         static and don't set or restore rounding.
6596         (__cos)[IN_SINCOS]: Likewise.
6597         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
6598         (__sincos): Set and restore rounding mode.  Remove check for infinite
6599         or NaN input.
6600
6601         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
6602
6603         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
6604         as used.
6605
6606 2015-11-16  Florian Weimer  <fweimer@redhat.com>
6607
6608         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
6609
6610 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
6611
6612         * config.make.in (have-glob-dat-reloc): New.
6613         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
6614         target supports GLOB_DAT relocaton. AC_SUBST.
6615         * configure: Regenerated.
6616         * elf/Makefile (tests): Add tst-prelink.
6617         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
6618         (tst-prelink-ENV): New.
6619         ($(objpfx)tst-prelink-conflict.out): Likewise.
6620         ($(objpfx)tst-prelink-cmp.out): Likewise.
6621         * sysdeps/x86/tst-prelink.c: Moved to ...
6622         * elf/tst-prelink.c: Here.
6623         * sysdeps/x86/tst-prelink.exp: Moved to ...
6624         * elf/tst-prelink.exp: Here.
6625         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
6626         (tst-prelink-ENV): Removed.
6627         ($(objpfx)tst-prelink-conflict.out): Likewise.
6628         ($(objpfx)tst-prelink-cmp.out): Likewise.
6629         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
6630
6631 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
6632
6633         [BZ #14551]
6634         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
6635         (__mpn_construct_long_double): If high part overflows to infinity,
6636         set errno and recompute overflowed result of the correct sign.
6637         * sysdeps/ieee754/ldbl-128ibm/Makefile
6638         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
6639         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
6640         $(libm).
6641         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
6642
6643 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
6644
6645         [BZ #15479]
6646         [BZ #19238]
6647         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
6648         floating-point state after first operation on input.  Restore full
6649         state rather than just rounding mode.
6650         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
6651         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
6652         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
6653
6654         [BZ #19235]
6655         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
6656         add 0.5 to integer arguments.
6657         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
6658         Likewise.
6659         (.LC2): New object.
6660
6661 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
6662
6663         * scripts/pylintrc (reports): Set to no.
6664
6665 2015-11-10  Roland McGrath  <roland@hack.frob.com>
6666
6667         * elf/dl-load.c (open_verify): Take new argument FD.
6668         Skip __open call if passed FD is not -1.
6669         (_dl_map_object, open_path): Update callers.
6670         * elf/dl-sysdep-open.h: New file.
6671         * elf/dl-load.c: Include it.
6672         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
6673         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
6674         * sysdeps/nacl/dl-sysdep-open.h: New file.
6675         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
6676         from libc to rtld.
6677
6678 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
6679
6680         [BZ #19228]
6681         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
6682         and restore full floating-point state.
6683         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
6684         Likewise.
6685         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
6686         Likewise.
6687         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
6688         Likewise.
6689         * math/test-nearbyint-except-2.c: New file.
6690         * math/Makefile (tests): Add test-nearbyint-except-2.
6691
6692 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
6693
6694         [BZ #19178]
6695         * sysdeps/x86/Makefile (tests): Add tst-prelink.
6696         (tst-prelink-ENV): New.
6697         ($(objpfx)tst-prelink-conflict.out): Likewise.
6698         ($(objpfx)tst-prelink-cmp.out): Likewise.
6699         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
6700         * sysdeps/x86/tst-prelink.c: New file.
6701         * sysdeps/x86/tst-prelink.exp: Likewise.
6702
6703 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
6704
6705         * math/auto-libm-test-in: Add another test of pow.
6706         * math/auto-libm-test-out: Regenerated.
6707         * math/libm-test.inc (pow_test_data): Add another test.
6708
6709 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6710
6711         [BZ #19219]
6712         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
6713         weak_alias to nearbyintl.
6714
6715 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
6716
6717         * sysdeps/aarch64/bits/string.h: New file.
6718         (_STRING_ARCH_unaligned): Define.
6719
6720 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
6721
6722         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
6723         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
6724         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
6725         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
6726         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
6727
6728 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
6729
6730         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
6731         for original name of the DSO.  Add it to the name list of the DSO
6732         if it is actually given.
6733         (_dl_map_object): Keep track of whether an audit module rewrote
6734         the file name.  If yes, pass the original name to
6735         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
6736         debugging is enabled, log the change of the file name.
6737         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
6738         _dl_map_object_from_fd.
6739         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
6740         * elf/tst-audit11.c: New file
6741         * elf/tst-auditmod11.c: New file.
6742         * elf/tst-audit11mod1.c: New file.
6743         * elf/tst-audit11mod2.c: New file.
6744         * elf/tst-audit11mod2.map: New file.
6745         * elf/tst-audit12.c: New file
6746         * elf/tst-auditmod12.c: New file.
6747         * elf/tst-audit12mod1.c: New file.
6748         * elf/tst-audit12mod2.c: New file.
6749         * elf/tst-audit12mod2.map: New file.
6750         * elf/tst-audit12mod3.c: New file.
6751
6752 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
6753
6754         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
6755         Don't create weak aliases,
6756         because versioned symbols are created later.
6757         * sysdeps/s390/s390-32/setjmp.S
6758         (setjmp, _setjmp): Remove weak and rename to an unique name
6759         in SHARED case due to existing versioned symbols.
6760         * sysdeps/s390/s390-64/setjmp.S: Likewise.
6761         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
6762         (getcontext): Create weak alias only in non SHARED case.
6763         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
6764
6765 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
6766
6767         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
6768         (__ASSUME_*_SYSCALL) Define new macros.
6769         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
6770         Remove socketcall syscalls.
6771         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
6772         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
6773         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
6774         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
6775         * sysdeps/unix/sysv/linux/send.c (__libc_send):
6776         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
6777
6778 2015-11-09  Florian Weimer  <fweimer@redhat.com>
6779
6780         [BZ #12926]
6781         Terminate process on invalid netlink response.
6782         * sysdeps/unix/sysv/linux/netlinkaccess.h
6783         (__netlink_assert_response): Declare.
6784         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
6785         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
6786         (sysdep_routines): Add netlink_assert_response.
6787         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
6788         __netlink_assert_response.
6789         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
6790         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
6791         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
6792         __netlink_assert_response.
6793
6794 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6795
6796         [BZ #19178]
6797         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
6798         (RTYPE_CLASS_PLT): Likewise.
6799         (RTYPE_CLASS_COPY): Likewise.
6800         (RTYPE_CLASS_TLS): Likewise.
6801         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
6802         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
6803         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
6804         DL_DEBUG_PRELINK.
6805
6806 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
6807
6808         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
6809         calls with argument -0.5.
6810         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
6811
6812         * configure.ac (libc_cv_z_nodelete): Remove configure test.
6813         (libc_cv_z_nodlopen): Likewise.
6814         (libc_cv_z_initfirst): Likewise.
6815         * configure: Regenerated.
6816
6817 2015-11-06  Florian Weimer  <fweimer@redhat.com>
6818
6819         Simplify abilist format to be line-based.
6820         * scripts/abilist.awk: Collect descriptors in the descs variable.
6821         (emit): Write descs variable and sort it
6822         externally, with sort.
6823         * sysdeps/**/*.abilist: Convert to new format.
6824
6825 2015-11-06  Mark Wielaard  <mjw@redhat.com>
6826
6827         [BZ #11460]
6828         * io/Makefile (routines): Add fts64.
6829         (tests): Add tst-fts and tst-fts-lfs.
6830         (CFLAGS-fts64.c): New.
6831         * io/Versions (GLIBC_2.23): New.
6832         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
6833         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
6834         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
6835         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
6836         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
6837         (FTSENT64): Likewise.
6838         (fts64_children): Likewise.
6839         (fts64_close): Likewise.
6840         (fts64_open): Likewise.
6841         (fts64_read): Likewise.
6842         (fts64_set): Likewise.
6843         * io/fts64.c: New file.
6844         * io/tst-fts.c: New test.
6845         * io/tst-fts-lfs.c: Likewise.
6846         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
6847         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
6848         fts64_set.
6849         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6850         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6851         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6852         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6853         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6854         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6855         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6856         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6857         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6858         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
6859         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6860         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6861         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6863         Likewise.
6864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6865         Likewise.
6866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
6867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
6868         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6869         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6870         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6871         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6872         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6873         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
6874         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
6875         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6876         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6877         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6878         * sysdeps/wordsize-64/fts.c: New file.
6879         * sysdeps/wordsize-64/fts64.c: Likewise.
6880         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
6881         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
6882         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
6883         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
6884
6885 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
6886
6887         * math/libm-test.inc (NON_FINITE): New macro.
6888         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
6889         * math/gen-libm-test.pl (show_exceptions): Add argument
6890         $non_finite.
6891         (parse_args): Update call to show_exceptions.
6892         * math/test-math-finite.h: New file.
6893         * math/test-math-no-finite.h: Likewise.
6894         * math/test-double-finite.c: Likewise.
6895         * math/test-float-finite.c: Likewise.
6896         * math/test-ldouble-finite.c: Likewise.
6897         * math/test-double.c: Include "test-math-no-finite.h".
6898         * math/test-float.c: Include "test-math-no-finite.h".
6899         * math/test-ldouble.c: Include "test-math-no-finite.h".
6900         * math/test-math-inline.h (TEST_FINITE): New macro.
6901         * math/test-math-vector.h (TEST_FINITE): Likewise.
6902         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
6903         (libm-tests): Add test-float-finite and test-double-finite.
6904         ($(objpfx)test-float-finite.o): New dependency on
6905         $(objpfx)libm-test.stmp.
6906         ($(objpfx)test-double-finite.o): Likewise.
6907         ($(objpfx)test-ldouble-finite.o): Likewise.
6908         (libm-test-no-inline-cflags): New variable.
6909         (libm-test-finite-cflags): Likewise.
6910         (CFLAGS-test-float-finite.c): Likewise.
6911         (CFLAGS-test-double-finite.c): Likewise.
6912         (CFLAGS-test-ldouble-finite.c): Likewise.
6913         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
6914         (CFLAGS-test-double.c): Likewise.
6915         (CFLAGS-test-ldouble.c): Likewise.
6916
6917 2015-11-05  Roland McGrath  <roland@hack.frob.com>
6918
6919         * io/fcntl.c (__fcntl): Add ... to prototype.
6920         * misc/ioctl.c (__ioctl): Likewise.
6921         * misc/syscall.c (syscall): Likewise.
6922
6923 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
6924
6925         * scripts/list-fixed-bugs.py: New file.
6926
6927         [BZ #19213]
6928         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
6929         returned for argument 1.
6930         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
6931         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
6932         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
6933         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
6934         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
6935         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
6936
6937         [BZ #19211]
6938         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
6939         __USE_XOPEN], not if [!__USE_ISOC99].
6940         (lgammaf): Likewise.
6941         (lgammal): Likewise.
6942         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
6943         (gammaf): Likewise.
6944         (gammal): Likewise.
6945         * math/test-signgam-finite-c11.c: New file.
6946         * math/test-signgam-finite-c99.c: Likewise.
6947         * math/test-signgam-finite.c: Likewise.
6948         * math/Makefile (tests): Add test-signgam-finite,
6949         test-signgam-finite-c99 and test-signgam-finite-c11.
6950         (CFLAGS-test-signgam-finite.c): New variable.
6951         (CFLAGS-test-signgam-finite-c99.c): Likewise.
6952         (CFLAGS-test-signgam-finite-c11.c): Likewise.
6953
6954         [BZ #19212]
6955         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
6956         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
6957         500].
6958         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
6959         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
6960         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
6961         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
6962         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
6963         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
6964         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
6965         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
6966         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
6967         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
6968
6969         [BZ #19209]
6970         * math/bits/math-finite.h (ldexp): Remove declaration.
6971         (ldexpf): Likewise.
6972         (ldexpl): Likewise.
6973
6974         [BZ #19205]
6975         * math/bits/math-finite.h (acosf): Condition declaration on
6976         [__USE_ISOC99].
6977         (acosl): Likewise.
6978         (acoshf): Likewise.
6979         (acoshl): Likewise.
6980         (asinf): Likewise.
6981         (asinl): Likewise.
6982         (atan2f): Likewise.
6983         (atan2l): Likewise.
6984         (atanhf): Likewise.
6985         (atanhl): Likewise.
6986         (coshf): Likewise.
6987         (coshl): Likewise.
6988         (expf): Likewise.
6989         (expl): Likewise.
6990         (fmodf): Likewise.
6991         (fmodl): Likewise.
6992         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
6993         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
6994         (j0l): Likewise.
6995         (y0f): Likewise.
6996         (y0l): Likewise.
6997         (j1f): Likewise.
6998         (j1l): Likewise.
6999         (y1f): Likewise.
7000         (y1l): Likewise.
7001         (jnf): Likewise.
7002         (jnl): Likewise.
7003         (ynf): Likewise.
7004         (ynl): Likewise.
7005         (lgammaf_r): Condition declaration on [__USE_ISOC99].
7006         (lgammal_r): Likewise.
7007         (__lgamma_r_finite): New declaration.
7008         (__lgammaf_r_finite): Likewise.
7009         (__lgammal_r_finite): Likewise.
7010         (lgamma): Use __lgamma_r_finite.
7011         (lgammaf): Condition definition on [__USE_ISOC99].  Use
7012         __lgammaf_r_finite.
7013         (lgammal): Condition definition on [__USE_ISOC99].  Use
7014         __lgammal_r_finite.
7015         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
7016         __lgamma_r_finite.
7017         (gammaf): Condition definition on [__USE_ISOC99].  Use
7018         __lgammaf_r_finite.
7019         (gammal): Condition definition on [__USE_ISOC99].  Use
7020         __lgammal_r_finite.
7021         (logf): Condition declaration on [__USE_ISOC99].
7022         (logl): Likewise.
7023         (log10f): Likewise.
7024         (log10l): Likewise.
7025         (ldexpf): Likewise.
7026         (ldexpl): Likewise.
7027         (powf): Likewise.
7028         (powl): Likewise.
7029         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
7030         __USE_ISOC99].
7031         (remainderf): Condition declaration on [__USE_ISOC99].
7032         (remainderl): Likewise.
7033         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
7034         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
7035         (scalbl): Likewise.
7036         (sinhf): Condition declaration on [__USE_ISOC99].
7037         (sinhl): Likewise.
7038         (sqrtf): Likewise.
7039         (sqrtl): Likewise.
7040
7041 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7042
7043         * sysdeps/arm/atomic-machine.h
7044         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7045         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7046         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
7047         Remove conditional code.
7048         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7049         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7050         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
7051         Change conditional to [__ASSEMBLER__].
7052         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7053         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
7054         [!__ASSEMBLER__].
7055         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
7056         code.
7057         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
7058         conditional macro definitions.
7059         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
7060         (__arch_compare_and_exchange_val_16_acq): Likewise.
7061         (__arch_compare_and_exchange_val_32_acq): Likewise.
7062         (atomic_exchange_and_add): Likewise.
7063         (atomic_add): Likewise.
7064         (atomic_add_negative): Likewise.
7065         (atomic_add_zero): Likewise.
7066         (atomic_bit_set): Likewise.
7067         (atomic_bit_test_set): Likewise.
7068         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
7069         code unconditional.
7070         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7071
7072         * math/test-math-errno.h: New file.
7073         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
7074         empty.
7075         (TEST_ERRNO): New macro.
7076         (TEST_EXCEPTIONS): Likewise.
7077         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
7078         (TEST_EXCEPTIONS): Likewise.
7079         * math/test-math-vector.h (TEST_ERRNO): Likewise.
7080         * math/test-double.c: Include "test-math-errno.h".
7081         * math/test-float.c: Likewise.
7082         * math/test-ldouble.c: Likewise.
7083         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
7084         code unconditional.
7085         (test_exceptions): Only run code if TEST_EXCEPTIONS.
7086         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
7087         unconditional.
7088         (test_errno): Only run code if TEST_ERRNO.
7089         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
7090
7091 2015-11-04  Florian Weimer  <fweimer@redhat.com>
7092
7093         * nptl/tst-once5.cc: Remove attribution.
7094
7095 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7096
7097         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
7098         sqrt, tan, tanh, y0, y1 and yn.
7099         * math/auto-libm-test-out: Regenerated.
7100         * math/libm-test.inc (scalb_test_data): Add more tests.
7101         (scalbn_test_data): Likewise.
7102         (scalbln_test_data): Likewise.
7103         (signbit_test_data): Likewise.
7104         (sin_test_data): Likewise.
7105         (sincos_test_data): Likewise.
7106         (sinh_test_data): Likewise.
7107         (sqrt_test_data): Likewise.
7108         (tan_test_data): Likewise.
7109         (tanh_test_data): Likewise.
7110         (tgamma_test_data): Likewise.
7111         (y0_test_data): Likewise.
7112         (y1_test_data): Likewise.
7113         (yn_test_data): Likewise.
7114         (significand_test_data): Likewise.
7115         * sysdeps/i386/fpu/libm-test-ulps: Update.
7116
7117 2015-11-03  David Kastrup  <dak@gnu.org>
7118
7119         [BZ #18604]
7120         * assert/assert.h (assert): Don't macro-expand failed assertion
7121         expression in error message.
7122         * malloc/malloc.c (assert): Likewise.
7123
7124 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
7125
7126         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
7127         test.
7128         * configure: Regenerated.
7129
7130 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
7131
7132         * math/libm-test.inc (modf_test_data): Add more tests.
7133         (nearbyint_test_data): Likewise.
7134         (nextafter_test_data): Likewise.
7135         (nexttoward_test_data): Likewise.
7136         (pow_test_data): Likewise.
7137         (remainder_test_data): Likewise.
7138         (remquo_test_data): Likewise.
7139         (rint_test_data): Likewise.
7140
7141         [BZ #19201]
7142         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
7143         Check for zero remainder in case of large exponents and ensure
7144         correct sign of result in that case.
7145         * math/libm-test.inc (remainder_test_data): Add more tests.
7146
7147         [BZ #6799]
7148         * math/s_nextafter.c: Include <errno.h>.
7149         (__nextafter): Set errno on overflow and underflow.
7150         * math/s_nexttowardf.c: Include <errno.h>.
7151         (__nexttowardf): Set errno on overflow and underflow.
7152         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
7153         (__nextafterl): Set errno on overflow and underflow.
7154         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
7155         (__nexttoward): Set errno on overflow and underflow.
7156         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
7157         (__nexttowardf): Set errno on overflow and underflow.
7158         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
7159         (__nextafterf): Set errno on overflow and underflow.
7160         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
7161         (__nextafterl): Set errno on overflow and underflow.
7162         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
7163         (__nexttoward): Set errno on overflow and underflow.
7164         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
7165         (__nexttowardf): Set errno on overflow and underflow.
7166         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
7167         (__nextafterl): Set errno on overflow and underflow.
7168         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
7169         (__nexttoward): Set errno on overflow and underflow.
7170         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
7171         (__nexttowardf): Set errno on overflow and underflow.
7172         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
7173         (__nexttoward): Set errno on overflow and underflow.
7174         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
7175         (__nexttowardf): Set errno on overflow and underflow.
7176         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
7177         (__nldbl_nexttowardf): Set errno on overflow and underflow.
7178         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
7179         (__nextafterl): Set errno on overflow and underflow.
7180         * math/libm-test.inc (nextafter_test_data): Do not allow errno
7181         setting to be missing on overflow.  Add more tests.
7182         (nexttoward_test_data): Likewise.
7183
7184         * configure.ac (libc_cv_initfini_array): Remove configure test.
7185         * configure: Regenerated.
7186
7187 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
7188
7189         [BZ #19189]
7190         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
7191         non-finite argument handle arguments with negative sign.
7192
7193         * math/libm-test.inc (j0_test_data): Do not test sign of zero
7194         result from infinite argument.
7195         (j1_test_data): Likewise.
7196         (jn_test_data): Likewise.
7197         (y0_test_data): Likewise.
7198         (y1_test_data): Likewise.
7199         (yn_test_data): Likewise.
7200
7201         [BZ #16171]
7202         * math/w_remainder.c (drem): Define as weak alias of __remainder.
7203         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
7204         * math/w_remainderf.c (dremf): Define as weak alias of
7205         __remainderf.
7206         * math/w_remainderl.c (dreml): Define as weak alias of
7207         __remainderl.
7208         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
7209         __remainder.
7210         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
7211         __remainderf.
7212         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
7213         __remainderl.
7214         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
7215         weak alias of remainderl.
7216         * sysdeps/ieee754/ldbl-opt/w_remainder.c
7217         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
7218         alias of __remainder.
7219         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
7220         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
7221         strong alias of __remainderl.
7222         (dreml): Use long_double_symbol.
7223         * math/Makefile (libm-calls): Remove w_drem.
7224         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
7225         (CFLAGS-nldbl-drem.c): Remove variable.
7226         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
7227         * math/w_drem.c: Remove file.
7228         * math/w_dremf.c: Likewise.
7229         * math/w_dreml.c: Likewise.
7230         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
7231         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
7232         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
7233
7234         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
7235         * sysdeps/i386/configure: Regenerated.
7236         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
7237         * sysdeps/x86_64/configure: Regenerated.
7238
7239         * configure.ac (libc_cv_asm_protected_directive): Remove configure
7240         test.
7241         (libc_cv_visibility_attribute): Likewise.
7242         (libc_cv_protected_data): Test unconditionally.
7243         (libc_cv_broken_visibility_attribute): Remove configure test.
7244         (libc_cv_have_sdata_section): Test unconditionally.
7245         * configure: Regenerated.
7246
7247         * include/libc-internal.h (libc_max_align_t): Remove typedef.
7248         * include/scratch_buffer.h: Include <stddef.h> instead of
7249         <libc-internal.h>.
7250         (struct scratch_buffer): Use max_align_t instead of
7251         libc_max_align_t.
7252
7253 2015-10-29  Florian Weimer  <fweimer@redhat.com>
7254
7255         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
7256         instead of extend_alloca.  Change control flow to avoid a goto.
7257         Remove assert which is trivially always true.
7258
7259 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7260
7261         [BZ #16068]
7262         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
7263         (FE_ALL_EXCEPT_X86): New macro.
7264         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7265         FE_ALL_EXCEPT.  Ensure precision control is included in
7266         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7267         handle "denormal operand exception" and clear FZ and DAZ bits.
7268         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
7269         (FE_ALL_EXCEPT_X86): New macro.
7270         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7271         FE_ALL_EXCEPT.  Ensure precision control is included in
7272         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7273         handle "denormal operand exception" and clear FZ and DAZ bits.
7274         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
7275         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
7276         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7277         test-fenv-x87 and test-fenv-sse-2.
7278         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
7279
7280         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
7281         * math/test-double.h (BUILD_COMPLEX): New macro.
7282         * math/test-float.h (BUILD_COMPLEX): Likewise.
7283         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
7284
7285         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
7286         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
7287         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
7288         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
7289         instead of DBL_DENORM_MIN in comment.
7290         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
7291         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7292         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
7293         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
7294         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
7295         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7296
7297 2015-10-28  Florian Weimer  <fweimer@redhat.com>
7298
7299         [BZ# 19048]
7300         * malloc/malloc.c (struct malloc_state): Update comment.  Add
7301         attached_threads member.
7302         (main_arena): Initialize attached_threads.
7303         * malloc/arena.c (list_lock): Update comment.
7304         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
7305         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
7306         (deattach_arena): New function.
7307         (_int_new_arena): Initialize arena reference count and deattach
7308         replaced arena.
7309         (get_free_list, reused_arena): Update reference count and deattach
7310         replaced arena.
7311         (arena_thread_freeres): Update arena reference count and only put
7312         unreferenced arenas on the free list.
7313
7314 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7315
7316         [BZ #19181]
7317         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
7318         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
7319         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
7320         * math/test-fenv-clear-main.c: New file.
7321         * math/test-fenv-clear.c: Likewise.
7322         * math/Makefile (tests): Add test-fenv-clear.
7323         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
7324         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7325         test-fenv-clear-sse.
7326         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
7327
7328         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
7329         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
7330         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
7331
7332 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7333
7334         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
7335         static libc.
7336
7337 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7338
7339         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
7340         test.
7341         * sysdeps/i386/configure: Regenerated.
7342         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
7343         test.
7344         * sysdeps/x86_64/configure: Regenerated.
7345         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
7346         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7347         memset-avx2 unconditionally instead of conditionally on
7348         [$(config-cflags-avx2) = yes].
7349         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7350         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
7351         unconditional.
7352         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
7353         * sysdeps/x86_64/multiarch/memset_chk.S
7354         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
7355         to [IS_IN (libc) && SHARED].
7356
7357 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7358
7359         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
7360         configure test.
7361         * sysdeps/arm/configure: Regenerated.
7362         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
7363         Define variable if not already defined.
7364
7365         [BZ #17404]
7366         * sysdeps/mips/atomic-machine.h
7367         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
7368         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
7369         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7370
7371         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
7372         unconditional.
7373         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
7374         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7375         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
7376         unconditional.
7377         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7378         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
7379         unconditional.
7380         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7381         * stdlib/setenv.c
7382         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
7383         code unconditional.
7384         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
7385         Remove conditional code.
7386         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
7387         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
7388         unconditional.
7389         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7390         code.
7391         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
7392         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
7393         unconditional.
7394         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7395         code.
7396         * sysdeps/ieee754/ldbl-128/k_tanl.c
7397         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7398         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7399         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
7400         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7401         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7402         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
7403         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
7404         unconditional.
7405         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
7406         code.
7407         * sysdeps/ieee754/ldbl-96/k_tanl.c
7408         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
7409         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7410
7411         * nptl/tst-initializers1-c11.c: New file.
7412         * nptl/tst-initializers1-gnu11.c: Likewise.
7413         * nptl/Makefile (tests): Add these new tests.
7414         (CFLAGS-tst-initializers1-c11.c): New variable.
7415         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
7416
7417         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
7418         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
7419         instead of -std=gnu99.
7420         * configure.ac (systemtap): Test with -std=gnu11 instead of
7421         -std=gnu99.
7422         * configure: Regenerated.
7423         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
7424         in compilation command in comment.
7425
7426         * sysdeps/nptl/configure.ac: Remove file.
7427         * sysdeps/nptl/configure: Remove generated file.
7428         * configure.ac (libc_cv_forced_unwind): Do not substitute.
7429         * configure: Regenerated.
7430         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
7431         * config.make.in (have-forced-unwind): Remove variable.
7432         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
7433         unconditional.
7434         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
7435         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
7436         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
7437         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
7438         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
7439         unconditional.
7440
7441 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7442
7443         [BZ #19174]
7444         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
7445         .skip_lock_out_of_tbegin_retries.
7446         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
7447         (__lll_lock_elision): Likewise, and respect a value of
7448         try_tbegin <= 0.
7449
7450 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7451
7452         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
7453         statement.
7454
7455 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7456
7457         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
7458         variable.
7459         (test-xfail-ISO11/stdalign.h/conform): Likewise.
7460         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
7461
7462         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
7463         of -std=c1x -D_ISOC11_SOURCE.
7464
7465         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
7466         * configure: Regenerated.
7467         * manual/install.texi (Tools for Compilation): Document
7468         requirement for GCC 4.7 or later.
7469         * INSTALL: Regenerated.
7470
7471 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
7472
7473         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
7474         on CNT to a conditional jump to 'puntdata'.
7475
7476 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7477
7478         * configure.ac (libc_cv_gcc___thread): Remove configure test.
7479         (libc_cv_gcc_tls_model_attr): Likewise.
7480         * configure: Regenerated.
7481
7482         * configure.ac (libc_cv_need_minus_P): Remove configure test.
7483         * configure: Regenerated.
7484         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
7485
7486 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
7487
7488         * configure.ac (old_glibc_headers): Remove configure test.
7489         * configure: Regenerated.
7490         * config.make.in (old-glibc-headers): Remove variable.
7491         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
7492         (install): Remove dependency on remove-old-headers.
7493         (headers2_0): Remove variable.
7494         (remove-old-headers): Remove rule.
7495
7496         * configure.ac (libc_cv_dot_text): Remove configure test.
7497         (libc_cv_asm_set_directive): Use .text instead of
7498         ${libc_cv_dot_text} in configure test.
7499         * configure: Regenerated.
7500
7501 2015-10-26  Florian Weimer  <fweimer@redhat.com>
7502
7503         [BZ #19168]
7504         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
7505
7506 2015-10-26  Florian Weimer  <fweimer@redhat.com>
7507
7508         * configure.ac (CXX): Clear the variable if the C++ toolchain does
7509         not support static linking.
7510         * configure: Regenerate.
7511
7512 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
7513
7514         * math/libm-test.inc (check_float_internal): Do not special-case
7515         errors up to 0.5 ulp.
7516
7517         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
7518         log2.
7519         * math/auto-libm-test-out: Regenerated.
7520         * math/libm-test.inc (MAX_EXP): New macro.
7521         (ilogb_test_data): Add more tests.
7522         (isfinite_test_data): Likewise.
7523         (isgreater_test_data): Likewise.
7524         (isgreaterequal_test_data): Likewise.
7525         (isinf_test_data): Likewise.
7526         (isless_test_data): Likewise.
7527         (islessequal_test_data): Likewise.
7528         (islessgreater_test_data): Likewise.
7529         (isnan_test_data): Likewise.
7530         (isnormal_test_data): Likewise.
7531         (issignaling_test_data): Likewise.
7532         (isunordered_test_data): Likewise.
7533         (j0_test_data): Likewise.
7534         (j1_test_data): Likewise.
7535         (jn_test_data): Likewise.
7536         (lgamma_test_data): Likewise.
7537         (log_test_data): Likewise.
7538         (log10_test_data): Likewise.
7539         (log1p_test_data): Likewise.
7540         (log2_test_data): Likewise.
7541         (logb_test_data): Likewise.
7542         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7543
7544         [BZ #18611]
7545         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
7546         avoid excess range and precision on underflow.
7547         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
7548         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
7549         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
7550         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
7551         underflow.
7552         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7553         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7554         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
7555         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7556         * math/auto-libm-test-in: Do not allow missing errno setting for
7557         tests of j1 and jn.
7558         * math/auto-libm-test-out: Regenerated.
7559
7560 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
7561
7562         [BZ #15491]
7563         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
7564         floating-point environment instead of clearing all exceptions.
7565         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
7566         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
7567         merging in "invalid" exceptions from frndint.
7568         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
7569         * math/test-nearbyint-except.c: New file.
7570         * math/Makefile (tests): Add test-nearbyint-except.
7571
7572 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
7573
7574         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
7575
7576         * sysdeps/tile/libm-test-ulps: Regenerated.
7577
7578 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7579
7580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
7581         (__NR_sync_file_range2): Assume it is always defined.
7582         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
7583         (__NR_sync_file_range): Assume it is always defined.
7584
7585 2015-10-22  Andreas Schwab  <schwab@suse.de>
7586
7587         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
7588         INTERNAL_SYSCALL_ERRNO.
7589         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
7590         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
7591         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
7592         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
7593         Likewise.
7594         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
7595
7596 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7597
7598         * io/tst-fcntl.c (fd): New static variable.
7599         (do_prepare): Open temporary file here....
7600         (do_test): ...not here.
7601
7602         * io/ftwtest-sh: Also trap on exit to remove temporary files.
7603
7604 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7605
7606         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
7607         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
7608         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
7609         Moved before "#ifdef __ASSEMBLER__".
7610
7611 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7612
7613         [BZ #19156]
7614         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
7615         arguments very close to 0.
7616
7617 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
7618
7619         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
7620         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
7621
7622 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7623
7624         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
7625         New.  Defined for GCC 5 and above when not compiling for
7626         profiling.
7627         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
7628
7629         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
7630         Renamed to ...
7631         (CFLAGS-epoll_pwait.o): This.
7632         (CFLAGS-mmap.c): Renamed to ...
7633         (CFLAGS-mmap.o): This.
7634         (CFLAGS-mmap64.c): Renamed to ...
7635         (CFLAGS-mmap64.o): This.
7636         (CFLAGS-epoll_pwait.os): New.
7637         (CFLAGS-mmap.os): Likewise.
7638         (CFLAGS-mmap64.os): Likewise.
7639         (CFLAGS-semtimedop.os): Likewise.
7640         (CFLAGS-semtimedop.c): Renamed to ...
7641         (CFLAGS-semtimedop.o): This.
7642
7643 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7644
7645         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
7646         warning message.
7647
7648 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7649
7650         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
7651         * Makefile ($(objpfx)c++-types-check.out): Filter out
7652         $(+gccwarn-c) instead of -Wstrict-prototypes.
7653
7654         * io/fts.c (fts_open): Convert to prototype-style function
7655         definition.
7656         * malloc/mcheck.c (mcheck): Likewise.
7657         (mcheck_pedantic): Likewise.
7658         * posix/regexec.c (re_search_2_stub): Likewise.  Use
7659         internal_function.
7660         (re_search_internal): Likewise.
7661         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
7662         prototype-style function definition.
7663         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
7664         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
7665         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
7666         (xdr_utmpptr): Likewise.
7667         (xdr_utmparr): Likewise.
7668         (xdr_utmpidle): Likewise.
7669         (xdr_utmpidleptr): Likewise.
7670         (xdr_utmpidlearr): Likewise.
7671
7672         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
7673         log, log10 and log2.
7674         * math/auto-libm-test-out: Regenerated.
7675         * math/libm-test.inc (fmod_test_data): Add more tests.
7676         (fpclassify_test_data): Likewise.
7677         (frexp_test_data): Likewise.
7678         (hypot_test_data): Likewise.
7679         (ilogb_test_data): Likewise.
7680
7681 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
7682
7683         * debug/fortify_fail.c (__fortify_fail): Convert to
7684         prototype-style function definition.  Use internal_function.
7685         * libio/genops.c (save_for_backup): Convert to prototype-style
7686         function definition.
7687         * libio/wgenops.c (save_for_wbackup): Likewise.
7688         * login/grantpt.c (grantpt): Likewise.
7689         * login/ptsname.c (ptsname): Likewise.
7690         (__ptsname_r): Likewise.
7691         * login/unlockpt.c (unlockpt): Likewise.
7692         * mach/msgserver.c (__mach_msg_server): Likewise.
7693         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
7694         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
7695         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
7696         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
7697         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
7698         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
7699         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
7700         Likewise.
7701         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
7702         internal_function.
7703         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
7704         prototype-style function definition.
7705         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
7706         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
7707         (__pthread_create_2_0): Likewise.
7708         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
7709         * nptl/register-atfork.c (__register_atfork): Likewise.
7710         * posix/glob.c (glob): Likewise.
7711         * posix/regcomp.c (re_comp): Likewise.
7712         * posix/regexec.c (re_exec): Likewise.
7713         * stdlib/add_n.c [__STDC__]: Make code unconditional.
7714         [!__STDC__]: Remove conditional code.
7715         * stdlib/cmp.c [__STDC__]: Make code unconditional.
7716         [!__STDC__]: Remove conditional code.
7717         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
7718         [!__STDC__]: Remove conditional code.
7719         * stdlib/divrem.c [__STDC__]: Make code unconditional.
7720         [!__STDC__]: Remove conditional code.
7721         * stdlib/lshift.c [__STDC__]: Make code unconditional.
7722         [!__STDC__]: Remove conditional code.
7723         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
7724         [!__STDC__]: Remove conditional code.
7725         * stdlib/mul.c [__STDC__]: Make code unconditional.
7726         [!__STDC__]: Remove conditional code.
7727         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
7728         [!__STDC__]: Remove conditional code.
7729         * stdlib/rshift.c [__STDC__]: Make code unconditional.
7730         [!__STDC__]: Remove conditional code.
7731         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
7732         function definition.
7733         (STRTOF): Likewise.
7734         * stdlib/strtod_l.c (__STRTOF): Likewise.
7735         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
7736         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
7737         (__strtol_l): Likewise.
7738         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
7739         [!__STDC__]: Remove conditional code.
7740         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
7741         definition.
7742         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
7743         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7744         type.
7745         (__strcasecmp): Convert to prototype-style function definition.
7746         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
7747         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7748         type.
7749         (__strncasecmp): Convert to prototype-style function definition.
7750         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
7751         * sunrpc/xdr.c (xdr_union): Likewise.
7752         * sunrpc/xdr_array.c (xdr_array): Likewise.
7753         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
7754         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
7755         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
7756         Likewise.
7757         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
7758         Likewise.
7759         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
7760         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
7761         Likewise.
7762         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
7763         (LOCALE_PARAM_PROTO): Likewise.
7764         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
7765         argument type.
7766         (ut_argument_spec): Remove macro.
7767         (ut_argument_spec_iso): Rename to ut_argument_spec.
7768         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
7769         prototype-style function definition.
7770         (memcpy_uppcase): Likewise.
7771         (__strftime_internal): Likewise.
7772         (my_strftime): Likewise.
7773         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
7774         (LOCALE_PARAM_DECL): Likewise.
7775         [_LIBC] (LOCALE_PARAM): Include argument type.
7776         (__strptime_internal): Convert to prototype-style function
7777         definition.
7778         (strptime): Likewise.
7779         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
7780         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7781         type.
7782         (__wcscasecmp): Convert to prototype-style function definition.
7783         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
7784         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
7785         type.
7786         (__wcsncasecmp): Convert to prototype-style function definition.
7787
7788         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
7789         function definition.
7790         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
7791         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
7792         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
7793         * elf/dl-minimal.c (_itoa): Likewise.
7794         * hurd/hurdmalloc.c (malloc): Likewise.
7795         (free): Likewise.
7796         (realloc): Likewise.
7797         * inet/inet6_option.c (inet6_option_space): Likewise.
7798         (inet6_option_init): Likewise.
7799         (inet6_option_append): Likewise.
7800         (inet6_option_alloc): Likewise.
7801         (inet6_option_next): Likewise.
7802         (inet6_option_find): Likewise.
7803         * io/ftw.c (FTW_NAME): Likewise.
7804         (NFTW_NAME): Likewise.
7805         (NFTW_NEW_NAME): Likewise.
7806         (NFTW_OLD_NAME): Likewise.
7807         * libio/iofwide.c (_IO_fwide): Likewise.
7808         * libio/strops.c (_IO_str_init_static_internal): Likewise.
7809         (_IO_str_init_static): Likewise.
7810         (_IO_str_init_readonly): Likewise.
7811         (_IO_str_overflow): Likewise.
7812         (_IO_str_underflow): Likewise.
7813         (_IO_str_count): Likewise.
7814         (_IO_str_seekoff): Likewise.
7815         (_IO_str_pbackfail): Likewise.
7816         (_IO_str_finish): Likewise.
7817         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
7818         (_IO_wstr_overflow): Likewise.
7819         (_IO_wstr_underflow): Likewise.
7820         (_IO_wstr_count): Likewise.
7821         (_IO_wstr_seekoff): Likewise.
7822         (_IO_wstr_pbackfail): Likewise.
7823         (_IO_wstr_finish): Likewise.
7824         * locale/programs/localedef.c (normalize_codeset): Likewise.
7825         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
7826         (add_locales_to_archive): Likewise.
7827         (delete_locales_from_archive): Likewise.
7828         * malloc/malloc.c (__libc_mallinfo): Likewise.
7829         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
7830         * misc/tsearch.c (__tfind): Likewise.
7831         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
7832         * nptl/pthread_attr_getdetachstate.c
7833         (__pthread_attr_getdetachstate): Likewise.
7834         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
7835         Likewise.
7836         * nptl/pthread_attr_getinheritsched.c
7837         (__pthread_attr_getinheritsched): Likewise.
7838         * nptl/pthread_attr_getschedparam.c
7839         (__pthread_attr_getschedparam): Likewise.
7840         * nptl/pthread_attr_getschedpolicy.c
7841         (__pthread_attr_getschedpolicy): Likewise.
7842         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
7843         Likewise.
7844         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
7845         Likewise.
7846         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
7847         Likewise.
7848         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
7849         Likewise.
7850         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
7851         (__pthread_attr_init_2_0): Likewise.
7852         * nptl/pthread_attr_setdetachstate.c
7853         (__pthread_attr_setdetachstate): Likewise.
7854         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
7855         Likewise.
7856         * nptl/pthread_attr_setinheritsched.c
7857         (__pthread_attr_setinheritsched): Likewise.
7858         * nptl/pthread_attr_setschedparam.c
7859         (__pthread_attr_setschedparam): Likewise.
7860         * nptl/pthread_attr_setschedpolicy.c
7861         (__pthread_attr_setschedpolicy): Likewise.
7862         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
7863         Likewise.
7864         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
7865         Likewise.
7866         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
7867         Likewise.
7868         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
7869         Likewise.
7870         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
7871         Likewise.
7872         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
7873         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
7874         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
7875         use internal_function.
7876         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
7877         prototype-style function definition.
7878         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
7879         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
7880         internal_function.
7881         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
7882         Convert to prototype-style function definition.
7883         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
7884         Likewise.
7885         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
7886         Likewise.
7887         (__pthread_mutex_unlock): Likewise.
7888         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
7889         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
7890         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
7891         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
7892         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
7893         * nss/makedb.c (process_input): Likewise.
7894         * posix/fnmatch.c (__strchrnul): Likewise.
7895         (__wcschrnul): Likewise.
7896         (fnmatch): Likewise.
7897         * posix/fnmatch_loop.c (FCT): Likewise.
7898         * posix/glob.c (globfree): Likewise.
7899         (__glob_pattern_type): Likewise.
7900         (__glob_pattern_p): Likewise.
7901         * posix/regcomp.c (re_compile_pattern): Likewise.
7902         (re_set_syntax): Likewise.
7903         (re_compile_fastmap): Likewise.
7904         (regcomp): Likewise.
7905         (regerror): Likewise.
7906         (regfree): Likewise.
7907         * posix/regexec.c (regexec): Likewise.
7908         (re_match): Likewise.
7909         (re_search): Likewise.
7910         (re_match_2): Likewise.
7911         (re_search_2): Likewise.
7912         (re_search_stub): Likewise.  Use internal_function
7913         (re_copy_regs): Likewise.
7914         (re_set_registers): Convert to prototype-style function
7915         definition.
7916         (prune_impossible_nodes): Likewise.  Use internal_function.
7917         * resolv/inet_net_pton.c (inet_net_pton): Convert to
7918         prototype-style function definition.
7919         (inet_net_pton_ipv4): Likewise.
7920         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
7921         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
7922         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
7923         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
7924         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
7925         Make variadic.
7926         * time/strptime_l.c (localtime_r): Convert to prototype-style
7927         function definition.
7928         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
7929         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
7930         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
7931         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
7932
7933         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
7934         definition.
7935         (_ufc_doit_r): Likewise.
7936         * crypt/crypt_util.c (_ufc_copymem): Likewise.
7937         (_ufc_output_conversion_r): Likewise.
7938         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
7939         * inet/rcmd.c (rcmd_af): Likewise.
7940         (rcmd): Likewise.
7941         (ruserok_af): Likewise.
7942         (ruserok): Likewise.
7943         (ruserok2_sa): Likewise.
7944         (ruserok_sa): Likewise.
7945         (iruserok_af): Likewise.
7946         (iruserok): Likewise.
7947         (__ivaliduser): Likewise.
7948         (__validuser2_sa): Likewise.
7949         * inet/rexec.c (rexec_af): Likewise.
7950         (rexec): Likewise.
7951         * inet/ruserpass.c (ruserpass): Likewise.
7952         * locale/programs/xmalloc.c (xcalloc): Likewise.
7953         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
7954         * math/w_drem.c (__drem): Likewise.
7955         * math/w_dremf.c (__dremf): Likewise.
7956         * math/w_dreml.c (__dreml): Likewise.
7957         * misc/daemon.c (daemon): Likewise.
7958         * resolv/res_debug.c (p_fqnname): Likewise.
7959         * stdlib/div.c (div): Likewise.
7960         * string/memcmp.c (memcmp_bytes): Likewise.
7961         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
7962         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
7963
7964         * crypt/cert.c (main): Convert to prototype-style function
7965         definition.
7966         * io/pipe.c (__pipe): Likewise.
7967         * io/pipe2.c (__pipe2): Likewise.
7968         * misc/futimesat.c (futimesat): Likewise.
7969         * misc/utimes.c (__utimes): Likewise.
7970         * posix/execve.c (__execve): Likewise.
7971         * posix/execvp.c (execvp): Likewise.
7972         * posix/execvpe.c (__execvpe): Likewise.
7973         * posix/fexecve.c (fexecve): Likewise.
7974         * socket/socketpair.c (socketpair): Likewise.
7975         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
7976         * stdlib/erand48.c (erand48): Likewise.
7977         * stdlib/erand48_r.c (__erand48_r): Likewise.
7978         * stdlib/jrand48.c (jrand48): Likewise.
7979         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
7980         * stdlib/lcong48.c (lcong48): Likewise.
7981         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
7982         * stdlib/nrand48.c (nrand48): Likewise.
7983         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
7984         * stdlib/seed48.c (seed48): Likewise.
7985         * stdlib/seed48_r.c (__seed48_r): Likewise.
7986         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
7987         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
7988         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
7989
7990 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
7991
7992         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
7993         * configure: Regenerated.
7994         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
7995         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
7996         unconditional.
7997         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
7998         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
7999         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8000         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
8001         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
8002         unconditional.
8003         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8004
8005         * posix/Makefile (CFLAGS-regex.c): Remove variable.
8006         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
8007
8008         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
8009         function definition.
8010         * crypt/crypt_util.c (__encrypt_r): Likewise.
8011         * libio/genops.c (_IO_no_init): Likewise.
8012         * libio/iofopncook.c (_IO_fopencookie): Likewise.
8013         (_IO_old_fopencookie): Likewise.
8014         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
8015         * libio/iogetline.c (_IO_getline): Likewise.
8016         (_IO_getline_info): Likewise.
8017         * libio/iogetwline.c (_IO_getwline): Likewise.
8018         (_IO_getwline_info): Likewise.
8019         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
8020         * libio/vswprintf.c (_IO_vswprintf): Likewise.
8021         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
8022         (find_entry): Likewise.
8023         (iterate_table): Likewise.
8024         (lookup): Likewise.
8025         * login/forkpty.c (forkpty): Likewise.
8026         * misc/hsearch_r.c (__hsearch_r): Likewise.
8027         * misc/select.c (__select): Likewise.
8028         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
8029         Likewise.
8030         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
8031         Likewise.
8032         * nptl/old_pthread_cond_timedwait.c
8033         (__pthread_cond_timedwait_2_0): Likewise.
8034         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
8035         * nptl/pthread_barrierattr_getpshared.c
8036         (pthread_barrierattr_getpshared): Likewise.
8037         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
8038         Likewise.
8039         * nptl/pthread_mutex_setprioceiling.c
8040         (pthread_mutex_setprioceiling): Likewise.
8041         * nptl/pthread_mutexattr_getprioceiling.c
8042         (pthread_mutexattr_getprioceiling): Likewise.
8043         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
8044         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
8045         Likewise.
8046         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
8047         Likewise.
8048         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
8049         Likewise.
8050         * socket/recvfrom.c (__recvfrom): Likewise.
8051         * socket/sendto.c (__sendto): Likewise.
8052         * socket/setsockopt.c (__setsockopt): Likewise.
8053         * stdio-common/_itoa.c (_itoa): Likewise.
8054         * stdio-common/_itowa.c (_itowa): Likewise.
8055         * stdio-common/reg-printf.c (__register_printf_specifier):
8056         Likewise.
8057         (__register_printf_function): Likewise.
8058         * stdio-common/tempname.c (__path_search): Likewise.
8059         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
8060         * stdlib/mul_1.c (mpn_mul_1): Likewise.
8061         * stdlib/random_r.c (__initstate_r): Likewise.
8062         * stdlib/setenv.c (__add_to_environ): Likewise.
8063         * stdlib/submul_1.c (mpn_submul_1): Likewise.
8064         * streams/getpmsg.c (getpmsg): Likewise.
8065         * streams/putmsg.c (putmsg): Likewise.
8066         * streams/putpmsg.c (putpmsg): Likewise.
8067         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
8068         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
8069         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
8070         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
8071         * sunrpc/pm_getport.c (pmap_getport): Likewise.
8072         * sunrpc/svc_udp.c (cache_get): Likewise.
8073         * sunrpc/xdr_array.c (xdr_vector): Likewise.
8074         * sysdeps/mach/hurd/getcwd.c
8075         (__canonicalize_directory_name_internal): Likewise.
8076         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
8077         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
8078         * sysdeps/mach/hurd/select.c (__select): Likewise.
8079         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
8080         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
8081         * sysdeps/sparc/nptl/pthread_barrier_init.c
8082         (__pthread_barrier_init): Likewise.
8083         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
8084         (__pthread_cond_timedwait): Likewise.
8085         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
8086         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
8087         Likewise.
8088         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
8089         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
8090         Likewise.
8091         * sysvipc/semtimedop.c (semtimedop): Likewise.
8092         * time/setitimer.c (__setitimer): Likewise.
8093         * time/strftime_l.c (emacs_strftime): Likewise.
8094
8095 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8096
8097         * config.make.in (have-ssp): Delete.
8098         (stack-protector): New variable.
8099         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
8100         cache test for -fstack-protector-strong.  Export stack_protector to
8101         the best ssp flag.
8102         * configure: Regenerated.
8103         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
8104         * nscd/Makefile (CFLAGS-nscd): Likewise.
8105         * resolv/Makefile (CFLAGS-libresolv): Likewise.
8106
8107 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
8108
8109         [BZ #19122]
8110         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
8111         attribute_hidden.
8112
8113 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8114
8115         [BZ #18743]
8116         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
8117         code to...
8118         (ELIDE_LOCK): ...here.
8119         (__get_new_count): New function with part of the code from
8120         __elide_lock that updates the value of adapt_count after a
8121         transaction abort.
8122         (__elided_trylock): Moved this code to...
8123         (ELIDE_TRYLOCK): ...here.
8124
8125 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8126
8127         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
8128         * configure: Regenerate.
8129         * INSTALL: Regenerate.
8130         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
8131         and tweak grammar.
8132
8133 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
8134
8135         * login/programs/pt_chown.c: Include signal.h
8136         (main): Clear any signal mask from the parent process.
8137
8138 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8139
8140         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
8141         * configure: Regenerated.
8142         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
8143         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
8144         $(gnu89-inline-CFLAGS).
8145
8146         * configure.ac (libc_cv_asm_weak_directive): Remove configure
8147         test.
8148         (libc_cv_asm_weakext_directive): Likewise.
8149         * configure: Regenerated.
8150         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
8151         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
8152         * include/libc-symbols.h
8153         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
8154         #error.
8155         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
8156         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
8157
8158         * sysdeps/arm/backtrace.c (__backtrace): Convert to
8159         prototype-style function definition.
8160         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
8161         * sysdeps/i386/ffs.c (__ffs): Likewise.
8162         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
8163         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
8164         Likewise.
8165         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8166         Likewise.
8167         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
8168         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
8169         Likewise.
8170         * sysdeps/m68k/ffs.c (__ffs): Likewise.
8171         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
8172         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
8173         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
8174         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
8175         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
8176         * sysdeps/mach/hurd/access.c (__access): Likewise.
8177         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
8178         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
8179         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
8180         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
8181         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
8182         (cthread_getspecific): Likewise.
8183         (cthread_setspecific): Likewise.
8184         (__libc_getspecific): Likewise.
8185         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
8186         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
8187         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
8188         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
8189         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
8190         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
8191         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
8192         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
8193         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
8194         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
8195         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
8196         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
8197         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
8198         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
8199         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
8200         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
8201         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
8202         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
8203         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
8204         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
8205         * sysdeps/mach/hurd/link.c (__link): Likewise.
8206         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
8207         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
8208         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
8209         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
8210         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
8211         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
8212         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
8213         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
8214         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
8215         * sysdeps/mach/hurd/rename.c (rename): Likewise.
8216         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
8217         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
8218         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
8219         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
8220         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
8221         * sysdeps/mach/hurd/send.c (__send): Likewise.
8222         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
8223         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
8224         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
8225         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
8226         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
8227         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
8228         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
8229         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
8230         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
8231         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
8232         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
8233         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
8234         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
8235         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
8236         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
8237         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
8238         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
8239         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
8240         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
8241         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
8242         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
8243         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
8244         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
8245         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
8246         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
8247         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
8248         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
8249         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
8250         * sysdeps/posix/alarm.c (alarm): Likewise.
8251         * sysdeps/posix/cuserid.c (cuserid): Likewise.
8252         * sysdeps/posix/dirfd.c (dirfd): Likewise.
8253         * sysdeps/posix/dup.c (__dup): Likewise.
8254         * sysdeps/posix/dup2.c (__dup2): Likewise.
8255         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
8256         (main): Likewise.
8257         * sysdeps/posix/flock.c (__flock): Likewise.
8258         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
8259         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8260         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
8261         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
8262         * sysdeps/posix/isatty.c (__isatty): Likewise.
8263         * sysdeps/posix/killpg.c (killpg): Likewise.
8264         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
8265         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
8266         * sysdeps/posix/raise.c (raise): Likewise.
8267         * sysdeps/posix/remove.c (remove): Likewise.
8268         * sysdeps/posix/rename.c (rename): Likewise.
8269         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
8270         * sysdeps/posix/seekdir.c (seekdir): Likewise.
8271         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
8272         * sysdeps/posix/sigignore.c (sigignore): Likewise.
8273         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
8274         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
8275         * sysdeps/posix/sigset.c (sigset): Likewise.
8276         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
8277         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
8278         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
8279         * sysdeps/posix/time.c (time): Likewise.
8280         * sysdeps/posix/ttyname.c (getttyname): Likewise.
8281         (ttyname): Likewise.
8282         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
8283         * sysdeps/posix/utime.c (utime): Likewise.
8284         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
8285         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
8286         Likewise.
8287         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
8288         (pthread_spin_trylock): Likewise.
8289         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
8290         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
8291         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
8292         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
8293         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
8294         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
8295         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
8296         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
8297         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
8298         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
8299         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
8300         * sysdeps/s390/ffs.c (__ffs): Likewise.
8301         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
8302         Likewise.
8303         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8304         Likewise.
8305         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
8306         Likewise.
8307         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
8308         (pthread_barrier_destroy): Likewise.
8309         * sysdeps/sparc/nptl/pthread_barrier_wait.c
8310         (__pthread_barrier_wait): Likewise.
8311         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
8312         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
8313         (__pthread_barrier_wait): Likewise.
8314         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
8315         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
8316         (memcmp_not_common_alignment): Likewise.
8317         (MEMCMP): Likewise.
8318         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
8319         (_wordcopy_fwd_dest_aligned): Likewise.
8320         (_wordcopy_bwd_aligned): Likewise.
8321         (_wordcopy_bwd_dest_aligned): Likewise.
8322         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
8323         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
8324         * sysdeps/unix/bsd/stty.c (stty): Likewise.
8325         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
8326         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
8327         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
8328         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
8329         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
8330         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
8331         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
8332         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
8333         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
8334         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
8335         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
8336         * sysdeps/unix/stime.c (stime): Likewise.
8337         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
8338         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
8339         Likewise.  Use internal_function.
8340         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
8341         Convert to prototype-style function definition.
8342         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
8343         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
8344         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
8345         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
8346         Likewise.  Use internal_function.
8347         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
8348         prototype-style function definition
8349         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8350         Likewise.
8351         (__getlogin_r): Likewise.
8352         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
8353         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
8354         (__pthread_cond_broadcast): Likewise.
8355         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
8356         (__pthread_cond_destroy): Likewise.
8357         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
8358         (__pthread_cond_init): Likewise.
8359         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
8360         (__pthread_cond_signal): Likewise.
8361         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
8362         (__pthread_cond_wait): Likewise.
8363         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
8364         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
8365         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
8366         Likewise.
8367         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
8368         Likewise.
8369         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
8370         Likewise.
8371         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
8372         Likewise.
8373         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
8374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
8375         (__ftruncate64): Likewise.
8376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
8377         (truncate64): Likewise.
8378         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
8379         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
8380         (pthread_getcpuclockid): Likewise.
8381         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8382         Likewise.
8383         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8384         Likewise.
8385         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
8386         Likewise.
8387         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
8388         Likewise.
8389         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
8390         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
8391         (__libc_sigaction): Likewise.
8392         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
8393         Likewise.
8394         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
8395         (__sigprocmask): Likewise.
8396         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
8397         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
8398         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
8399         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
8400         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
8401         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
8402         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
8403         Likewise.
8404         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
8405         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
8406         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
8407         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
8408         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
8409         Likewise.
8410         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
8411         (__sigprocmask): Likewise.
8412         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
8413         (cfgetispeed): Likewise.
8414         (cfsetospeed): Likewise.
8415         (cfsetispeed): Likewise.
8416         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
8417         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
8418         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
8419         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
8420         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
8421         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
8422         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
8423         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
8424         Likewise.
8425         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
8426         Likewise.
8427         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
8428         Likewise.
8429         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
8430         Likewise.
8431         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
8432
8433 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8434
8435         sunrpc: Rewrite with explicit TLS access using __thread.
8436         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
8437         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
8438         directly.
8439         (__rpc_thread_variables): Access thread_rpc_vars directly.
8440         Eliminate redundant assignment of the tvp variable.
8441
8442 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8443
8444         malloc: Rewrite with explicit TLS access using __thread.
8445         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
8446         (tsd_setspecific, tsd_getspecific): Remove.
8447         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
8448         (tsd_setspecific, tsd_getspecific): Likewise.
8449         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
8450         (tsd_setspecific, tsd_getspecific): Likewise.
8451         * malloc/arena.c (thread_arena): New TLS variable.
8452         (arena_key): Remove variable.
8453         (arena_get): Use thread_arena.
8454         (arena_lookup): Remove macro.
8455         (malloc_atfork, free_atfork, ptmalloc_lock_all)
8456         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
8457         (_int_new_arena, get_free_list, reused_arena)
8458         (arena_thread_freeres): Use thread_arena.
8459         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
8460         tsd_getspecific, tsd_setspecific from safety annotations.
8461         (Allocating Cleared Space): Remove arena_lookup from safety
8462         annotations.
8463
8464 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8465
8466         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
8467         struct scratch_buffer instead of extend_alloca.
8468
8469 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8470
8471         * sysdeps/unix/sysv/linux/kernel-features.h
8472         (__ASSUME_SOCK_CLOEXEC): Remove.
8473         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
8474         (__have_paccept): Remove unused macro.
8475         * include/unistd.h (__have_sock_cloexec): Remove declaration.
8476         * misc/syslog.c (openlog_internal): Remove fallback code for
8477         !__ASSUME_SOCK_CLOEXEC.
8478         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
8479         missing SOCK_CLOEXEC.
8480         * nscd/connections.c (have_sock_cloexec): Remove definition.
8481         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
8482         * nscd/nscd_helper.c (open_socket): Remove fallback code for
8483         !__ASSUME_SOCK_CLOEXEC.
8484         * resolv/res_send.c (__have_o_nonblock): Remove definition.
8485         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
8486         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
8487         definition.
8488         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
8489         code for !__ASSUME_SOCK_CLOEXEC.
8490
8491 2015-10-17  Florian Weimer  <fweimer@redhat.com>
8492
8493         [BZ #18982]
8494         * manual/stdio.texi (Variable Arguments Output): Add portability
8495         note, explaining that vfprintf clobbers the va_list pointer.
8496
8497 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
8498
8499         * math/libm-test.inc (fabs_test_data): Add more tests.
8500         (fdim_test_data): Likewise.
8501         (fma_test_data): Likewise.
8502         (fmax_test_data): Likewise.
8503         (fmin_test_data): Likewise.
8504         (fmod_test_data): Likewise.
8505
8506 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
8507
8508         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
8509         data.
8510
8511 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
8512
8513         * math/libm-test.inc (ceil_test_data): Add more tests and more
8514         expectations for "inexact".
8515         (floor_test_data): Add more tests.
8516         (round_test_data): Likewise.
8517         (trunc_test_data): Likewise.
8518
8519         * crypt/cert.c (good_bye): Convert to prototype-style function
8520         definition.
8521         (get8): Likewise.
8522         (put8): Likewise.
8523         * crypt/crypt-entry.c (crypt): Likewise.
8524         (__fcrypt): Likewise.
8525         * crypt/crypt_util.c (_ufc_prbits): Likewise.
8526         (_ufc_set_bits): Likewise.
8527         (_ufc_clearmem): Likewise.
8528         (__init_des_r): Likewise.
8529         (shuffle_sb): Likewise.
8530         (shuffle_sb): Likewise.
8531         (_ufc_setup_salt_r): Likewise.
8532         (_ufc_mk_keytab_r): Likewise.
8533         (_ufc_dofinalperm_r): Likewise.
8534         (encrypt): Likewise.
8535         (__setkey_r): Likewise.
8536         (setkey): Likewise.
8537         * crypt/md5.c (md5_init_ctx): Likewise.
8538         (md5_read_ctx): Likewise.
8539         (md5_finish_ctx): Likewise.
8540         (md5_stream): Likewise.
8541         (md5_buffer): Likewise.
8542         (md5_process_bytes): Likewise.
8543         * crypt/sha256.c (__sha256_init_ctx): Likewise.
8544         (__sha256_finish_ctx): Likewise.
8545         (__sha256_process_bytes): Likewise.
8546         * crypt/sha512.c (__sha512_init_ctx): Likewise.
8547         (__sha512_finish_ctx): Likewise.
8548         (__sha512_process_bytes): Likewise.
8549         * ctype/isctype.c (__isctype): Likewise.
8550         * debug/backtrace.c (__backtrace): Likewise.
8551         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
8552         * debug/fgets_chk.c (__fgets_chk): Likewise.
8553         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
8554         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
8555         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
8556         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
8557         * debug/memset_chk.c (__memset_chk): Likewise.
8558         * debug/strcat_chk.c (__strcat_chk): Likewise.
8559         * debug/strncat_chk.c (__strncat_chk): Likewise.
8560         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
8561         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
8562         * dirent/dirfd.c (dirfd): Likewise.
8563         * dirent/getdents.c (__getdirentries): Likewise.
8564         * dirent/getdents64.c (getdirentries64): Likewise.
8565         * dirent/rewinddir.c (__rewinddir): Likewise.
8566         * dirent/seekdir.c (seekdir): Likewise.
8567         * dirent/telldir.c (telldir): Likewise.
8568         * elf/sln.c (makesymlinks): Likewise.
8569         (makesymlink): Likewise.
8570         * gmon/gmon.c (__moncontrol): Likewise.
8571         (__monstartup): Likewise.
8572         (write_hist): Likewise.
8573         (write_call_graph): Likewise.
8574         (write_bb_counts): Likewise.
8575         * grp/setgroups.c (setgroups): Likewise.
8576         * inet/inet_lnaof.c (inet_lnaof): Likewise.
8577         * inet/inet_net.c (inet_network): Likewise.
8578         * inet/inet_netof.c (inet_netof): Likewise.
8579         * inet/rcmd.c (rresvport_af): Likewise.
8580         (rresvport): Likewise.
8581         * io/access.c (__access): Likewise.
8582         * io/chdir.c (__chdir): Likewise.
8583         * io/chmod.c (__chmod): Likewise.
8584         * io/chown.c (__chown): Likewise.
8585         * io/close.c (__close): Likewise.
8586         * io/creat.c (creat): Likewise.
8587         * io/creat64.c (creat64): Likewise.
8588         * io/dup.c (__dup): Likewise.
8589         * io/dup2.c (__dup2): Likewise.
8590         * io/dup3.c (__dup3): Likewise.
8591         * io/euidaccess.c (__euidaccess): Likewise.
8592         * io/faccessat.c (faccessat): Likewise.
8593         * io/fchmod.c (__fchmod): Likewise.
8594         * io/fchmodat.c (fchmodat): Likewise.
8595         * io/fchown.c (__fchown): Likewise.
8596         * io/fchownat.c (fchownat): Likewise.
8597         * io/fcntl.c (__fcntl): Likewise.
8598         * io/flock.c (__flock): Likewise.
8599         * io/fts.c (fts_load): Likewise.
8600         (fts_close): Likewise.
8601         (fts_read): Likewise.
8602         (fts_set): Likewise.
8603         (fts_children): Likewise.
8604         (fts_build): Likewise.
8605         (fts_stat): Likewise.
8606         (fts_sort): Likewise.
8607         (fts_alloc): Likewise.
8608         (fts_lfree): Likewise.
8609         (fts_palloc): Likewise.
8610         (fts_padjust): Likewise.
8611         (fts_maxarglen): Likewise.
8612         (fts_safe_changedir): Likewise.
8613         * io/getwd.c (getwd): Likewise.
8614         * io/isatty.c (__isatty): Likewise.
8615         * io/lchown.c (__lchown): Likewise.
8616         * io/link.c (__link): Likewise.
8617         * io/linkat.c (linkat): Likewise.
8618         * io/lseek.c (__libc_lseek): Likewise.
8619         * io/mkdir.c (__mkdir): Likewise.
8620         * io/mkdirat.c (mkdirat): Likewise.
8621         * io/mkfifo.c (mkfifo): Likewise.
8622         * io/mkfifoat.c (mkfifoat): Likewise.
8623         * io/open.c (__libc_open): Likewise.
8624         * io/open64.c (__libc_open64): Likewise.
8625         * io/readlink.c (__readlink): Likewise.
8626         * io/readlinkat.c (readlinkat): Likewise.
8627         * io/rmdir.c (__rmdir): Likewise.
8628         * io/symlink.c (__symlink): Likewise.
8629         * io/symlinkat.c (symlinkat): Likewise.
8630         * io/ttyname.c (ttyname): Likewise.
8631         * io/ttyname_r.c (__ttyname_r): Likewise.
8632         * io/umask.c (__umask): Likewise.
8633         * io/unlink.c (__unlink): Likewise.
8634         * io/unlinkat.c (unlinkat): Likewise.
8635         * io/utime.c (utime): Likewise.
8636         * libio/clearerr.c (clearerr): Likewise.
8637         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
8638         * libio/feof.c (_IO_feof): Likewise.
8639         * libio/feof_u.c (feof_unlocked): Likewise.
8640         * libio/ferror.c (_IO_ferror): Likewise.
8641         * libio/ferror_u.c (ferror_unlocked): Likewise.
8642         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
8643         * libio/fileno.c (__fileno): Likewise.
8644         * libio/fputc.c (fputc): Likewise.
8645         * libio/fputc_u.c (fputc_unlocked): Likewise.
8646         * libio/fputwc.c (fputwc): Likewise.
8647         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
8648         * libio/freopen.c (freopen): Likewise.
8649         * libio/freopen64.c (freopen64): Likewise.
8650         * libio/fseek.c (fseek): Likewise.
8651         * libio/fseeko.c (fseeko): Likewise.
8652         * libio/fseeko64.c (fseeko64): Likewise.
8653         * libio/ftello.c (__ftello): Likewise.
8654         * libio/ftello64.c (ftello64): Likewise.
8655         * libio/fwide.c (fwide): Likewise.
8656         * libio/genops.c (_IO_un_link): Likewise.
8657         (_IO_link_in): Likewise.
8658         (_IO_least_marker): Likewise.
8659         (_IO_switch_to_main_get_area): Likewise.
8660         (_IO_switch_to_backup_area): Likewise.
8661         (_IO_switch_to_get_mode): Likewise.
8662         (_IO_free_backup_area): Likewise.
8663         (_IO_switch_to_put_mode): Likewise.
8664         (__overflow): Likewise.
8665         (__underflow): Likewise.
8666         (__uflow): Likewise.
8667         (_IO_setb): Likewise.
8668         (_IO_doallocbuf): Likewise.
8669         (_IO_default_underflow): Likewise.
8670         (_IO_default_uflow): Likewise.
8671         (_IO_default_xsputn): Likewise.
8672         (_IO_sgetn): Likewise.
8673         (_IO_default_xsgetn): Likewise.
8674         (_IO_sync): Likewise.
8675         (_IO_default_setbuf): Likewise.
8676         (_IO_default_seekpos): Likewise.
8677         (_IO_default_doallocate): Likewise.
8678         (_IO_init): Likewise.
8679         (_IO_old_init): Likewise.
8680         (_IO_default_sync): Likewise.
8681         (_IO_default_finish): Likewise.
8682         (_IO_default_seekoff): Likewise.
8683         (_IO_sputbackc): Likewise.
8684         (_IO_sungetc): Likewise.
8685         (_IO_set_column): Likewise.
8686         (_IO_set_column): Likewise.
8687         (_IO_adjust_column): Likewise.
8688         (_IO_get_column): Likewise.
8689         (_IO_init_marker): Likewise.
8690         (_IO_remove_marker): Likewise.
8691         (_IO_marker_difference): Likewise.
8692         (_IO_marker_delta): Likewise.
8693         (_IO_seekmark): Likewise.
8694         (_IO_unsave_markers): Likewise.
8695         (_IO_nobackup_pbackfail): Likewise.
8696         (_IO_default_pbackfail): Likewise.
8697         (_IO_default_seek): Likewise.
8698         (_IO_default_stat): Likewise.
8699         (_IO_default_read): Likewise.
8700         (_IO_default_write): Likewise.
8701         (_IO_default_showmanyc): Likewise.
8702         (_IO_default_imbue): Likewise.
8703         (_IO_iter_next): Likewise.
8704         (_IO_iter_file): Likewise.
8705         * libio/getc.c (_IO_getc): Likewise.
8706         * libio/getwc.c (_IO_getwc): Likewise.
8707         * libio/iofclose.c (_IO_new_fclose): Likewise.
8708         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
8709         * libio/iofflush.c (_IO_fflush): Likewise.
8710         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
8711         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
8712         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
8713         * libio/iofgets.c (_IO_fgets): Likewise.
8714         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
8715         * libio/iofgetws.c (fgetws): Likewise.
8716         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
8717         * libio/iofopen64.c (_IO_fopen64): Likewise.
8718         * libio/iofopncook.c (_IO_cookie_read): Likewise.
8719         (_IO_cookie_write): Likewise.
8720         (_IO_cookie_seek): Likewise.
8721         (_IO_cookie_close): Likewise.
8722         (_IO_cookie_seekoff): Likewise.
8723         (_IO_old_cookie_seek): Likewise.
8724         * libio/iofputs.c (_IO_fputs): Likewise.
8725         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
8726         * libio/iofputws.c (fputws): Likewise.
8727         * libio/iofputws_u.c (fputws_unlocked): Likewise.
8728         * libio/iofread.c (_IO_fread): Likewise.
8729         * libio/iofread_u.c (__fread_unlocked): Likewise.
8730         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
8731         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
8732         * libio/ioftell.c (_IO_ftell): Likewise.
8733         * libio/iofwrite.c (_IO_fwrite): Likewise.
8734         * libio/iogetdelim.c (_IO_getdelim): Likewise.
8735         * libio/iogets.c (_IO_gets): Likewise.
8736         * libio/iopadn.c (_IO_padn): Likewise.
8737         * libio/iopopen.c (_IO_new_proc_open): Likewise.
8738         (_IO_new_popen): Likewise.
8739         (_IO_new_proc_close): Likewise.
8740         * libio/ioputs.c (_IO_puts): Likewise.
8741         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
8742         (_IO_seekoff): Likewise.
8743         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
8744         (_IO_seekpos): Likewise.
8745         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
8746         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
8747         * libio/ioungetc.c (_IO_ungetc): Likewise.
8748         * libio/ioungetwc.c (ungetwc): Likewise.
8749         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
8750         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
8751         * libio/iowpadn.c (_IO_wpadn): Likewise.
8752         * libio/libc_fatal.c (__libc_fatal): Likewise.
8753         * libio/memstream.c (__open_memstream): Likewise.
8754         (_IO_mem_sync): Likewise.
8755         (_IO_mem_finish): Likewise.
8756         * libio/oldfileops.c (_IO_old_file_init): Likewise.
8757         (_IO_old_file_close_it): Likewise.
8758         (_IO_old_file_finish): Likewise.
8759         (_IO_old_file_fopen): Likewise.
8760         (_IO_old_file_attach): Likewise.
8761         (_IO_old_file_setbuf): Likewise.
8762         (_IO_old_do_write): Likewise.
8763         (old_do_write): Likewise.
8764         (_IO_old_file_underflow): Likewise.
8765         (_IO_old_file_overflow): Likewise.
8766         (_IO_old_file_sync): Likewise.
8767         (_IO_old_file_seekoff): Likewise.
8768         (_IO_old_file_write): Likewise.
8769         (_IO_old_file_xsputn): Likewise.
8770         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
8771         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
8772         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
8773         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
8774         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
8775         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
8776         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
8777         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
8778         (_IO_old_popen): Likewise.
8779         (_IO_old_proc_close): Likewise.
8780         * libio/oldpclose.c (__old_pclose): Likewise.
8781         * libio/pclose.c (__new_pclose): Likewise.
8782         * libio/peekc.c (_IO_peekc_locked): Likewise.
8783         * libio/putc.c (_IO_putc): Likewise.
8784         * libio/putc_u.c (putc_unlocked): Likewise.
8785         * libio/putchar.c (putchar): Likewise.
8786         * libio/putchar_u.c (putchar_unlocked): Likewise.
8787         * libio/putwc.c (putwc): Likewise.
8788         * libio/putwc_u.c (putwc_unlocked): Likewise.
8789         * libio/putwchar.c (putwchar): Likewise.
8790         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
8791         * libio/rewind.c (rewind): Likewise.
8792         * libio/setbuf.c (setbuf): Likewise.
8793         * libio/setlinebuf.c (setlinebuf): Likewise.
8794         * libio/vasprintf.c (_IO_vasprintf): Likewise.
8795         * libio/vscanf.c (_IO_vscanf): Likewise.
8796         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
8797         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
8798         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
8799         * libio/wgenops.c (_IO_least_wmarker): Likewise.
8800         (_IO_switch_to_main_wget_area): Likewise.
8801         (_IO_switch_to_wbackup_area): Likewise.
8802         (_IO_wsetb): Likewise.
8803         (_IO_wdefault_pbackfail): Likewise.
8804         (_IO_wdefault_finish): Likewise.
8805         (_IO_wdefault_uflow): Likewise.
8806         (__woverflow): Likewise.
8807         (__wuflow): Likewise.
8808         (__wunderflow): Likewise.
8809         (_IO_wdefault_xsputn): Likewise.
8810         (_IO_wdefault_xsgetn): Likewise.
8811         (_IO_wdoallocbuf): Likewise.
8812         (_IO_wdefault_doallocate): Likewise.
8813         (_IO_switch_to_wget_mode): Likewise.
8814         (_IO_free_wbackup_area): Likewise.
8815         (_IO_switch_to_wput_mode): Likewise.
8816         (_IO_sputbackwc): Likewise.
8817         (_IO_sungetwc): Likewise.
8818         (_IO_adjust_wcolumn): Likewise.
8819         (_IO_init_wmarker): Likewise.
8820         (_IO_wmarker_delta): Likewise.
8821         (_IO_seekwmark): Likewise.
8822         (_IO_unsave_wmarkers): Likewise.
8823         * libio/wmemstream.c (open_wmemstream): Likewise.
8824         (_IO_wmem_sync): Likewise.
8825         (_IO_wmem_finish): Likewise.
8826         * locale/nl_langinfo.c (nl_langinfo): Likewise.
8827         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
8828         * locale/programs/simple-hash.c (init_hash): Likewise.
8829         (delete_hash): Likewise.
8830         (insert_entry): Likewise.
8831         (set_entry): Likewise.
8832         (next_prime): Likewise.
8833         (is_prime): Likewise.
8834         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
8835         (xmalloc): Likewise.
8836         (xrealloc): Likewise.
8837         * locale/programs/xstrdup.c (xstrdup): Likewise.
8838         * localedata/collate-test.c (xstrcoll): Likewise.
8839         * localedata/xfrm-test.c (xstrcmp): Likewise.
8840         * login/getlogin_r.c (__getlogin_r): Likewise.
8841         * login/getpt.c (__posix_openpt): Likewise.
8842         * login/login_tty.c (login_tty): Likewise.
8843         * login/setlogin.c (setlogin): Likewise.
8844         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
8845         (mach_msg_destroy_port): Likewise.
8846         (mach_msg_destroy_memory): Likewise.
8847         * malloc/mcheck.c (flood): Likewise.
8848         * misc/acct.c (acct): Likewise.
8849         * misc/brk.c (__brk): Likewise.
8850         * misc/chflags.c (chflags): Likewise.
8851         * misc/chroot.c (chroot): Likewise.
8852         * misc/fchflags.c (fchflags): Likewise.
8853         * misc/fstab.c (getfsspec): Likewise.
8854         (getfsfile): Likewise.
8855         * misc/fsync.c (fsync): Likewise.
8856         * misc/ftruncate.c (__ftruncate): Likewise.
8857         * misc/ftruncate64.c (__ftruncate64): Likewise.
8858         * misc/getdomain.c (getdomainname): Likewise.
8859         (getdomainname): Likewise.
8860         * misc/gethostname.c (__gethostname): Likewise.
8861         * misc/getpass.c (getpass): Likewise.
8862         * misc/getttyent.c (skip): Likewise.
8863         (value): Likewise.
8864         * misc/gtty.c (gtty): Likewise.
8865         * misc/hsearch.c (hsearch): Likewise.
8866         (hcreate): Likewise.
8867         * misc/hsearch_r.c (__hcreate_r): Likewise.
8868         (__hdestroy_r): Likewise.
8869         * misc/ioctl.c (__ioctl): Likewise.
8870         * misc/mkdtemp.c (mkdtemp): Likewise.
8871         * misc/mkostemp.c (mkostemp): Likewise.
8872         * misc/mkostemp64.c (mkostemp64): Likewise.
8873         * misc/mkostemps.c (mkostemps): Likewise.
8874         * misc/mkostemps64.c (mkostemps64): Likewise.
8875         * misc/mkstemp.c (mkstemp): Likewise.
8876         * misc/mkstemp64.c (mkstemp64): Likewise.
8877         * misc/mkstemps.c (mkstemps): Likewise.
8878         * misc/mkstemps64.c (mkstemps64): Likewise.
8879         * misc/mktemp.c (__mktemp): Likewise.
8880         * misc/preadv.c (preadv): Likewise.
8881         * misc/preadv64.c (preadv64): Likewise.
8882         * misc/pwritev.c (pwritev): Likewise.
8883         * misc/pwritev64.c (pwritev64): Likewise.
8884         * misc/readv.c (__readv): Likewise.
8885         * misc/revoke.c (revoke): Likewise.
8886         * misc/setdomain.c (setdomainname): Likewise.
8887         * misc/setegid.c (setegid): Likewise.
8888         * misc/seteuid.c (seteuid): Likewise.
8889         * misc/sethostid.c (sethostid): Likewise.
8890         * misc/sethostname.c (sethostname): Likewise.
8891         * misc/setregid.c (__setregid): Likewise.
8892         * misc/setreuid.c (__setreuid): Likewise.
8893         * misc/sstk.c (sstk): Likewise.
8894         * misc/stty.c (stty): Likewise.
8895         * misc/syscall.c (syscall): Likewise.
8896         * misc/syslog.c (setlogmask): Likewise.
8897         * misc/truncate.c (__truncate): Likewise.
8898         * misc/truncate64.c (truncate64): Likewise.
8899         * misc/ualarm.c (ualarm): Likewise.
8900         * misc/usleep.c (usleep): Likewise.
8901         * misc/ustat.c (ustat): Likewise.
8902         * misc/writev.c (__writev): Likewise.
8903         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
8904         * nptl/old_pthread_cond_broadcast.c
8905         (__pthread_cond_broadcast_2_0): Likewise.
8906         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
8907         Likewise.
8908         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
8909         Likewise.
8910         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
8911         Likewise.
8912         * nptl/pt-raise.c (raise): Likewise.
8913         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
8914         Likewise.
8915         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
8916         * nptl/pthread_barrierattr_destroy.c
8917         (pthread_barrierattr_destroy): Likewise.
8918         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
8919         Likewise.
8920         * nptl/pthread_barrierattr_setpshared.c
8921         (pthread_barrierattr_setpshared): Likewise.
8922         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
8923         Likewise.
8924         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
8925         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
8926         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
8927         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
8928         Likewise.
8929         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
8930         Likewise.
8931         * nptl/pthread_condattr_getpshared.c
8932         (pthread_condattr_getpshared): Likewise.
8933         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
8934         Likewise.
8935         * nptl/pthread_condattr_setpshared.c
8936         (pthread_condattr_setpshared): Likewise.
8937         * nptl/pthread_detach.c (pthread_detach): Likewise.
8938         * nptl/pthread_equal.c (__pthread_equal): Likewise.
8939         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
8940         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
8941         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
8942         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
8943         Likewise.
8944         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
8945         Likewise.
8946         * nptl/pthread_mutex_getprioceiling.c
8947         (pthread_mutex_getprioceiling): Likewise.
8948         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
8949         Likewise.
8950         * nptl/pthread_mutexattr_getprotocol.c
8951         (pthread_mutexattr_getprotocol): Likewise.
8952         * nptl/pthread_mutexattr_getpshared.c
8953         (pthread_mutexattr_getpshared): Likewise.
8954         * nptl/pthread_mutexattr_getrobust.c
8955         (pthread_mutexattr_getrobust): Likewise.
8956         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
8957         Likewise.
8958         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
8959         Likewise.
8960         * nptl/pthread_mutexattr_setprioceiling.c
8961         (pthread_mutexattr_setprioceiling): Likewise.
8962         * nptl/pthread_mutexattr_setprotocol.c
8963         (pthread_mutexattr_setprotocol): Likewise.
8964         * nptl/pthread_mutexattr_setpshared.c
8965         (pthread_mutexattr_setpshared): Likewise.
8966         * nptl/pthread_mutexattr_setrobust.c
8967         (pthread_mutexattr_setrobust): Likewise.
8968         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
8969         Likewise.
8970         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
8971         Likewise.
8972         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
8973         Likewise.
8974         * nptl/pthread_rwlockattr_getkind_np.c
8975         (pthread_rwlockattr_getkind_np): Likewise.
8976         * nptl/pthread_rwlockattr_getpshared.c
8977         (pthread_rwlockattr_getpshared): Likewise.
8978         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
8979         Likewise.
8980         * nptl/pthread_rwlockattr_setkind_np.c
8981         (pthread_rwlockattr_setkind_np): Likewise.
8982         * nptl/pthread_rwlockattr_setpshared.c
8983         (pthread_rwlockattr_setpshared): Likewise.
8984         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
8985         Likewise.
8986         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
8987         Likewise.
8988         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
8989         Likewise.
8990         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
8991         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
8992         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
8993         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
8994         * nptl/sem_close.c (sem_close): Likewise.
8995         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
8996         * nptl/sem_init.c (__old_sem_init): Likewise.
8997         * nptl/sigaction.c (__sigaction): Likewise.
8998         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
8999         * posix/_exit.c (_exit): Likewise.
9000         * posix/alarm.c (alarm): Likewise.
9001         * posix/confstr.c (confstr): Likewise.
9002         * posix/fpathconf.c (__fpathconf): Likewise.
9003         * posix/getgroups.c (__getgroups): Likewise.
9004         * posix/getpgid.c (__getpgid): Likewise.
9005         * posix/group_member.c (__group_member): Likewise.
9006         * posix/pathconf.c (__pathconf): Likewise.
9007         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
9008         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
9009         * posix/setgid.c (__setgid): Likewise.
9010         * posix/setpgid.c (__setpgid): Likewise.
9011         * posix/setuid.c (__setuid): Likewise.
9012         * posix/sleep.c (__sleep): Likewise.
9013         * posix/sysconf.c (__sysconf): Likewise.
9014         * posix/times.c (__times): Likewise.
9015         * posix/uname.c (__uname): Likewise.
9016         * posix/waitid.c (__waitid): Likewise.
9017         * pwd/getpw.c (__getpw): Likewise.
9018         * resolv/base64.c (b64_pton): Likewise.
9019         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
9020         * resolv/gethnamaddr.c (Dprintf): Likewise.
9021         (gethostbyname): Likewise.
9022         (gethostbyname2): Likewise.
9023         (gethostbyaddr): Likewise.
9024         (_sethtent): Likewise.
9025         (_gethtbyname): Likewise.
9026         (_gethtbyname2): Likewise.
9027         (_gethtbyaddr): Likewise.
9028         (map_v4v6_address): Likewise.
9029         (map_v4v6_hostent): Likewise.
9030         (addrsort): Likewise.
9031         (ht_sethostent): Likewise.
9032         (ht_gethostbyname): Likewise.
9033         (ht_gethostbyaddr): Likewise.
9034         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
9035         (inet_net_ntop_ipv4): Likewise.
9036         * resolv/inet_neta.c (inet_neta): Likewise.
9037         * resolv/inet_ntop.c (inet_ntop): Likewise.
9038         (inet_ntop4): Likewise.
9039         (inet_ntop6): Likewise.
9040         * resolv/inet_pton.c (__inet_pton): Likewise.
9041         (inet_pton4): Likewise.
9042         (inet_pton6): Likewise.
9043         * resolv/res_debug.c (loc_aton): Likewise.
9044         (loc_ntoa): Likewise.
9045         * resource/getpriority.c (__getpriority): Likewise.
9046         * resource/getrusage.c (__getrusage): Likewise.
9047         * resource/nice.c (nice): Likewise.
9048         * resource/setpriority.c (__setpriority): Likewise.
9049         * resource/setrlimit64.c (setrlimit64): Likewise.
9050         * resource/vlimit.c (vlimit): Likewise.
9051         * resource/vtimes.c (vtimes): Likewise.
9052         * rt/aio_error.c (aio_error): Likewise.
9053         * rt/aio_return.c (aio_return): Likewise.
9054         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
9055         * signal/kill.c (__kill): Likewise.
9056         * signal/killpg.c (killpg): Likewise.
9057         * signal/raise.c (raise): Likewise.
9058         * signal/sigaction.c (__sigaction): Likewise.
9059         * signal/sigaddset.c (sigaddset): Likewise.
9060         * signal/sigaltstack.c (sigaltstack): Likewise.
9061         * signal/sigandset.c (sigandset): Likewise.
9062         * signal/sigblock.c (__sigblock): Likewise.
9063         * signal/sigdelset.c (sigdelset): Likewise.
9064         * signal/sigempty.c (sigemptyset): Likewise.
9065         * signal/sigfillset.c (sigfillset): Likewise.
9066         * signal/sighold.c (sighold): Likewise.
9067         * signal/sigignore.c (sigignore): Likewise.
9068         * signal/sigintr.c (siginterrupt): Likewise.
9069         * signal/sigisempty.c (sigisemptyset): Likewise.
9070         * signal/sigismem.c (sigismember): Likewise.
9071         * signal/signal.c (signal): Likewise.
9072         * signal/sigorset.c (sigorset): Likewise.
9073         * signal/sigpause.c (__sigpause): Likewise.
9074         * signal/sigpending.c (sigpending): Likewise.
9075         * signal/sigprocmask.c (__sigprocmask): Likewise.
9076         * signal/sigrelse.c (sigrelse): Likewise.
9077         * signal/sigreturn.c (__sigreturn): Likewise.
9078         * signal/sigset.c (sigset): Likewise.
9079         * signal/sigsetmask.c (__sigsetmask): Likewise.
9080         * signal/sigstack.c (sigstack): Likewise.
9081         * signal/sigsuspend.c (__sigsuspend): Likewise.
9082         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
9083         * signal/sysv_signal.c (__sysv_signal): Likewise.
9084         * socket/accept.c (accept): Likewise.
9085         * socket/accept4.c (__libc_accept4): Likewise.
9086         * socket/bind.c (__bind): Likewise.
9087         * socket/connect.c (__connect): Likewise.
9088         * socket/getpeername.c (getpeername): Likewise.
9089         * socket/getsockname.c (__getsockname): Likewise.
9090         * socket/getsockopt.c (getsockopt): Likewise.
9091         * socket/listen.c (__listen): Likewise.
9092         * socket/recv.c (__recv): Likewise.
9093         * socket/recvmsg.c (__recvmsg): Likewise.
9094         * socket/send.c (__send): Likewise.
9095         * socket/sendmsg.c (__sendmsg): Likewise.
9096         * socket/shutdown.c (shutdown): Likewise.
9097         * socket/sockatmark.c (sockatmark): Likewise.
9098         * socket/socket.c (__socket): Likewise.
9099         * stdio-common/ctermid.c (ctermid): Likewise.
9100         * stdio-common/cuserid.c (cuserid): Likewise.
9101         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
9102         * stdio-common/remove.c (remove): Likewise.
9103         * stdio-common/rename.c (rename): Likewise.
9104         * stdio-common/renameat.c (renameat): Likewise.
9105         * stdio-common/tempname.c (__gen_tempname): Likewise.
9106         * stdio-common/xbug.c (InitBuffer): Likewise.
9107         (AppendToBuffer): Likewise.
9108         (ReadFile): Likewise.
9109         * stdlib/a64l.c (a64l): Likewise.
9110         * stdlib/drand48_r.c (drand48_r): Likewise.
9111         * stdlib/getcontext.c (getcontext): Likewise.
9112         * stdlib/getenv.c (getenv): Likewise.
9113         * stdlib/l64a.c (l64a): Likewise.
9114         * stdlib/llabs.c (llabs): Likewise.
9115         * stdlib/lldiv.c (lldiv): Likewise.
9116         * stdlib/lrand48_r.c (lrand48_r): Likewise.
9117         * stdlib/mrand48_r.c (mrand48_r): Likewise.
9118         * stdlib/putenv.c (putenv): Likewise.
9119         * stdlib/random.c (__srandom): Likewise.
9120         (__initstate): Likewise.
9121         (__setstate): Likewise.
9122         * stdlib/random_r.c (__srandom_r): Likewise.
9123         (__setstate_r): Likewise.
9124         (__random_r): Likewise.
9125         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
9126         * stdlib/setcontext.c (setcontext): Likewise.
9127         * stdlib/setenv.c (setenv): Likewise.
9128         (unsetenv): Likewise.
9129         * stdlib/srand48.c (srand48): Likewise.
9130         * stdlib/srand48_r.c (__srand48_r): Likewise.
9131         * stdlib/swapcontext.c (swapcontext): Likewise.
9132         * stdlib/system.c (__libc_system): Likewise.
9133         * stdlib/tst-strtod.c (expand): Likewise.
9134         * stdlib/tst-strtol.c (expand): Likewise.
9135         * stdlib/tst-strtoll.c (expand): Likewise.
9136         * streams/fattach.c (fattach): Likewise.
9137         * streams/fdetach.c (fdetach): Likewise.
9138         * streams/getmsg.c (getmsg): Likewise.
9139         * streams/isastream.c (isastream): Likewise.
9140         * string/ffs.c (__ffs): Likewise.
9141         * string/ffsll.c (ffsll): Likewise.
9142         * string/memcmp.c (memcmp_common_alignment): Likewise.
9143         (memcmp_not_common_alignment): Likewise.
9144         (MEMCMP): Likewise.
9145         * string/memcpy.c (memcpy): Likewise.
9146         * string/memmove.c (MEMMOVE): Likewise.
9147         * string/memset.c (memset): Likewise.
9148         * string/rawmemchr.c (RAWMEMCHR): Likewise.
9149         * string/strchrnul.c (STRCHRNUL): Likewise.
9150         * string/strerror.c (strerror): Likewise.
9151         * string/strndup.c (__strndup): Likewise.
9152         * string/strverscmp.c (__strverscmp): Likewise.
9153         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
9154         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
9155         (clnttcp_freeres): Likewise.
9156         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
9157         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
9158         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
9159         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
9160         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
9161         (xdr_callhdr): Likewise.
9162         * sunrpc/rpcinfo.c (udpping): Likewise.
9163         (tcpping): Likewise.
9164         (pstatus): Likewise.
9165         (pmapdump): Likewise.
9166         (brdcst): Likewise.
9167         (deletereg): Likewise.
9168         (getprognum): Likewise.
9169         (getvers): Likewise.
9170         (get_inet_address): Likewise.
9171         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
9172         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9173         (svcudp_stat): Likewise.
9174         (svcudp_recv): Likewise.
9175         (svcudp_reply): Likewise.
9176         (svcudp_getargs): Likewise.
9177         (svcudp_freeargs): Likewise.
9178         (svcudp_destroy): Likewise.
9179         * sunrpc/xdr.c (xdr_bytes): Likewise.
9180         (xdr_netobj): Likewise.
9181         (xdr_string): Likewise.
9182         (xdr_wrapstring): Likewise.
9183         * sunrpc/xdr_float.c (xdr_float): Likewise.
9184         (xdr_double): Likewise.
9185         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
9186         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
9187         * sysvipc/ftok.c (ftok): Likewise.
9188         * sysvipc/msgctl.c (msgctl): Likewise.
9189         * sysvipc/msgget.c (msgget): Likewise.
9190         * sysvipc/msgrcv.c (msgrcv): Likewise.
9191         * sysvipc/msgsnd.c (msgsnd): Likewise.
9192         * sysvipc/semget.c (semget): Likewise.
9193         * sysvipc/semop.c (semop): Likewise.
9194         * sysvipc/shmat.c (shmat): Likewise.
9195         * sysvipc/shmctl.c (shmctl): Likewise.
9196         * sysvipc/shmdt.c (shmdt): Likewise.
9197         * sysvipc/shmget.c (shmget): Likewise.
9198         * termios/cfmakeraw.c (cfmakeraw): Likewise.
9199         * termios/speed.c (cfgetospeed): Likewise.
9200         (cfgetispeed): Likewise.
9201         (cfsetospeed): Likewise.
9202         (cfsetispeed): Likewise.
9203         * termios/tcflow.c (tcflow): Likewise.
9204         * termios/tcflush.c (tcflush): Likewise.
9205         * termios/tcgetattr.c (__tcgetattr): Likewise.
9206         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
9207         * termios/tcgetsid.c (tcgetsid): Likewise.
9208         * termios/tcsendbrk.c (tcsendbreak): Likewise.
9209         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
9210         * time/adjtime.c (__adjtime): Likewise.
9211         * time/dysize.c (dysize): Likewise.
9212         * time/ftime.c (ftime): Likewise.
9213         * time/getitimer.c (__getitimer): Likewise.
9214         * time/gettimeofday.c (__gettimeofday): Likewise.
9215         * time/gmtime.c (__gmtime_r): Likewise.
9216         (gmtime): Likewise.
9217         * time/localtime.c (__localtime_r): Likewise.
9218         (localtime): Likewise.
9219         * time/offtime.c (__offtime): Likewise.
9220         * time/settimeofday.c (__settimeofday): Likewise.
9221         * time/stime.c (stime): Likewise.
9222         * time/strftime_l.c (tm_diff): Likewise.
9223         (iso_week_days): Likewise.
9224         * time/strptime.c (strptime): Likewise.
9225         * time/time.c (time): Likewise.
9226         * time/timespec_get.c (timespec_get): Likewise.
9227         * time/tzset.c (tzset_internal): Likewise.
9228         (compute_change): Likewise.
9229         (__tz_compute): Likewise.
9230         * wcsmbs/btowc.c (__btowc): Likewise.
9231         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
9232         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
9233         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
9234         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
9235         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
9236         * wcsmbs/wcscat.c (__wcscat): Likewise.
9237         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
9238         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
9239         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
9240         * wcsmbs/wcscspn.c (wcscspn): Likewise.
9241         * wcsmbs/wcsdup.c (wcsdup): Likewise.
9242         * wcsmbs/wcslen.c (__wcslen): Likewise.
9243         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
9244         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
9245         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
9246         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
9247         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
9248         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
9249         * wcsmbs/wcsspn.c (wcsspn): Likewise.
9250         * wcsmbs/wcsstr.c (wcsstr): Likewise.
9251         * wcsmbs/wcstok.c (wcstok): Likewise.
9252         * wcsmbs/wctob.c (wctob): Likewise.
9253         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
9254         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
9255         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
9256         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
9257         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
9258         * wcsmbs/wmemset.c (__wmemset): Likewise.
9259         * wctype/wcfuncs.c (__towlower): Likewise.
9260         (__towupper): Likewise.
9261
9262         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
9263         (lll_unlock_elision): Add adapt_count parameter.
9264
9265 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9266
9267         * sysdeps/nptl/configure.ac: Do not give errors based on the
9268         results of top-level configure tests.
9269         * sysdeps/nptl/configure: Regenerated.
9270
9271         * configure.ac (libc_cv_Bgroup): Remove configure test.
9272         * configure: Regenerated.
9273         * config.make.in (have-Bgroup): Remove variable.
9274
9275         * configure.ac (sizeof_long_double): Remove configure test.
9276         * configure: Regenerated.
9277         * config.make.in (sizeof-long-double): Remove variable.
9278
9279         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
9280         * configure: Regenerated.
9281         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
9282         variable.
9283         (exceptions): Likewise.
9284         * sysdeps/arm/configure: Regenerated.
9285         * config.make.in (exceptions): Remove variable.
9286         * Makeconfig (uses-callbacks): Use -fexceptions instead of
9287         $(exceptions).
9288         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
9289         (CFLAGS-vdprintf_chk.c): Likewise.
9290         (CFLAGS-printf_chk.c): Likewise.
9291         (CFLAGS-fprintf_chk.c): Likewise.
9292         (CFLAGS-vprintf_chk.c): Likewise.
9293         (CFLAGS-vfprintf_chk.c): Likewise.
9294         (CFLAGS-gets_chk.c): Likewise.
9295         (CFLAGS-fgets_chk.c): Likewise.
9296         (CFLAGS-fgets_u_chk.c): Likewise.
9297         (CFLAGS-fread_chk.c): Likewise.
9298         (CFLAGS-fread_u_chk.c): Likewise.
9299         (CFLAGS-wprintf_chk.c): Likewise.
9300         (CFLAGS-fwprintf_chk.c): Likewise.
9301         (CFLAGS-vwprintf_chk.c): Likewise.
9302         (CFLAGS-vfwprintf_chk.c): Likewise.
9303         (CFLAGS-fgetws_chk.c): Likewise.
9304         (CFLAGS-fgetws_u_chk.c): Likewise.
9305         * libio/Makefile (CFLAGS-fileops.c): Likewise.
9306         (CFLAGS-fputc.c): Likewise.
9307         (CFLAGS-fputwc.c): Likewise.
9308         (CFLAGS-freopen64.c): Likewise.
9309         (CFLAGS-freopen.c): Likewise.
9310         (CFLAGS-fseek.c): Likewise.
9311         (CFLAGS-fseeko64.c): Likewise.
9312         (CFLAGS-fseeko.c): Likewise.
9313         (CFLAGS-ftello64.c): Likewise.
9314         (CFLAGS-ftello.c): Likewise.
9315         (CFLAGS-fwide.c): Likewise.
9316         (CFLAGS-genops.c): Likewise.
9317         (CFLAGS-getc.c): Likewise.
9318         (CFLAGS-getchar.c): Likewise.
9319         (CFLAGS-getwc.c): Likewise.
9320         (CFLAGS-getwchar.c): Likewise.
9321         (CFLAGS-iofclose.c): Likewise.
9322         (CFLAGS-iofflush.c): Likewise.
9323         (CFLAGS-iofgetpos64.c): Likewise.
9324         (CFLAGS-iofgetpos.c): Likewise.
9325         (CFLAGS-iofgets.c): Likewise.
9326         (CFLAGS-iofgetws.c): Likewise.
9327         (CFLAGS-iofputs.c): Likewise.
9328         (CFLAGS-iofputws.c): Likewise.
9329         (CFLAGS-iofread.c): Likewise.
9330         (CFLAGS-iofsetpos64.c): Likewise.
9331         (CFLAGS-iofsetpos.c): Likewise.
9332         (CFLAGS-ioftell.c): Likewise.
9333         (CFLAGS-iofwrite.c): Likewise.
9334         (CFLAGS-iogetdelim.c): Likewise.
9335         (CFLAGS-iogetline.c): Likewise.
9336         (CFLAGS-iogets.c): Likewise.
9337         (CFLAGS-iogetwline.c): Likewise.
9338         (CFLAGS-ioputs.c): Likewise.
9339         (CFLAGS-ioseekoff.c): Likewise.
9340         (CFLAGS-ioseekpos.c): Likewise.
9341         (CFLAGS-iosetbuffer.c): Likewise.
9342         (CFLAGS-iosetvbuf.c): Likewise.
9343         (CFLAGS-ioungetc.c): Likewise.
9344         (CFLAGS-ioungetwc.c): Likewise.
9345         (CFLAGS-oldfileops.c): Likewise.
9346         (CFLAGS-oldiofclose.c): Likewise.
9347         (CFLAGS-oldiofgetpos64.c): Likewise.
9348         (CFLAGS-oldiofgetpos.c): Likewise.
9349         (CFLAGS-oldiofsetpos64.c): Likewise.
9350         (CFLAGS-oldiofsetpos.c): Likewise.
9351         (CFLAGS-peekc.c): Likewise.
9352         (CFLAGS-putc.c): Likewise.
9353         (CFLAGS-putchar.c): Likewise.
9354         (CFLAGS-putwc.c): Likewise.
9355         (CFLAGS-putwchar.c): Likewise.
9356         (CFLAGS-rewind.c): Likewise.
9357         (CFLAGS-wfileops.c): Likewise.
9358         (CFLAGS-wgenops.c): Likewise.
9359         (CFLAGS-oldiofopen.c): Likewise.
9360         (CFLAGS-iofopen.c): Likewise.
9361         (CFLAGS-iofopen64.c): Likewise.
9362         (CFLAGS-oldtmpfile.c): Likewise.
9363         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
9364         (CFLAGS-fprintf.c): Likewise.
9365         (CFLAGS-printf.c): Likewise.
9366         (CFLAGS-vfwprintf.c): Likewise.
9367         (CFLAGS-vfscanf.c): Likewise.
9368         (CFLAGS-vfwscanf.c): Likewise.
9369         (CFLAGS-fscanf.c): Likewise.
9370         (CFLAGS-scanf.c): Likewise.
9371         (CFLAGS-isoc99_vfscanf.c): Likewise.
9372         (CFLAGS-isoc99_vscanf.c): Likewise.
9373         (CFLAGS-isoc99_fscanf.c): Likewise.
9374         (CFLAGS-isoc99_scanf.c): Likewise.
9375         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
9376         (CFLAGS-isoc99_fwscanf.c): Likewise.
9377         (CFLAGS-isoc99_vwscanf.c): Likewise.
9378         (CFLAGS-isoc99_vfwscanf.c): Likewise.
9379
9380         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
9381         after mkstemp64.
9382         * login/tst-utmp.c (do_prepare): Likewise.
9383         * rt/tst-aio.c (do_prepare): Likewise.
9384         * rt/tst-aio64.c (do_prepare): Likewise.
9385
9386 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9387
9388         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
9389         (__lll_lock_elision): Remove adapt_count decrement...
9390         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
9391         (__lll_trylock_elision): Likewise.
9392         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
9393         (__lll_unlock_elision): ... to here. And utilize
9394         new adapt_count parameter.
9395         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9396         (__lll_unlock_elision): Update to include adapt_count
9397         parameter.
9398         (lll_unlock_elision): Pass pointer to adapt_count
9399         variable.
9400
9401 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9402
9403         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
9404         Add elision adapt_count parameter to list of arguments.
9405         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
9406         (lll_unlock_elision): Update with new parameter list
9407         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
9408         (lll_unlock_elision): Likewise.
9409         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
9410         (lll_unlock_elision): Likewise.
9411
9412 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9413
9414         [BZ #19122]
9415         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
9416         attribute_hidden.
9417
9418         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
9419         attribute_hidden.
9420         [IS_IN (rtld)] (__strdup): Likewise.
9421         [IS_IN (rtld)] (__strerror_r): Likewise.
9422         [IS_IN (rtld)] (__strsep_g): Likewise.
9423         [IS_IN (rtld)] (memchr): Likewise.
9424         [IS_IN (rtld)] (memcmp): Likewise.
9425         [IS_IN (rtld)] (memcpy): Likewise.
9426         [IS_IN (rtld)] (memmove): Likewise.
9427         [IS_IN (rtld)] (memset): Likewise.
9428         [IS_IN (rtld)] (rawmemchr): Likewise.
9429         [IS_IN (rtld)] (stpcpy): Likewise.
9430         [IS_IN (rtld)] (strchr): Likewise.
9431         [IS_IN (rtld)] (strcmp): Likewise.
9432         [IS_IN (rtld)] (strlen): Likewise.
9433         [IS_IN (rtld)] (strnlen): Likewise.
9434         [IS_IN (rtld)] (strsep): Likewise.
9435
9436         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
9437         attribute_hidden.
9438         [IS_IN (rtld)] (__strtoul_internal): Likewise.
9439
9440         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
9441         attribute_hidden.
9442         [IS_IN (rtld)] (__libc_sigaction): Likewise.
9443
9444         * include/setjmp.h (__longjmp): Add attribute_hidden.
9445         [IS_IN (rtld)] (__sigsetjmp): Likewise.
9446
9447         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
9448         Add attribute_hidden.
9449
9450         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
9451         [IS_IN (rtld)] (__open): Likewise.
9452         [IS_IN (rtld)] (__fcntl): Likewise.
9453
9454         * include/dirent.h (__opendirat): Add attribute_hidden.
9455         (__getdents): Likewise.
9456         (__getdents64): Likewise.
9457         (__alloc_dir): Likewise.
9458         [IS_IN (rtld)] (__closedir): Likewise.
9459         [IS_IN (rtld)] (__fdopendir): Likewise.
9460         [IS_IN (rtld)] (__readdir): Likewise.
9461         [IS_IN (rtld)] (__readdir64): Likewise.
9462         [IS_IN (rtld)] (__rewinddir): Likewise.
9463
9464         * include/dlfcn.h (_dl_catch_error): Moved to ...
9465         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
9466         attribute_hidden.
9467
9468         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
9469         (_itoa_word): Likewise.
9470
9471         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
9472         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
9473         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
9474         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
9475         (_dl_higher_prime_number): Likewise.
9476         (_dl_debug_printf_c): Likewise.
9477         (_dl_signal_cerror): Likewise.
9478         (_dl_receive_error): Likewise.
9479         (_dl_reloc_bad_type): Likewise.
9480         (_dl_resolve_conflicts): Likewise.
9481         (_dl_check_all_versions): Likewise.
9482         (_dl_check_map_versions): Likewise.
9483         (_dl_sort_fini): Likewise.
9484         (_dl_debug_initialize): Likewise.
9485         (_dl_init_paths): Likewise.
9486         (_dl_show_auxv): Likewise.
9487         (_dl_next_ld_env_entry): Likewise.
9488         (_dl_important_hwcaps): Likewise.
9489         (_dl_load_cache_lookup): Likewise.
9490         (_dl_update_slotinfo): Likewise.
9491         (_dl_show_scope): Likewise.
9492
9493         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
9494         attribute_hidden.
9495         (_wordcopy_fwd_dest_aligned): Likewise.
9496         (_wordcopy_bwd_aligned): Likewise.
9497         (_wordcopy_bwd_dest_aligned): Likewise.
9498
9499         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
9500         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
9501         Likewise.
9502         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
9503         Likewise.
9504         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
9505
9506 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9507
9508         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
9509         GCC 5 requirement.
9510
9511 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9512
9513         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
9514         test.
9515         * sysdeps/i386/configure: Regenerated.
9516         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
9517         code unconditional.
9518
9519         * configure.ac (libc_cv_asm_previous_directive): Remove configure
9520         test.
9521         (libc_cv_asm_popsection_directive): Likewise.
9522         * configure: Regenerated.
9523         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
9524         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
9525         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
9526         (__make_section_unallocated): Make definition unconditional.
9527         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
9528         Remove conditional definition.
9529         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
9530         (__make_section_unallocated): Likewise.
9531
9532         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
9533         * configure: Regenerated.
9534         * config.make.in (static-libgcc): Remove variable.
9535         * Makerules (build-shlib-helper): Use -static-libgcc instead of
9536         $(static-libgcc).
9537         (build-module-helper): Likewise.
9538
9539         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
9540         * configure: Regenerated.
9541
9542 2015-10-15  Florian Weimer  <fweimer@redhat.com>
9543
9544         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
9545         (struct char_buffer): New type.
9546         (char_buffer_start, char_buffer_size, char_buffer_error)
9547         (char_buffer_rewind, char_buffer_add): New functions.
9548         (ADDW): Remove macro, replaced by the char_buffer_add function.
9549         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
9550         of extend_alloca.  Make control flow more explicit.
9551
9552 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9553
9554         [BZ #19137]
9555         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
9556         Add -fomit-frame-pointer.
9557         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
9558
9559 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9560
9561         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
9562         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
9563         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
9564         only if !__GNUC_PREREQ (5,0).
9565         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
9566         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
9567         (INTERNAL_SYSCALL_NCS): Likewise.
9568         (LOADREGS_0): New macro for GCC 5.
9569         (ASMARGS_0): Likewise.
9570         (LOADREGS_1): Likewise.
9571         (ASMARGS_1): Likewise.
9572         (LOADREGS_2): Likewise.
9573         (ASMARGS_2): Likewise.
9574         (LOADREGS_3): Likewise.
9575         (ASMARGS_3): Likewise.
9576         (LOADREGS_4): Likewise.
9577         (ASMARGS_4): Likewise.
9578         (LOADREGS_5): Likewise.
9579         (ASMARGS_5): Likewise.
9580         (LOADREGS_6): Likewise.
9581         (ASMARGS_6): Likewise.
9582
9583 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
9584
9585         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
9586         -fomit-frame-pointer.
9587         (CFLAGS-mmap64.c): Likewise.
9588         (CFLAGS-semtimedop.c): Likewise.
9589         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
9590         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
9591         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
9592         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
9593
9594 2015-10-15  Florian Weimer  <fweimer@redhat.com>
9595
9596         [BZ #18928]
9597         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
9598         _dl_pointer_guard member.
9599         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
9600         initializer.
9601         (security_init): Always set up pointer guard.
9602         (process_envvars): Do not process LD_POINTER_GUARD.
9603
9604 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
9605
9606         [BZ #19134]
9607         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
9608         (.LC2): Likewise.
9609         (.LC3): Likewise.
9610         (__lround): Do not add 0.5 to integer or out-of-range arguments.
9611
9612 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9613
9614         [BZ #19129]
9615         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
9616         r0 and r1.
9617
9618 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
9619
9620         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
9621
9622 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
9623
9624         * include/stap-probe.h: Fix macro definition formatting.
9625
9626 2015-10-14  Florian Weimer  <fweimer@redhat.com>
9627
9628         [BZ #19074]
9629         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
9630         load and store num_ifs.
9631
9632 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9633
9634         [BZ #18822]
9635         * sysdeps/unix/sysv/linux/sched_getaffinity.c
9636         (__sched_getaffinity_new): Add libc_hidden_proto and
9637         libc_hidden_def.
9638
9639 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9640
9641         [BZ #19007]
9642         * scripts/localplt.awk: Also allow GOT references.
9643         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
9644         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
9645         with "+ REL R_386_GLOB_DAT".
9646         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
9647         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
9648
9649 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
9650
9651         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
9652         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9653         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
9654         Likewise.
9655         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
9656         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
9657         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
9658         INTERNAL_SYSCALLINTERNAL_SYSCALL and
9659         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9660         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
9661         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
9662         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
9663         Likewise.
9664         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
9665
9666 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
9667
9668         [BZ #19125]
9669         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
9670         <math_private.h> and <stdint.h>.
9671         (__llround): Avoid conversions to and from long long int, and
9672         subtractions, where those might raise spurious exceptions.
9673         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
9674         <math_private.h> and <stdint.h>.
9675         (__llroundf): Avoid conversions to and from long long int, and
9676         subtractions, where those might raise spurious exceptions.
9677
9678 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
9679
9680         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
9681         INLINE_SYSCALL_ERROR_RETURN_VALUE.
9682         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
9683         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
9684         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
9685         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
9686         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
9687         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
9688         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
9689         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
9690         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
9691         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
9692         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
9693         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
9694         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
9695         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
9696         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
9697         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
9698         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
9699         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
9700         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
9701         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
9702         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
9703         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
9704         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
9705         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
9706         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
9707         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
9708         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
9709         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
9710         (__xstat64_conv): Likewise.
9711         (__xstat32_conv): Likewise.
9712
9713 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
9714
9715         * sysdeps/unix/sysv/linux/sysdep.h: New file.
9716         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
9717         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
9718         <sysdeps/unix/sysv/linux/sysdep.h>.
9719         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
9720         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
9721         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
9722         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
9723         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
9724         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
9725         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
9726         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
9727         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
9728         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
9729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9730         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
9731         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
9732         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
9733         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
9734         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9735         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
9736         (sysdep-dl-routines): Add sysdep.
9737         [$(subdir) == nptl] (libpthread-routines): Likewise.
9738         [$(subdir) == rt] (librt-routines): Likewise.
9739         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
9740         PIC when branching to SYSCALL_ERROR_LABEL.
9741         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
9742         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
9743         <sysdeps/unix/sysv/linux/sysdep.h>.
9744         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
9745         (SYSCALL_ERROR_ERRNO): Removed.
9746         (SYSCALL_ERROR_HANDLER): Changed to empty.
9747         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
9748         (__syscall_error): New prototype.
9749         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
9750         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
9751
9752 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
9753
9754         [BZ #19124]
9755         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
9756         (_dl_runtime_resolve_avx512): Make it a hidden alias of
9757         _dl_runtime_resolve_avx.
9758         (_dl_runtime_profile_avx512): Make it a hidden alias of
9759         _dl_runtime_profile_avx.
9760
9761 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
9762
9763         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
9764         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
9765         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
9766         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
9767
9768         [BZ #16422]
9769         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
9770         New configure test.
9771         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
9772         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
9773         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
9774         <math_private.h> and <stdint.h>.
9775         (__llrint): Avoid conversions to long long int where those might
9776         raise spurious exceptions.
9777         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
9778         <math_private.h> and <stdint.h>.
9779         (__llrintf): Avoid conversions to long long int where those might
9780         raise spurious exceptions.
9781
9782 2015-10-12  Andreas Schwab  <schwab@suse.de>
9783
9784         [BZ #18969]
9785         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
9786         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
9787         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
9788         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
9789         $(gen-locales).
9790         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
9791         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
9792         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
9793         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
9794         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
9795         $(gen-locales).
9796         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
9797         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
9798         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
9799         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
9800         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
9801         ($(objpfx)tst-ftell-active-handler.out)
9802         ($(objpfx)tst-ftell-append.out)
9803         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
9804         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
9805         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
9806         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
9807         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
9808         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
9809         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
9810         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
9811         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
9812         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
9813         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
9814         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
9815         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
9816         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
9817         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
9818         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
9819         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
9820         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
9821         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
9822         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
9823         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
9824         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
9825         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
9826         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
9827         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
9828         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
9829         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
9830         $(gen-locales).
9831         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
9832         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
9833         $(gen-locales).
9834         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
9835         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
9836         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
9837         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
9838         $(gen-locales).
9839         * libio/tst_wprintf2.c (main): Use explicit locale.
9840         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
9841
9842 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9843
9844         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
9845         __msg_sig_post.
9846         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
9847
9848 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
9849
9850         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
9851         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
9852
9853         * sysdeps/arm/libm-test-ulps: Regenerated.
9854
9855         [BZ #15470]
9856         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
9857
9858         [BZ #16399]
9859         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
9860         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
9861         and <fix-fp-int-convert-overflow.h>.
9862         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
9863         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9864         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
9865         and <fix-fp-int-convert-overflow.h>.
9866         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
9867         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9868         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
9869         <fix-fp-int-convert-overflow.h>.
9870         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
9871         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9872         * sysdeps/ieee754/dbl-64/s_lround.c: Include
9873         <fix-fp-int-convert-overflow.h>.
9874         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
9875         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9876         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
9877         and <fix-fp-int-convert-overflow.h>.
9878         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
9879         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9880         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
9881         <limits.h> and <fix-fp-int-convert-overflow.h>.
9882         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
9883         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9884         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
9885         and <fix-fp-int-convert-overflow.h>.
9886         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
9887         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9888         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
9889         and <fix-fp-int-convert-overflow.h>.
9890         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
9891         FIX_DBL_LLONG_CONVERT_OVERFLOW.
9892         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
9893
9894 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
9895
9896         [BZ #18589]
9897         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
9898         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
9899         $(gen-locales).
9900
9901 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9902             Phil Blundell <pb@pbcl.net>
9903
9904         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
9905         * nptl/tst-cancel26.c: New file.
9906         * nptl/tst-cancel27.c: Likewise.
9907
9908 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
9909
9910         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
9911         __ILP32__ isn't defined.
9912         (lrint): Likewise.
9913         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
9914         (lrintf): Likewise.
9915         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
9916         (lrintl): Likewise.
9917         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
9918         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
9919         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
9920
9921 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9922
9923         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
9924         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
9925
9926         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
9927         file.
9928         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
9929         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
9930
9931 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
9932
9933         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
9934         configure test.
9935         * sysdeps/i386/configure: Regenerated.
9936         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
9937         configure test.
9938         * sysdeps/x86_64/configure: Regenerated.
9939         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
9940         Make code unconditional.
9941
9942         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
9943         test.
9944         * sysdeps/i386/configure: Regenerated.
9945         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
9946         test.
9947         * sysdeps/x86_64/configure: Regenerated.
9948         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
9949         Make code unconditional.
9950         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
9951         Likewise.
9952         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
9953         Likewise.
9954         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9955         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
9956         code unconditional.
9957         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9958         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
9959         code unconditional.
9960         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9961         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
9962         code unconditional.
9963         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
9964         code unconditional.
9965         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9966         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
9967         code unconditional.
9968         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9969         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
9970         code unconditional.
9971         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9972         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
9973         code unconditional.
9974         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9975         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
9976         code unconditional.
9977         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
9978         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
9979
9980         [BZ #19095]
9981         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
9982         mantissa to long int before shifting left.
9983
9984 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
9985
9986         [BZ #19094]
9987         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
9988         <limits.h>.
9989         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
9990         when result overflows but exception would not result from cast.
9991         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
9992         <limits.h>.
9993         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
9994         when result overflows but exception would not result from cast.
9995         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
9996         <limits.h>.
9997         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
9998         when result overflows but exception would not result from cast.
9999         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
10000         <limits.h>.
10001         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10002         when result overflows but exception would not result from cast.
10003         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
10004         <limits.h>.
10005         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10006         when result overflows but exception would not result from cast.
10007         * math/libm-test.inc (lrint_test_data): Add more tests.
10008         (llrint_test_data): Likewise.
10009
10010 2015-10-08  Roland McGrath  <roland@hack.frob.com>
10011
10012         [BZ #18872]
10013         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
10014         Move out from under [$(run-built-tests) = yes] conditional.
10015         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
10016         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
10017
10018 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
10019
10020         [BZ #18589]
10021         * string/Makefile (tests): Add bug-strcoll2.
10022         (LOCALES): Add cs_CZ.UTF-8.
10023         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
10024
10025         [BZ #18589]
10026         * string/bug-strcoll2.c: New file.
10027         * locale/categories.def: Revert commit
10028         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
10029         * locale/langinfo.h: Likewise.
10030         * locale/localeinfo.h: Likewise.
10031         * locale/C-collate.c: Likewise.
10032         * locale/programs/ld-collate.c (collate_output): Likewise.
10033         * string/strcoll_l.c (STRDIFF): Likewise.
10034         (STRCOLL): Likewise.
10035         * wcsmbs/wcscoll_l.c: Likewise.
10036
10037 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10038
10039         * math/libm-test.inc (lround_test_data): Do not expect the absence
10040         of "inexact" for some tests with non-integer arguments.
10041         (llround_test_data): Likewise.
10042
10043         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
10044         test.
10045         (libc_cv_cc_sse2avx): Likewise.
10046         * sysdeps/i386/configure: Regenerated.
10047         * sysdeps/i386/i686/multiarch/Makefile
10048         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
10049         [$(subdir) = math].
10050         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
10051         code unconditional.
10052         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10053         Likewise.
10054         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
10055         Likewise.
10056         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10057         Likewise.
10058         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
10059         test.
10060         (libc_cv_cc_sse2avx): Likewise.
10061         * sysdeps/x86_64/configure: Regenerated.
10062         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
10063         unconditional.
10064         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
10065         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
10066         unconditional.
10067         (_dl_runtime_profile)
10068         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
10069         conditional code.
10070         * sysdeps/x86_64/fpu/multiarch/Makefile
10071         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
10072         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
10073         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10074         * sysdeps/x86_64/fpu/multiarch/e_exp.c
10075         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10076         * sysdeps/x86_64/fpu/multiarch/e_log.c
10077         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10078         * sysdeps/x86_64/fpu/multiarch/s_atan.c
10079         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10080         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10081         Likewise.
10082         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10083         Likewise.
10084         * sysdeps/x86_64/fpu/multiarch/s_sin.c
10085         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10086         * sysdeps/x86_64/fpu/multiarch/s_tan.c
10087         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10088         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
10089         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
10090         (HAVE_SSE2AVX_SUPPORT): Likewise.
10091
10092 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
10093
10094         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
10095         instead of #pragma optimize.
10096
10097 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10098
10099         [BZ #17195]
10100         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
10101         as is similarly done in systrim and _int_free already.
10102
10103 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10104
10105         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
10106
10107 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10108
10109         [BZ #19088]
10110         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
10111         <limits.h>.
10112         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10113         overflows but exception would not result from cast.
10114         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
10115         and <limits.h>.
10116         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10117         overflows but exception would not result from cast.
10118         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
10119         <limits.h>.
10120         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10121         overflows but exception would not result from cast.
10122         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
10123         <limits.h>.
10124         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10125         overflows but exception would not result from cast.
10126         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
10127         <limits.h>.
10128         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10129         overflows but exception would not result from cast.
10130         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
10131         <limits.h>.
10132         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10133         overflows but exception would not result from cast.
10134         * math/libm-test.inc (lround_test_data): Add more tests.
10135         (llround_test_data): Likewise.
10136
10137 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
10138
10139         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
10140         (CFLAGS-ialloc.c): Ditto.
10141         (CFLAGS-scheck.c): Ditto.
10142
10143 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10144
10145         [BZ #19086]
10146         * manual/filesys.texi (Storage Allocation): Fix argument order for
10147         posix_fallocate64.
10148
10149 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10150
10151         [BZ #19085]
10152         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
10153         exponent below 48 inside case for non-overflowing exponent.
10154         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10155
10156 2015-10-07  Florian Weimer  <fweimer@redhat.com>
10157
10158         * iconvdata/cp737.h (from_idx): Add const.
10159         * iconvdata/cp775.h (from_idx): Likewise.
10160
10161 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10162
10163         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
10164         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10165         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
10166
10167         [BZ #19079]
10168         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
10169         file, conditioned on [!_LP64].
10170         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
10171         [!_LP64] (__lround): Do not define as function or alias.
10172         [!_LP64] (lround): Likewise.
10173         [!_LP64] (__lroundl): Likewise.
10174         [!_LP64] (lroundl): Likewise.
10175         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
10176         macro.
10177         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
10178         Likewise.
10179
10180 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10181
10182         * math/libm-test.inc (lrint_test_data): Add more tests.
10183         (llrint_test_data): Likewise.
10184         (lround_test_data): Likewise.
10185         (llround_test_data): Likewise.
10186
10187         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
10188         (llrint_test_data): Add tests used for lrint.
10189
10190         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
10191         test.
10192         * sysdeps/i386/configure: Regenerated.
10193         * sysdeps/i386/i686/multiarch/Makefile
10194         [$(config-cflags-sse4) = yes]: Make code unconditional.
10195         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10196         Likewise.
10197         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
10198         Likewise.
10199         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
10200         test.
10201         * sysdeps/x86_64/configure: Regenerated.
10202         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
10203         Make code unconditional.
10204         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10205         Likewise.
10206         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
10207         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
10208
10209         * scripts/rpm2dynsym.sh: Remove file.
10210
10211 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10212
10213         * configure.ac (libc_cv_cxx_thread_local): Define.
10214         * configure: Regenerate.
10215         * config.make.in (have-cxx-thread_local): Define.
10216         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
10217         (LDLIBS-tst-thread_local1): Define.
10218         (tests): Add tst-thread_local1.
10219         [have-cxx-thread_local != yes] (tests-unsupported): Add
10220         tst-thread_local1.
10221         * nptl/tst-thread_local1.cc: New file.
10222
10223 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10224
10225         [BZ #19078]
10226         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
10227         (u_thres): Likewise.
10228         (__expl): Determine whether to call __kernel_standard_l based on
10229         value of result, not argument.
10230
10231         * math/libm-test.inc (scalb_test_data): Add more expectations for
10232         the "inexact" exception.
10233
10234         [BZ #19077]
10235         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
10236         0.0L for argument 1.0L.
10237
10238         [BZ #19076]
10239         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
10240         constant 0.0L when computing infinite result.
10241
10242 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10243
10244         [BZ #10432]
10245         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
10246         malloc_usable_size.
10247
10248 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10249
10250         [BZ #19018]
10251         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
10252         Mangle function pointer before storing it.
10253         (__call_tls_dtors): Demangle function pointer before calling it.
10254
10255 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10256
10257         [BZ #19012]
10258         * iconv/gconv_db.c (gen_steps): Check for additional errors.
10259         Clean up on failure.
10260
10261 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
10262
10263         [BZ #19071]
10264         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
10265         long int variable to store possibly incremented high part of
10266         mantissa.
10267         * math/libm-test.inc (lround_test_data): Add tests used for
10268         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
10269         for tests requiring 64-bit long.  Do not condition tests on
10270         [TEST_FLOAT] unnecessarily.
10271         (llround_test_data): Add tests used for lround.  Add another
10272         expectation for the "inexact" exception.  Do not condition tests
10273         on [TEST_FLOAT] unnecessarily.
10274
10275         [BZ #887]
10276         [BZ #19049]
10277         [BZ #19050]
10278         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
10279         * sysdeps/ieee754/dbl-64/e_log10.c: Include
10280         <fix-int-fp-convert-zero.h>.
10281         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10282         * sysdeps/ieee754/dbl-64/e_log2.c: Include
10283         <fix-int-fp-convert-zero.h>.
10284         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10285         * sysdeps/ieee754/dbl-64/s_erf.c: Include
10286         <fix-int-fp-convert-zero.h>.
10287         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10288         * sysdeps/ieee754/dbl-64/s_logb.c: Include
10289         <fix-int-fp-convert-zero.h>.
10290         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10291         * sysdeps/ieee754/flt-32/e_log10f.c: Include
10292         <fix-int-fp-convert-zero.h>.
10293         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10294         * sysdeps/ieee754/flt-32/e_log2f.c: Include
10295         <fix-int-fp-convert-zero.h>.
10296         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10297         * sysdeps/ieee754/flt-32/s_erff.c: Include
10298         <fix-int-fp-convert-zero.h>.
10299         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10300         * sysdeps/ieee754/flt-32/s_logbf.c: Include
10301         <fix-int-fp-convert-zero.h>.
10302         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10303         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
10304         <fix-int-fp-convert-zero.h>.
10305         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10306         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
10307         <fix-int-fp-convert-zero.h>.
10308         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10309         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
10310         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
10311         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
10312         file.
10313         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
10314
10315 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
10316
10317         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
10318
10319 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
10320
10321         [BZ #19059]
10322         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
10323         overflowing computation.
10324         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10325         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10326         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10327         Likewise.
10328         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10329         Likewise.
10330         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10331         Likewise.
10332         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10333         Likewise.
10334         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10335         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10336         Likewise.
10337         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10338         Likewise.
10339         * math/libm-test.inc (nexttoward_test_data): Add more tests.
10340
10341         * nss/rewrite_field.c (__nss_rewrite_field): Use
10342         internal_function.
10343         * nss/valid_field.c (__nss_valid_field): Likewise.
10344         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
10345
10346 2015-10-02  Florian Weimer  <fweimer@redhat.com>
10347
10348         [BZ #18724]
10349         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
10350         (__nss_invalid_field_characters, __nss_valid_field)
10351         (__nss_valid_list_field, __nss_rewrite_field): Declare.
10352         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
10353         tst-field.c: New file.
10354         * nss/Makefile (routines): Add valid_field, rewrite_field.
10355         (tests-static): Define unconditionally.
10356         (tests): Include tests-static.
10357         [build-static-nss] (tests-static): Use append.
10358         [build-static-nss] (tests): Remove modification.
10359         * nss/getent.c (print_group): Call putgrent.  Report error.
10360         (print_gshadow): Call putsgent.  Report error.
10361         (print_passwd): Call putpwent.  Report error.
10362         (print_shadow): Call putspent.  Report error.
10363         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
10364         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
10365         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
10366         name, password, directory, shell fields for valid syntax.  Rewrite
10367         GECOS field to match syntax.
10368         * pwd/Makefile (tests): Add tst-putpwent.
10369         * pwd/tst-putpwent.c: New file.
10370         * grp/putgrent.c (putgrent): Convert to ISO function definition.
10371         Check grName, grpasswd, gr_mem fields for valid syntax.
10372         Change loop variable i to size_t.
10373         * grp/Makefile (tests): Add tst-putgrent.
10374         * grp/tst-putgrent.c: New file.
10375         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
10376         valid syntax.
10377         * shadow/Makefile (tests): Add tst-putspent.
10378         * shadow/tst-putspent.c: New file.
10379         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
10380         sg_mem fields for valid syntax.
10381         * gshadow/Makefile (tests): Add tst-putsgent.
10382         * gshadow/tst-putsgent.c: New file.
10383
10384 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10385
10386         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
10387         assembly instructions.
10388
10389 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10390
10391         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
10392         prefix from operands.
10393
10394 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
10395
10396         [BZ #16347]
10397         [BZ #19046]
10398         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
10399         <libc-internal.h>.
10400         (MAXLGM): Do not use diagnostic control macros.
10401         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
10402         threshold for ldbl-128ibm.
10403         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
10404         instead of multiplying by log then subtracting.
10405         * math/auto-libm-test-in: Add more tests of lgamma.
10406         * math/auto-libm-test-out: Regenerated.
10407
10408         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
10409         (TYPE_HEX_DIG): Likewise.
10410         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
10411         precisions when printing floating-point numbers.
10412         (check_float_internal): Likewise.
10413
10414 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
10415
10416         [BZ #16620]
10417         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
10418         of log (10) rounded downward to 48 bits.
10419         (log10_low): Use corresponding low part of log (10).
10420
10421         [BZ #19032]
10422         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
10423         compute result as (x - x) / (x - x) not as 0 / 0.
10424         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
10425         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
10426
10427         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
10428         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
10429         and expm1.
10430         * math/auto-libm-test-out: Regenerated.
10431         * math/libm-test.inc (acos_test_data): Add more tests.
10432         (asin_test_data): Likewise.
10433         (asinh_test_data): Likewise.
10434         (atan_test_data): Likewise.
10435         (atanh_test_data): Likewise.
10436         (atan2_test_data): Likewise.
10437         (cbrt_test_data): Likewise.
10438         (ceil_test_data): Likewise.
10439         (copysign_test_data): Likewise.
10440         (cos_test_data): Likewise.
10441         (cosh_test_data): Likewise.
10442         (erf_test_data): Likewise.
10443         (erfc_test_data): Likewise.
10444         (exp_test_data): Likewise.
10445         (exp10_test_data): Likewise.
10446         (exp2_test_data): Likewise.
10447         (expm1_test_data): Likewise.
10448         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10449
10450 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
10451
10452         [BZ #19006]
10453         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
10454         to ...
10455         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
10456         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
10457         to ...
10458         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
10459         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
10460         to ...
10461         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
10462         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
10463         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
10464         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
10465         to ...
10466         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
10467         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
10468         Moved to ...
10469         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
10470         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
10471         Moved to ...
10472         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
10473         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
10474         to ...
10475         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
10476         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
10477         Moved to ...
10478         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
10479         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
10480         to ...
10481         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
10482         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
10483         Removed.
10484         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
10485         Likewise.
10486         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
10487         Likewise.
10488         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
10489         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
10490         Likewise.
10491         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
10492         Likewise.
10493         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
10494         Likewise.
10495         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
10496         Likewise.
10497         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
10498         Likewise.
10499         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
10500         Likewise.
10501         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
10502         Likewise.
10503         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
10504         Likewise.
10505         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
10506         Likewise.
10507         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
10508         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
10509         Likewise.
10510         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
10511         Likewise.
10512         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
10513         Likewise.
10514         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
10515         Likewise.
10516         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
10517         Likewise.
10518         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
10519         Replace ../i486/pthread_cond_timedwait.S with
10520         ../pthread_cond_timedwait.S.
10521
10522 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
10523
10524         * math/libm-test.inc (acos_test_data): Refine expectations for
10525         errno and "inexact" exceptions.
10526         (acosh_test_data): Likewise.
10527         (asin_test_data): Likewise.
10528         (asinh_test_data): Likewise.
10529         (atan_test_data): Likewise.
10530         (atanh_test_data): Likewise.
10531         (atan2_test_data): Likewise.
10532         (cbrt_test_data): Likewise.
10533         (ceil_test_data): Likewise.
10534         (copysign_test_data): Likewise.
10535         (cosh_test_data): Likewise.
10536         (erf_test_data): Likewise.
10537         (erfc_test_data): Likewise.
10538         (exp_test_data): Likewise.
10539         (exp10_test_data): Likewise.
10540         (exp2_test_data): Likewise.
10541         (expm1_test_data): Likewise.
10542         (fabs_test_data): Likewise.
10543         (floor_test_data): Likewise.
10544         (fma_test_data): Likewise.
10545         (fmax_test_data): Likewise.
10546         (fmin_test_data): Likewise.
10547         (fmod_test_data): Likewise.
10548         (fpclassify_test_data): Likewise.
10549         (frexp_test_data): Likewise.
10550         (hypot_test_data): Likewise.
10551         (ilogb_test_data): Likewise.
10552         (isgreater_test_data): Likewise.
10553         (isgreaterequal_test_data): Likewise.
10554         (isinf_test_data): Likewise.
10555         (isless_test_data): Likewise.
10556         (islessequal_test_data): Likewise.
10557         (islessgreater_test_data): Likewise.
10558         (isnan_test_data): Likewise.
10559         (isnormal_test_data): Likewise.
10560         (issignaling_test_data): Likewise.
10561         (isunordered_test_data): Likewise.
10562         (j0_test_data): Likewise.
10563         (j1_test_data): Likewise.
10564         (jn_test_data): Likewise.
10565         (lgamma_test_data): Likewise.
10566         (lrint_test_data): Likewise.
10567         (llrint_test_data): Likewise.
10568         (log_test_data): Likewise.
10569         (log10_test_data): Likewise.
10570         (log1p_test_data): Likewise.
10571         (log2_test_data): Likewise.
10572         (logb_test_data): Likewise.
10573         (lround_test_data): Likewise.
10574         (llround_test_data): Likewise.
10575         (modf_test_data): Likewise.
10576         (nearbyint_test_data): Likewise.
10577         (nextafter_test_data): Likewise.
10578         (nexttoward_test_data): Likewise.
10579         (pow_test_data): Likewise.
10580         (remainder_test_data): Likewise.
10581         (remquo_test_data): Likewise.
10582         (rint_test_data): Likewise.
10583         (round_test_data): Likewise.
10584         (signbit_test_data): Likewise.
10585         (sinh_test_data): Likewise.
10586         (sqrt_test_data): Likewise.
10587         (tanh_test_data): Likewise.
10588         (tgamma_test_data): Likewise.
10589         (trunc_test_data): Likewise.
10590         (y0_test_data): Likewise.
10591         (y1_test_data): Likewise.
10592         (yn_test_data): Likewise.
10593         (significand_test_data): Likewise.
10594
10595 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
10596
10597         * manual/filesys.texi (Storage Allocation): Document that
10598         posix_fallocate emulation fails when fd is open with O_WRONLY.
10599
10600 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
10601
10602         [BZ #19016]
10603         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
10604         allow more cases with X^2 + Y^2 >= 0.5.
10605         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
10606         normal element in sum instead of special-casing based on values of
10607         arguments.
10608         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
10609         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
10610         -1 as normal element in sum instead of special-casing based on
10611         values of arguments.
10612         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
10613         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
10614         (__x2y2m1): Update comment.
10615         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
10616         as normal element in sum instead of special-casing based on values
10617         of arguments.
10618         * math/s_clog.c (__clog): Handle more cases using log1p without
10619         hypot.
10620         * math/s_clog10.c (__clog10): Likewise.
10621         * math/s_clog10f.c (__clog10f): Likewise.
10622         * math/s_clog10l.c (__clog10l): Likewise.
10623         * math/s_clogf.c (__clogf): Likewise.
10624         * math/s_clogl.c (__clogl): Likewise.
10625         * math/auto-libm-test-in: Add more tests of clog and clog10.
10626         * math/auto-libm-test-out: Regenerated.
10627         * sysdeps/i386/fpu/libm-test-ulps: Update.
10628         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10629
10630 2015-09-28  Martin Sebor  <msebor@redhat.com>
10631
10632         [BZ #18969]
10633         * string/Makefile (LOCALES): Define.
10634         (gen-locales.mk): Include.
10635         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
10636         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
10637         * string/tst-strxfrm2.c (do_test): Print the name of the locale
10638         on setlocale failure.
10639
10640 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
10641
10642         [BZ #18985]
10643         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
10644         (__strftime_internal): Likewise.
10645         * time/tst-strftime.c (do_bz18985): New test.
10646         (do_test): Call it.
10647
10648 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
10649
10650         [BZ #18956]
10651         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
10652         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
10653         extracting high part.
10654         * math/auto-libm-test-in: Add another test of pow.
10655         * math/auto-libm-test-out: Regenerated.
10656         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10657
10658 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
10659
10660         [BZ #18825]
10661         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
10662         New macro.
10663         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
10664         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
10665         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
10666         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
10667         DBL_NARROW_EVAL, reloading the PIC register as needed.
10668         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
10669         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
10670         FLT_NARROW_EVAL.  Use separate return path for case when first
10671         argument is NaN.
10672         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
10673         DEFINE_LDBL_MIN.
10674         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
10675         PIC register.
10676         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
10677         math_check_force_underflow_nonneg.
10678         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
10679         underflow for subnormal result.
10680         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10681         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
10682         math_check_force_underflow_nonneg.
10683         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
10684         math_check_force_underflow.
10685         * sysdeps/x86_64/fpu/x86_64-math-asm.h
10686         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
10687         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
10688         DEFINE_LDBL_MIN.
10689         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
10690         * math/auto-libm-test-in: Add more tests of pow.
10691         * math/auto-libm-test-out: Regenerated.
10692
10693 2015-09-25  Florian Weimer  <fweimer@redhat.com>
10694
10695         * nss/bug17079.c (init_test_items): Add diagnostic for
10696         inconsistent entries.
10697         (test_buffer_size): Skip inconsistent entries.
10698
10699 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
10700
10701         [BZ #13304]
10702         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
10703         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
10704         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
10705
10706         [BZ #13304]
10707         * sysdeps/microblaze/s_fma.c: New file.
10708         * sysdeps/microblaze/s_fmaf.c: Likewise.
10709         * sysdeps/microblaze/sfp-machine.h: Likewise.
10710
10711 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
10712
10713         [BZ #17250]
10714         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
10715         member.
10716
10717 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
10718
10719         [BZ #18803]
10720         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
10721         (MO): New macro.
10722         (__ieee754_hypot) [PIC]: Load PIC register.
10723         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
10724         DBL_NARROW_EVAL.
10725         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
10726         math_check_force_underflow_nonneg in case where result might be
10727         tiny.
10728         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
10729         Likewise.
10730         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
10731         Likewise.
10732         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
10733         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
10734         * math/auto-libm-test-in: Add more tests of hypot.
10735         * math/auto-libm-test-out: Regenerated.
10736
10737 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
10738
10739         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
10740
10741 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
10742
10743         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
10744         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
10745         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
10746         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
10747         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
10748         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
10749         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
10750
10751         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
10752         LOAD_PIC_REG.
10753
10754         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
10755         (FLT_CHECK_FORCE_UFLOW): Likewise.
10756         (DBL_CHECK_FORCE_UFLOW): Likewise.
10757         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
10758         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
10759         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
10760         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
10761         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
10762         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
10763         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
10764         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
10765         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
10766         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10767         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
10768         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
10769         (flt_min): Replace with use of DEFINE_FLT_MIN.
10770         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
10771         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
10772         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10773         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
10774         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
10775         (flt_min): Replace with use of DEFINE_FLT_MIN.
10776         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
10777         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
10778         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10779         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
10780         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
10781         (flt_min): Replace with use of DEFINE_FLT_MIN.
10782         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
10783         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
10784         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
10785         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
10786         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
10787         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
10788         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
10789         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
10790         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10791         (__atan): Use DBL_CHECK_FORCE_UFLOW.
10792         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
10793         (flt_min): Replace with use of DEFINE_FLT_MIN.
10794         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
10795         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
10796         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10797         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
10798         main computation.
10799         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
10800         (flt_min): Replace with use of DEFINE_FLT_MIN.
10801         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
10802         main computation.
10803         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
10804         (dbl_min): Replace with use of DEFINE_DBL_MIN.
10805         (MO): New macro.
10806         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
10807         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
10808         (flt_min): Replace with use of DEFINE_FLT_MIN.
10809         (MO): New macro.
10810         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
10811         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
10812         (__log1pl): Use MO.
10813
10814         [BZ #19003]
10815         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
10816         $(config-cflags-nofma).
10817
10818 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10819
10820         * sysdeps/aarch64/libm-test-ulps: Regenerated.
10821
10822 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
10823
10824         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
10825         (TWO127): Likewise.
10826
10827         * sysdeps/generic/math_private.h (fabs_tg): New macro.
10828         (min_of_type): Likewise.
10829         (math_check_force_underflow): Likewise.
10830         (math_check_force_underflow_nonneg): Likewise.
10831         (math_check_force_underflow_complex): Likewise.
10832         * math/e_exp2l.c (__ieee754_exp2l): Use
10833         math_check_force_underflow_nonneg.
10834         * math/k_casinh.c (__kernel_casinh): Likewise.
10835         * math/k_casinhf.c (__kernel_casinhf): Likewise.
10836         * math/k_casinhl.c (__kernel_casinhl): Likewise.
10837         * math/s_catan.c (__catan): Use
10838         math_check_force_underflow_complex.
10839         * math/s_catanf.c (__catanf): Likewise.
10840         * math/s_catanh.c (__catanh): Likewise.
10841         * math/s_catanhf.c (__catanhf): Likewise.
10842         * math/s_catanhl.c (__catanhl): Likewise.
10843         * math/s_catanl.c (__catanl): Likewise.
10844         * math/s_ccosh.c (__ccosh): Likewise.
10845         * math/s_ccoshf.c (__ccoshf): Likewise.
10846         * math/s_ccoshl.c (__ccoshl): Likewise.
10847         * math/s_cexp.c (__cexp): Likewise.
10848         * math/s_cexpf.c (__cexpf): Likewise.
10849         * math/s_cexpl.c (__cexpl): Likewise.
10850         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
10851         * math/s_clog10.c (__clog10): Likewise.
10852         * math/s_clog10f.c (__clog10f): Likewise.
10853         * math/s_clog10l.c (__clog10l): Likewise.
10854         * math/s_clogf.c (__clogf): Likewise.
10855         * math/s_clogl.c (__clogl): Likewise.
10856         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
10857         * math/s_csinf.c (__csinf): Likewise.
10858         * math/s_csinh.c (__csinh): Likewise.
10859         * math/s_csinhf.c (__csinhf): Likewise.
10860         * math/s_csinhl.c (__csinhl): Likewise.
10861         * math/s_csinl.c (__csinl): Likewise.
10862         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
10863         * math/s_csqrtf.c (__csqrtf): Likewise.
10864         * math/s_csqrtl.c (__csqrtl): Likewise.
10865         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
10866         * math/s_ctanf.c (__ctanf): Likewise.
10867         * math/s_ctanh.c (__ctanh): Likewise.
10868         * math/s_ctanhf.c (__ctanhf): Likewise.
10869         * math/s_ctanhl.c (__ctanhl): Likewise.
10870         * math/s_ctanl.c (__ctanl): Likewise.
10871         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
10872         instead of volatile.
10873         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
10874         math_check_force_underflow.
10875         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
10876         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
10877         volatile when forcing underflow.
10878         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10879         math_check_force_underflow_nonneg.
10880         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
10881         Likewise.
10882         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
10883         math_check_force_underflow.
10884         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
10885         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
10886         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
10887         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
10888         math_check_force_underflow_nonneg.
10889         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
10890         math_check_force_underflow.
10891         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
10892         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
10893         instead of volatile.
10894         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
10895         math_check_force_underflow.
10896         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
10897         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10898         math_check_force_underflow_nonneg.
10899         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
10900         math_check_force_underflow.
10901         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
10902         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
10903         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
10904         math_check_force_underflow_nonneg.
10905         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
10906         Likewise.
10907         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
10908         math_check_force_underflow.
10909         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
10910         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
10911         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
10912         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
10913         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
10914         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
10915         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
10916         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
10917         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
10918         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
10919         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
10920         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
10921         Likewise.
10922         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
10923         math_check_force_underflow_nonneg.
10924         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
10925         Likewise.
10926         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
10927         math_check_force_underflow.
10928         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
10929         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
10930         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10931         Likewise.
10932         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
10933         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
10934         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
10935         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
10936         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
10937         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
10938         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
10939         instead of volatile.
10940         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
10941         math_check_force_underflow.
10942         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
10943         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
10944         math_check_force_underflow.
10945         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
10946         Likewise.
10947         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
10948         Use math_check_force_underflow_nonneg.
10949         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
10950         math_check_force_underflow.
10951         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
10952         Likewise.
10953         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10954         Likewise.
10955         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10956         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
10957         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
10958         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
10959         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
10960         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
10961         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
10962         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
10963         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
10964         math_check_force_underflow_nonneg.
10965         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
10966         math_check_force_underflow.
10967         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
10968         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
10969         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
10970         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
10971         math_check_force_underflow_nonneg.
10972         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
10973         math_check_force_underflow.
10974         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
10975         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
10976         instead of volatile.
10977         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
10978         math_check_force_underflow.
10979
10980         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
10981         * stdlib/strtod_l.c: Include <math_private.h>.
10982         (overflow_value): Use math_narrow_eval.
10983         (underflow_value): Likewise.
10984         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10985         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10986         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
10987         (__ieee754_gamma_r): Likewise.
10988         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
10989         Likewise.
10990         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
10991         Likewise.
10992         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
10993         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
10994         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
10995         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10996         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
10997         (__ieee754_gammaf_r): Likewise.
10998         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
10999         Likewise.
11000         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
11001         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
11002         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11003         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11004         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
11005         volatile.
11006         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11007         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
11008         math_narrow_eval.
11009         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11010         Likewise.
11011         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11012         Likewise.
11013         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
11014         Likewise.
11015         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
11016         volatile.
11017         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11018         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
11019         math_narrow_eval.
11020         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11021         Likewise.
11022         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11023         Likewise.
11024
11025 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
11026
11027         * nptl/Versions: Remove ignored symbols.
11028
11029 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11030
11031         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
11032         * nss/Makefile (tests): Update.
11033
11034 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11035
11036         * nss/bug18287.c: New file.
11037         * nss/Makefile (tests): Add bug18287.
11038
11039 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11040
11041         * mach/Versions (__mach_host_self_): Add symbol.
11042
11043 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11044
11045         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
11046         vm_page_size.
11047
11048 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11049
11050         Really fix sysdeps/i386/fpu/s_scalbn.S build
11051
11052         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
11053         (libc: GLIBC_2_22): Remove unused version set.
11054
11055 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11056
11057         * config.make.in (enable-timezone-tools): New variable.
11058         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
11059         (enable_timezone_tools): Export to generated files.
11060         * configure: Regenerate.
11061         * INSTALL: Regenerate.
11062         * manual/install.texi (--disable-timezone-tools): Document new flag.
11063         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
11064         ifeq ($(enable-timezone-tools),yes) check.
11065
11066 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11067
11068         * timezone/Makefile: Revert previous change.
11069
11070         [BZ #18980]
11071         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
11072         (DEFINE_DBL_MIN): Likewise.
11073         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11074         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11075         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11076         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11077         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
11078         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11079         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11080         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
11081         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
11082         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11083         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11084         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
11085         (flt_min): Replace with use of DEFINE_FLT_MIN.
11086         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11087         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
11088         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11089         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11090         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
11091         (flt_min): Replace with use of DEFINE_FLT_MIN.
11092         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11093         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
11094         (flt_min): Replace with use of DEFINE_FLT_MIN.
11095         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11096         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
11097         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
11098         (__ieee754_hypot): Use DBL_NARROW_EVAL.
11099         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
11100         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
11101         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
11102         (__ieee754_pow): Use DBL_NARROW_EVAL.
11103         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
11104         (__ieee754_powf): Use FLT_NARROW_EVAL.
11105         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
11106         (__ieee754_expf_sse2): Convert double-precision result to single
11107         precision.
11108         * sysdeps/i386/fpu/libm-test-ulps: Update.
11109
11110 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11111
11112         * timezone/Makefile: Ignore unused variable errors due to private.h
11113         (time_t_min) and (time_t_max).
11114         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
11115         Likewise.
11116
11117 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11118
11119         [BZ #18981]
11120         * sysdeps/i386/fpu/i386-math-asm.h: New file.
11121         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
11122         (__ieee754_scalb): Use DBL_NARROW_EVAL.
11123         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
11124         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
11125         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
11126         (__scalbn): Use DBL_NARROW_EVAL.
11127         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
11128         (__scalbnf): Use FLT_NARROW_EVAL.
11129
11130 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11131
11132         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
11133         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
11134         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
11135         * stdio-common/printf_fp.c (___printf_fp):
11136         Use signbit to get the sign. Use isinf macro to allow inlining.
11137         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
11138         * stdio-common/printf_size.c (__printf_size): Likewise.
11139
11140 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11141
11142         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
11143
11144 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11145
11146         [BZ #18980]
11147         * sysdeps/generic/math_private.h: Include <float.h>.
11148         (math_narrow_eval): New macro.
11149         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11150         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
11151         math_narrow_eval on overflowing return value.
11152         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
11153         Likewise.
11154         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11155         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
11156         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
11157         Likewise.
11158         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11159
11160 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11161
11162         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
11163         * math/Makefile: Remove isinf_ns.c.
11164         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
11165         * math/multc3.c (__multc3): Likewise.
11166         * math/s_casin.c (__casin): Likewise.
11167         * math/s_casinf.c (__casinf): Likewise.
11168         * math/s_casinl.c (__casinl): Likewise.
11169         * math/s_cproj.c (__cproj): Likewise.
11170         * math/s_cprojf.c (__cprojf): Likewise.
11171         * math/s_cprojl.c (__cprofl): Likewise.
11172         * math/s_ctan.c (__ctan): Likewise.
11173         * math/s_ctanf.c (__ctanf): Likewise.
11174         * math/s_ctanh.c (__ctanh): Likewise.
11175         * math/s_ctanhf.c (__ctanhf): Likewise.
11176         * math/s_ctanhl.c (__ctanhl): Likewise.
11177         * math/s_ctanl.c (__ctanl): Likewise.
11178         * math/w_fmod.c (__fmod): Likewise.
11179         * math/w_fmodf.c (__fmodf): Likewise.
11180         * math/w_fmodl.c (_fmodl): Likewise.
11181         * math/w_remainder.c (__remainder): Likewise.
11182         * math/w_remainderf.c (__remainderf): Likewise.
11183         * math/w_remainderl.c (__remainderl): Likewise.
11184         * math/w_scalb.c (__scalb): Likewise.
11185         * math/w_scalbf.c (__scalbf): Likewise.
11186         * math/w_scalbl.c (__scalbl): Likewise.
11187         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
11188         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
11189         with isinf.
11190         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
11191         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
11192         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
11193         __isinf_nsf with isinf.
11194         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
11195         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
11196         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
11197         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
11198         with isinf.
11199         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
11200         __isinf_nsl with isinf.
11201         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
11202         with isinf.
11203         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
11204         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
11205         __isinf_nsl with isinf.
11206         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
11207         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
11208         with isinf.
11209
11210 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11211
11212         * resolv/base64.c (rcsid): Remove unused static.
11213         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
11214         static.  (tqpi1): Likewise.
11215         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
11216         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
11217         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
11218         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
11219         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
11220         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
11221         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
11222         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
11223         Likewise.
11224
11225 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
11226
11227         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
11228         <nptl/pthreadP.h>.
11229         (_longjmp_unwind): Use __libc_ptf_call.
11230         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
11231
11232 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
11233
11234         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
11235         * sysdeps/arm/__longjmp.S: Likewise.
11236
11237 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11238
11239         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
11240         Use __builtin_signbit.
11241         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
11242         Use __builtin_signbitf.
11243         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
11244         Use __builtin_signbitl.
11245         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
11246         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
11247
11248 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11249
11250         [BZ #15367]
11251         [BZ #17441]
11252
11253         * math/Makefile: Build test-snan.c with -fsignaling-nans.
11254         * math/math.h (fpclassify): Use __builtin_fpclassify when
11255         available.  (signbit): Use __builtin_signbit(f/l).
11256         (isfinite): Use__builtin_isfinite.  (isnormal): Use
11257         __builtin_isnormal.  (isnan): Use __builtin_isnan.
11258         (isinf): Use __builtin_isinf_sign.
11259
11260 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11261
11262         * benchtests/Makefile: Add bench-math-inlines, link with libm.
11263         * benchtests/bench-math-inlines.c: New benchmark.
11264         * benchtests/bench-util.h: New file.
11265         * benchtests/bench-util.c: New file.
11266         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
11267
11268 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
11269
11270         * elf/tst-dlmopen1.c: Define TEST_SO.
11271         (do_test): Use TEST_SO.
11272
11273         * elf/dl-load.c: Include libc-internal.h.
11274         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
11275
11276 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11277
11278         [BZ #17887]
11279         * time/strptime_l.c (__strptime_internal): Make %z accept
11280         [+-]HH:MM time zones.
11281
11282 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11283
11284         [BZ #17886]
11285         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
11286         valid time zone.
11287
11288 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
11289
11290         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
11291         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
11292         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11293         (__ASSUME_FDATASYNC): Delete.
11294
11295 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11296
11297         * conform/linknamespace.pl: Require weak undefined symbols to be
11298         in the standard namespace.
11299         (%strong_syms): Rename to %seen_syms.
11300         (%strong_seen): Rename to %seen_where.
11301
11302 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11303
11304         [BZ #18970]
11305         * misc/error.c (error): Replace pthread_setcancelstate with
11306         __pthread_setcancelstate.
11307         (error_at_line): Likewise.
11308         * posix/wordexp.c (parse_comm): Likewise.
11309         * stdlib/fmtmsg.c (fmtmsg): Likewise.
11310         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
11311         (__pthread_setcancelstate): This.
11312         (pthread_setcancelstate): Add an alias.
11313         * nptl/nptl-init.c (pthread_functions): Replace
11314         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
11315         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
11316         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
11317         hidden_proto.
11318         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
11319         it with hidden_def.
11320         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
11321         (pthread_setcancelstate): Renamed to ...
11322         (__pthread_setcancelstate): This.
11323         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
11324         __libc_ptf_call with __pthread_setcancelstate.
11325
11326 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11327             Andreas Schwab  <schwab@suse.de>
11328
11329         [BZ #17118]
11330         * math/s_ctan.c (__ctan): Determine sign of zero real part of
11331         result when imaginary part of argument is infinite using sine and
11332         cosine.
11333         * math/s_ctanf.c (__ctanf): Likewise.
11334         * math/s_ctanl.c (__ctanl): Likewise.
11335         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
11336         of result when real part of argument is infinite using sine and
11337         cosine.
11338         * math/s_ctanhf.c (__ctanhf): Likewise.
11339         * math/s_ctanhl.c (__ctanhl): Likewise.
11340         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
11341         (ctanh_test_data): Add more tests of ctanh.
11342
11343 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11344
11345         [BZ #15384]
11346         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
11347         bit-mask as in subtraction.
11348         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
11349         Likewise.
11350         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
11351         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
11352         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
11353
11354         [BZ #18951]
11355         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
11356         underflow exception for small results.
11357         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11358         Likewise.
11359         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11360         Likewise.
11361         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11362         Likewise.
11363         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11364         Likewise.
11365         * math/auto-libm-test-in: Add more tests of tgamma.
11366         * math/auto-libm-test-out: Regenerated.
11367
11368 2015-09-17  Andreas Schwab  <schwab@suse.de>
11369
11370         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
11371
11372 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
11373
11374         [BZ #18977]
11375         * math/bits/mathcalls.h
11376         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
11377         not declare.
11378         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
11379         Likewise.
11380         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
11381         Likewise.
11382         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
11383         Likewise.
11384         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
11385         Likewise.
11386         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
11387         Likewise.
11388         * conform/data/math.h-data
11389         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
11390         function.
11391         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
11392         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
11393         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
11394         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
11395         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
11396         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
11397         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
11398         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
11399         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
11400         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
11401         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
11402
11403         [BZ #6803]
11404         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
11405         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
11406         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
11407         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
11408         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
11409         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
11410         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
11411         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
11412         [NO_LONG_DOUBLE] (scalbnl): Likewise.
11413         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
11414         Likewise.
11415         [NO_LONG_DOUBLE] (scalbnl): Likewise.
11416         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
11417         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
11418         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
11419         long_double_symbol calls.
11420         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
11421         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
11422         strong alias of __ldexpl.
11423         (scalbnl): Define using long_double_symbol.
11424         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
11425         Remove alias.
11426         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
11427         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
11428         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
11429         (scalbln_test_data): Add more errno expectations.
11430
11431 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
11432
11433         Cache the host port like we cache the task port.  This way we do not
11434         need to call the kernel just to get the port.  Furthermore, we no
11435         longer increase the reference count on every invocation of
11436         `mach_host_self'.
11437
11438         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
11439         Protect declarations against the macro expansion.
11440         * mach/mach_init.c (__mach_host_self_): New variable.
11441         (mach_init): Initialize `__mach_host_self_'.
11442         * mach/mach_init.h (__mach_host_self_): New declaration.
11443         (__mach_host_self, mach_host_self): New macros.
11444         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
11445         Release reference.
11446
11447 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
11448
11449         [BZ #4404]
11450         * po/de.po: Update from Translation Project.
11451
11452         [BZ #16415]
11453         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
11454         (__expm1l): Remove code to handle positive infinity and overflow.
11455         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
11456         variable.
11457         (__expm1l): Remove code to handle positive infinity and overflow.
11458
11459 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11460             Paul Pluzhnikov  <ppluzhnikov@google.com>
11461
11462         [BZ #18872]
11463         * stdio-common/Makefile (tst-printf-bz18872): New test.
11464         (tst-printf-bz18872-mem.out): Likewise.
11465         * stdio-common/tst-printf-bz18872.sh: Generate new test.
11466         * stdio-common/vfprintf.c: Fix memory leaks.
11467
11468 2015-09-16  Andreas Schwab  <schwab@suse.de>
11469
11470         [BZ #17244]
11471         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
11472         Remove extra va_start/va_end calls.
11473
11474         [BZ #17243]
11475         * posix/execl.c (execl): Add missing va_end.
11476         * posix/execle.c (execle): Likewise.
11477         * posix/execlp.c (execlp): Likewise.
11478
11479 2015-09-15  Roland McGrath  <roland@hack.frob.com>
11480
11481         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
11482         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
11483
11484 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
11485
11486         [BZ #18967]
11487         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
11488         undefine around includes of <bits/mathcalls.h>.
11489         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
11490         not declare function.
11491         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
11492         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
11493         (scalb): Likewise.
11494         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
11495         not define macro.
11496         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
11497         variable.
11498         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
11499         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
11500         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
11501
11502         [BZ #18857]
11503         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
11504         return non-finite argument without doing ordered comparisons on
11505         it.
11506
11507         [BZ #16296]
11508         * math/fenv.h (fegetround): Use __attribute_pure__.
11509         * include/fenv.h (__fegetround): Likewise.
11510
11511         [BZ #18595]
11512         * math/s_ctan.c (__ctan): Force underflow exception for results
11513         whose real or imaginary part has small absolute value.
11514         * math/s_ctanf.c (__ctanf): Likewise.
11515         * math/s_ctanh.c (__ctanh): Likewise.
11516         * math/s_ctanhf.c (__ctanhf): Likewise.
11517         * math/s_ctanhl.c (__ctanhl): Likewise.
11518         * math/s_ctanl.c (__ctanl): Likewise.
11519         * math/auto-libm-test-in: Do not allow missing underflow for ctan
11520         and ctanh.  Add more tests of ctan and ctanh.
11521
11522         [BZ #15918]
11523         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
11524         handling of cases where one argument is an infinity.
11525
11526         [BZ #18875]
11527         [BZ #18966]
11528         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
11529         (MO): New macro.
11530         (__ieee754_exp10): For small results, force underflow exception
11531         and remove excess range and precision from return value.
11532         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
11533         (MO): New macro.
11534         (__ieee754_exp10f): For small results, force underflow exception
11535         and remove excess range and precision from return value.
11536         * math/auto-libm-test-in: Add more tests of exp10.
11537         * math/auto-libm-test-out: Regenerated.
11538
11539 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
11540
11541         [BZ #18875]
11542         [BZ #18961]
11543         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
11544         (MO): New macro.
11545         (__ieee754_exp): For small results, force underflow exception and
11546         remove excess range and precision from return value.
11547         (__exp_finite): Likewise.
11548         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
11549         (MO): New macro.
11550         (__ieee754_expf): For small results, force underflow exception and
11551         remove excess range and precision from return value.
11552         (__expf_finite): Likewise.
11553         * math/auto-libm-test-in: Add more tests of exp.
11554         * math/auto-libm-test-out: Regenerated.
11555
11556         [BZ #16521]
11557         [BZ #18875]
11558         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
11559         small results.
11560         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
11561         (MO): New macro.
11562         (__ieee754_exp2): For small results, force underflow exception and
11563         remove excess range and precision from return value.
11564         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
11565         (MO): New macro.
11566         (__ieee754_exp2f): For small results, force underflow exception
11567         and remove excess range and precision from return value.
11568         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
11569         (MO): New macro.
11570         (__ieee754_exp2l): Force underflow exception for small results.
11571         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
11572         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
11573         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
11574         (MO): New macro.
11575         (__ieee754_exp2l): Force underflow exception for small results.
11576         * math/auto-libm-test-in: Add more tests or exp2.
11577         * math/auto-libm-test-out: Regenerated.
11578
11579 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
11580
11581         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
11582
11583         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
11584         /dev/null.
11585
11586 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11587
11588         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
11589         io fs process)): Drop spurious backslash.
11590
11591 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
11592
11593         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
11594         Use sysinfo system call instead of parsing /proc/meminfo.
11595         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
11596         Likewise.
11597
11598 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
11599
11600         [BZ #16985]
11601         * programs/localedef.c (main): Display argv[remaining] when
11602         output_path is NULL.
11603
11604 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
11605
11606         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
11607         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
11608         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
11609         tanh.
11610         * math/auto-libm-test-out: Regenerated.
11611         * sysdeps/i386/fpu/libm-test-ulps: Update.
11612         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
11613         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11614         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11615
11616 2015-09-11  Roland McGrath  <roland@hack.frob.com>
11617
11618         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
11619         Use 'override' keyword to freeze the value here, preventing
11620         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
11621
11622 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
11623
11624         [BZ #14912]
11625         * sysdeps/aarch64/bits/atomic.h: Move to ...
11626         * sysdeps/aarch64/atomic-machine.h: ...here.
11627         (_AARCH64_BITS_ATOMIC_H): Rename macro to
11628         _AARCH64_ATOMIC_MACHINE_H.
11629         * sysdeps/alpha/bits/atomic.h: Move to ...
11630         * sysdeps/alpha/atomic-machine.h: ...here.
11631         * sysdeps/arm/bits/atomic.h: Move to ...
11632         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
11633         * bits/atomic.h: Move to ...
11634         * sysdeps/generic/atomic-machine.h: ...here.
11635         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11636         * sysdeps/i386/bits/atomic.h: Move to ...
11637         * sysdeps/i386/atomic-machine.h: ...here.
11638         * sysdeps/ia64/bits/atomic.h: Move to ...
11639         * sysdeps/ia64/atomic-machine.h: ...here.
11640         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
11641         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
11642         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11643         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
11644         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
11645         * sysdeps/microblaze/bits/atomic.h: Move to ...
11646         * sysdeps/microblaze/atomic-machine.h: ...here.
11647         * sysdeps/mips/bits/atomic.h: Move to ...
11648         * sysdeps/mips/atomic-machine.h: ...here.
11649         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
11650         * sysdeps/powerpc/bits/atomic.h: Move to ...
11651         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
11652         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
11653         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
11654         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
11655         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
11656         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
11657         <atomic-machine.h> instead of <bits/atomic.h>.
11658         * sysdeps/s390/bits/atomic.h: Move to ...
11659         * sysdeps/s390/atomic-machine.h: ...here.
11660         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
11661         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
11662         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11663         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
11664         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
11665         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
11666         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
11667         * sysdeps/tile/bits/atomic.h: Move to ...
11668         * sysdeps/tile/atomic-machine.h: ...here.
11669         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
11670         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
11671         <sysdeps/tile/atomic-machine.h> instead of
11672         <sysdeps/tile/bits/atomic.h>.
11673         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11674         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
11675         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
11676         <sysdeps/tile/atomic-machine.h> instead of
11677         <sysdeps/tile/bits/atomic.h>.
11678         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11679         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
11680         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
11681         <sysdeps/arm/atomic-machine.h> instead of
11682         <sysdeps/arm/bits/atomic.h>.
11683         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
11684         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
11685         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11686         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
11687         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
11688         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
11689         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
11690         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
11691         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
11692         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
11693         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
11694         * sysdeps/x86_64/bits/atomic.h: Move to ...
11695         * sysdeps/x86_64/atomic-machine.h: ...here.
11696         * include/atomic.h: Include <atomic-machine.h> instead of
11697         <bits/atomic.h>.
11698
11699         * sysdeps/mips/mips32/libm-test-ulps: Update.
11700         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11701
11702         [BZ #18952]
11703         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
11704         not convert non-integer negative arguments to int to determine the
11705         value of signgam.
11706         * math/auto-libm-test-in: Add more tests of lgamma.
11707         * math/auto-libm-test-out: Regenerated.
11708
11709         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
11710         cosh, csqrt, erfc, expm1 and lgamma.
11711         * math/auto-libm-test-out: Regenerated.
11712         * sysdeps/i386/fpu/libm-test-ulps: Update.
11713         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11714
11715 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
11716
11717         [BZ #2542]
11718         [BZ #2543]
11719         [BZ #2558]
11720         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
11721         __lgamma_neg for arguments from -28.0 to -2.0.
11722         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
11723         __lgamma_negf for arguments from -15.0 to -2.0.
11724         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
11725         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
11726         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
11727         Call __lgamma_negl for arguments from -33.0 to -2.0.
11728         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
11729         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
11730         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11731         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
11732         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
11733         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
11734         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
11735         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
11736         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
11737         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
11738         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
11739         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
11740         (__lgamma_neg): Likewise.
11741         (__lgamma_negl): Likewise.
11742         (__lgamma_product): Likewise.
11743         (__lgamma_productl): Likewise.
11744         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
11745         * math/auto-libm-test-in: Add more tests of lgamma.
11746         * math/auto-libm-test-out: Regenerated.
11747         * sysdeps/i386/fpu/libm-test-ulps: Update.
11748         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11749
11750 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
11751
11752         [BZ #18675]
11753         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
11754
11755 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
11756
11757         [BZ #14912]
11758         * bits/libc-lock.h: Move to ...
11759         * sysdeps/generic/libc-lock.h: ...here.
11760         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11761         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
11762         * sysdeps/mach/hurd/libc-lock.h: ...here.
11763         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11764         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
11765         * sysdeps/mach/bits/libc-lock.h: Move to ...
11766         * sysdeps/mach/libc-lock.h: ...here.
11767         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11768         * sysdeps/nptl/bits/libc-lock.h: Move to ...
11769         * sysdeps/nptl/libc-lock.h: ...here.
11770         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
11771         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
11772         * sysdeps/nptl/libc-lockP.h: ...here.
11773         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
11774         * crypt/crypt_util.c: Include <libc-lock.h> instead of
11775         <bits/libc-lock.h>.
11776         * dirent/scandir-tail.c: Likewise.
11777         * dlfcn/dlerror.c: Likewise.
11778         * elf/dl-close.c: Likewise.
11779         * elf/dl-iteratephdr.c: Likewise.
11780         * elf/dl-lookup.c: Likewise.
11781         * elf/dl-open.c: Likewise.
11782         * elf/dl-support.c: Likewise.
11783         * elf/dl-writev.h: Likewise.
11784         * elf/rtld.c: Likewise.
11785         * grp/fgetgrent.c: Likewise.
11786         * gshadow/fgetsgent.c: Likewise.
11787         * gshadow/sgetsgent.c: Likewise.
11788         * iconv/gconv_conf.c: Likewise.
11789         * iconv/gconv_db.c: Likewise.
11790         * iconv/gconv_dl.c: Likewise.
11791         * iconv/gconv_int.h: Likewise.
11792         * iconv/gconv_trans.c: Likewise.
11793         * include/link.h: Likewise.
11794         * inet/getnameinfo.c: Likewise.
11795         * inet/getnetgrent.c: Likewise.
11796         * inet/getnetgrent_r.c: Likewise.
11797         * intl/bindtextdom.c: Likewise.
11798         * intl/dcigettext.c: Likewise.
11799         * intl/finddomain.c: Likewise.
11800         * intl/gettextP.h: Likewise.
11801         * intl/loadmsgcat.c: Likewise.
11802         * intl/localealias.c: Likewise.
11803         * intl/textdomain.c: Likewise.
11804         * libidn/idn-stub.c: Likewise.
11805         * libio/libioP.h: Likewise.
11806         * locale/duplocale.c: Likewise.
11807         * locale/freelocale.c: Likewise.
11808         * locale/newlocale.c: Likewise.
11809         * locale/setlocale.c: Likewise.
11810         * login/getutent_r.c: Likewise.
11811         * login/getutid_r.c: Likewise.
11812         * login/getutline_r.c: Likewise.
11813         * login/utmp-private.h: Likewise.
11814         * login/utmpname.c: Likewise.
11815         * malloc/mtrace.c: Likewise.
11816         * misc/efgcvt.c: Likewise.
11817         * misc/error.c: Likewise.
11818         * misc/fstab.c: Likewise.
11819         * misc/getpass.c: Likewise.
11820         * misc/mntent.c: Likewise.
11821         * misc/syslog.c: Likewise.
11822         * nis/nis_call.c: Likewise.
11823         * nis/nis_callback.c: Likewise.
11824         * nis/nss-default.c: Likewise.
11825         * nis/nss_compat/compat-grp.c: Likewise.
11826         * nis/nss_compat/compat-initgroups.c: Likewise.
11827         * nis/nss_compat/compat-pwd.c: Likewise.
11828         * nis/nss_compat/compat-spwd.c: Likewise.
11829         * nis/nss_nis/nis-alias.c: Likewise.
11830         * nis/nss_nis/nis-ethers.c: Likewise.
11831         * nis/nss_nis/nis-grp.c: Likewise.
11832         * nis/nss_nis/nis-hosts.c: Likewise.
11833         * nis/nss_nis/nis-network.c: Likewise.
11834         * nis/nss_nis/nis-proto.c: Likewise.
11835         * nis/nss_nis/nis-pwd.c: Likewise.
11836         * nis/nss_nis/nis-rpc.c: Likewise.
11837         * nis/nss_nis/nis-service.c: Likewise.
11838         * nis/nss_nis/nis-spwd.c: Likewise.
11839         * nis/nss_nisplus/nisplus-alias.c: Likewise.
11840         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
11841         * nis/nss_nisplus/nisplus-grp.c: Likewise.
11842         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
11843         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
11844         * nis/nss_nisplus/nisplus-network.c: Likewise.
11845         * nis/nss_nisplus/nisplus-proto.c: Likewise.
11846         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
11847         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
11848         * nis/nss_nisplus/nisplus-service.c: Likewise.
11849         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
11850         * nis/ypclnt.c: Likewise.
11851         * nptl/libc_pthread_init.c: Likewise.
11852         * nss/getXXbyYY.c: Likewise.
11853         * nss/getXXent.c: Likewise.
11854         * nss/getXXent_r.c: Likewise.
11855         * nss/nss_db/db-XXX.c: Likewise.
11856         * nss/nss_db/db-netgrp.c: Likewise.
11857         * nss/nss_db/nss_db.h: Likewise.
11858         * nss/nss_files/files-XXX.c: Likewise.
11859         * nss/nss_files/files-alias.c: Likewise.
11860         * nss/nsswitch.c: Likewise.
11861         * posix/regex_internal.h: Likewise.
11862         * posix/wordexp.c: Likewise.
11863         * pwd/fgetpwent.c: Likewise.
11864         * resolv/res_hconf.c: Likewise.
11865         * resolv/res_libc.c: Likewise.
11866         * shadow/fgetspent.c: Likewise.
11867         * shadow/lckpwdf.c: Likewise.
11868         * shadow/sgetspent.c: Likewise.
11869         * socket/opensock.c: Likewise.
11870         * stdio-common/reg-modifier.c: Likewise.
11871         * stdio-common/reg-printf.c: Likewise.
11872         * stdio-common/reg-type.c: Likewise.
11873         * stdio-common/vfprintf.c: Likewise.
11874         * stdio-common/vfscanf.c: Likewise.
11875         * stdlib/abort.c: Likewise.
11876         * stdlib/cxa_atexit.c: Likewise.
11877         * stdlib/fmtmsg.c: Likewise.
11878         * stdlib/random.c: Likewise.
11879         * stdlib/setenv.c: Likewise.
11880         * string/strsignal.c: Likewise.
11881         * sunrpc/auth_none.c: Likewise.
11882         * sunrpc/bindrsvprt.c: Likewise.
11883         * sunrpc/create_xid.c: Likewise.
11884         * sunrpc/key_call.c: Likewise.
11885         * sunrpc/rpc_thread.c: Likewise.
11886         * sysdeps/arm/backtrace.c: Likewise.
11887         * sysdeps/generic/ldsodefs.h: Likewise.
11888         * sysdeps/generic/stdio-lock.h: Likewise.
11889         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
11890         * sysdeps/i386/backtrace.c: Likewise.
11891         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
11892         * sysdeps/m68k/backtrace.c: Likewise.
11893         * sysdeps/mach/hurd/cthreads.c: Likewise.
11894         * sysdeps/mach/hurd/dirstream.h: Likewise.
11895         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
11896         * sysdeps/nptl/malloc-machine.h: Likewise.
11897         * sysdeps/nptl/stdio-lock.h: Likewise.
11898         * sysdeps/posix/dirstream.h: Likewise.
11899         * sysdeps/posix/getaddrinfo.c: Likewise.
11900         * sysdeps/posix/system.c: Likewise.
11901         * sysdeps/pthread/aio_suspend.c: Likewise.
11902         * sysdeps/s390/s390-32/backtrace.c: Likewise.
11903         * sysdeps/s390/s390-64/backtrace.c: Likewise.
11904         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
11905         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
11906         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
11907         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
11908         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
11909         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
11910         * sysdeps/unix/sysv/linux/system.c: Likewise.
11911         * sysdeps/x86_64/backtrace.c: Likewise.
11912         * time/alt_digit.c: Likewise.
11913         * time/era.c: Likewise.
11914         * time/tzset.c: Likewise.
11915         * wcsmbs/wcsmbsload.c: Likewise.
11916         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
11917         instead of <bits/libc-lock.h> in comment.
11918
11919 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
11920
11921         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
11922         Only use .set mips2 if the current ISA is below mips2.
11923         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
11924         Likewise.
11925         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
11926         mips32r2 if the current ISA is below mips32r2.
11927         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
11928         (TLS_IE): Updated to use the TLD_RDHWR macro.
11929         (TLS_LE): Likewise.
11930         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
11931         __ASSEMBLER__ condition.
11932
11933 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11934
11935         Fix parallel build of before-compile targets.
11936
11937         * sysdeps/mach/Makefile ($(patsubst
11938         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
11939         mach-before-compile target.
11940         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
11941         io fs process)): Move rule to dedicated hurd-before-compile target.
11942
11943 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11944
11945         Fix rules generating headers in hurd/ and mach/ when initial make call
11946         has subdir= explicitly set.
11947
11948         * sysdeps/mach/Makefile ($(patsubst
11949         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
11950         calling $(MAKE).
11951         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
11952         io fs process)): Force subdir to hurd when calling $(MAKE).
11953         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
11954         subdir to mach when calling $(MAKE).
11955
11956 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
11957
11958         Check sysheaders when looking for Mach and Hurd headers
11959
11960         * sysdeps/mach/configure.ac: Add sysheaders check.
11961         * sysdeps/mach/configure: Regenerate.
11962         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
11963         * sysdeps/mach/hurd/configure: Regenerate.
11964
11965 2015-09-04  Roland McGrath  <roland@hack.frob.com>
11966
11967         [BZ #18921]
11968         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
11969         Fix inverted sense of test of 'o_directory_works' value.
11970         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
11971         Bernhard Voelker <mail@bernhard-voelker.de>.
11972
11973 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
11974
11975         [BZ #14912]
11976         * bits/linkmap.h: Move to ...
11977         * sysdeps/generic/linkmap.h: ...here.
11978         * sysdeps/aarch64/bits/linkmap.h: Move to ...
11979         * sysdeps/aarch64/linkmap.h: ...here.
11980         * sysdeps/arm/bits/linkmap.h: Move to ...
11981         * sysdeps/arm/linkmap.h: ...here.
11982         * sysdeps/hppa/bits/linkmap.h: Move to ...
11983         * sysdeps/hppa/linkmap.h: ...here.
11984         * sysdeps/ia64/bits/linkmap.h: Move to ...
11985         * sysdeps/ia64/linkmap.h: ...here.
11986         * sysdeps/mips/bits/linkmap.h: Move to ...
11987         * sysdeps/mips/linkmap.h: ...here.
11988         * sysdeps/s390/bits/linkmap.h: Move to ...
11989         * sysdeps/s390/linkmap.h: ...here.
11990         * sysdeps/sh/bits/linkmap.h: Move to ...
11991         * sysdeps/sh/linkmap.h: ...here.
11992         * sysdeps/x86/bits/linkmap.h: Move to ...
11993         * sysdeps/x86/linkmap.h: ...here.
11994         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
11995
11996 2015-09-04  Andreas Schwab  <schwab@suse.de>
11997
11998         [BZ #18635]
11999         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12000         (__makecontext): Terminate FDE before return label.
12001         (__novec_makecontext): Likewise.
12002
12003 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12004
12005         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
12006         first member of struct sv in syscall macro.
12007
12008 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12009
12010         [BZ #14912]
12011         * bits/stdio-lock.h: Move to ...
12012         * sysdeps/generic/stdio-lock.h: ...here.
12013         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12014         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
12015         * sysdeps/nptl/stdio-lock.h: ...here.
12016         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12017         * include/libio.h: Include <stdio-lock.h> instead of
12018         <bits/stdio-lock.h>.
12019         * sysdeps/nptl/fork.c: Likewise.
12020         * sysdeps/pthread/flockfile.c: Likewise.
12021         * sysdeps/pthread/ftrylockfile.c: Likewise.
12022         * sysdeps/pthread/funlockfile.c: Likewise.
12023
12024         [BZ #14912]
12025         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
12026         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
12027         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
12028         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
12029         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
12030         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
12031         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
12032
12033 2015-09-03  Roland McGrath  <roland@hack.frob.com>
12034
12035         * elf/Makefile (test-xfail-tst-protected1a): New variable.
12036         (test-xfail-tst-protected1b): New variable.
12037
12038 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
12039
12040         [BZ #14912]
12041         * bits/libc-tsd.h: Move to ...
12042         * sysdeps/generic/libc-tsd.h: ...here.
12043         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
12044         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
12045         * sysdeps/mach/hurd/libc-tsd.h: ...here.
12046         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
12047         * include/ctype.h: Include <libc-tsd.h> instead of
12048         <bits/libc-tsd.h>.
12049         * include/rpc/rpc.h: Likewise.
12050         * locale/localeinfo.h: Likewise.
12051         * sunrpc/rpc_thread.c: Likewise.
12052         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12053         * sysdeps/nptl/malloc-machine.h: Likewise.
12054
12055         * Makefile (headers): Remove bits/libc-lock.h.
12056         * libio/Makefile (headers): Remove bits/stdio-lock.h.
12057
12058         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
12059         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
12060         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
12061         <bits/stdio-lock.h>.
12062         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
12063         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
12064
12065 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12066
12067         [BZ #18757]
12068         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
12069         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
12070         BZ #18757.
12071
12072 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12073
12074         * malloc/mtrace.pl: Filter out NULL entries.
12075
12076 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
12077
12078         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
12079         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
12080         macro.
12081
12082         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
12083         (TCP_CC_INFO): Likewise.
12084         (TCP_SAVE_SYN): Likewise.
12085         (TCP_SAVED_SYN): Likewise.
12086
12087 2015-08-31  Brett Neumeier <brett@neumeier.us>
12088
12089         [BZ #18870]
12090         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
12091
12092 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12093
12094         [BZ #18873]
12095         Fix broken overflow check in posix_fallocate
12096         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
12097         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
12098         Fix parenthesization typo.
12099
12100 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
12101
12102         [BZ #18887]
12103         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
12104         tst-mntent-blank-passno.
12105         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
12106         * misc/tst-mntent-blank-corrupt.c: New test.
12107         * misc/tst-mntent-blank-passno.c: New test ripped from ...
12108         * misc/tst-mntent.c (do_test): ... here.
12109
12110 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
12111
12112         [BZ #4404]
12113         * po/de.po: Fix SIGALRM typo.
12114
12115 2015-08-28  James Perkins  <james@loowit.net>
12116
12117         * time/tst-strptime2.c (tests): Replace short list of test
12118         strings for strptime %z specifier with code which exhaustively
12119         tests every combination of sign and 0 to 5 digits. Tests for
12120         rejection of invalid strings.
12121
12122 2015-08-28  James Perkins  <james@loowit.net>
12123
12124         [BZ #16141]
12125         * time/strptime_l.c (__strptime_internal): Fix %z minutes
12126         calculation, removing incorrect decimal time rounding, so that
12127         all minute values result in a valid seconds value.
12128         * time/strptime_l.c (__strptime_internal): Extend %z time zone
12129         offset range limits to UTC-99:59 through UTC+99:59 to parse
12130         current and historical use cases.
12131         * time/tst-strptime2.c (tests): Modify and add tests for the
12132         strptime %z input field descriptor, specifically conversion of
12133         minutes to seconds and validating an offset range of -9959 to
12134         +9959.
12135
12136 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12137             Dmitry V. Levin  <ldv@altlinux.org>
12138
12139         [BZ #18877]
12140         * posix/Makefile (tests): Add tst-mmap-offset.
12141         * posix/tst-mmap.c: New file.
12142         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
12143         offset calculation for negative values.
12144
12145 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12146
12147         * sysdeps/i386/init-arch.h: New file.
12148         * sysdeps/i386/i586/init-arch.h: Likewise.
12149         * sysdeps/i386/i686/init-arch.h: Likewise.
12150         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
12151         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
12152         * sysdeps/x86/cpu-features.h (bit_I586): New.
12153         (bit_I686): Likewise.
12154         (bit_CX8): Likewise.
12155         (bit_CMOV): Likewise.
12156         (index_CX8): Likewise.
12157         (index_CMOV): Likewise.
12158         (index_I586): Likewise.
12159         (index_I686): Likewise.
12160         (reg_CX8): Likewise.
12161         (reg_CMOV): Likewise.
12162         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
12163         available at compile-time.
12164         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
12165         available at compile-time.
12166         * sysdeps/x86/init-arch.h (USE_I586): New macro.
12167         (USE_I686): Likewise.
12168
12169 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12170
12171         * sysdeps/i386/bcopy.S: New file.
12172         * sysdeps/i386/bzero.S: Likewise.
12173         * sysdeps/i386/memcpy.S: Likewise.
12174         * sysdeps/i386/memmove.S: Likewise.
12175         * sysdeps/i386/mempcpy.S: Likewise.
12176         * sysdeps/i386/memset.S: Likewise.
12177         * sysdeps/i386/bzero.c: Removed.
12178         * sysdeps/i386/memset.c: Likewise.
12179         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
12180         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
12181         * sysdeps/i386/i586/memset_chk.S: Likewise.
12182         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
12183         * sysdeps/i386/memcpy_chk.S: Here.
12184         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
12185         * sysdeps/i386/memmove_chk.S: Here.
12186         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
12187         * sysdeps/i386/mempcpy_chk.S: Likewise.
12188         * sysdeps/i386/i686/memset_chk.S: Moved to ...
12189         * sysdeps/i386/memset_chk.S: Likewise.
12190
12191 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
12192
12193         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
12194         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
12195         file, move DIAG_POP_NEEDS_COMMENT to end of file.
12196         * soft-fp/fmadf4.c: Ditto.
12197         * soft-fp/fmatf4.c: Ditto.
12198
12199 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12200
12201         * sysdeps/i386/i586/Implies: Removed.
12202         * sysdeps/i386/i686/Implies: Likewise.
12203
12204 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12205
12206         * sysdeps/i386/i486/strlen.S: Moved to ...
12207         * sysdeps/i386/strlen.S: Here.
12208
12209 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12210
12211         * sysdeps/i386/i486/strcat.S: Moved to ...
12212         * sysdeps/i386/strcat.S: Here.
12213
12214 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12215
12216         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
12217         * sysdeps/i386/pthread_spin_trylock.S: Here.
12218         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
12219         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
12220
12221 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12222
12223         * sysdeps/i386/i486/string-inlines.c: Moved to ...
12224         * sysdeps/i386/string-inlines.c: Here.
12225
12226 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12227
12228         * sysdeps/i386/i486/htonl.S: Moved ...
12229         * sysdeps/i386/htonl.S: here.
12230
12231 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12232
12233         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
12234         * sysdeps/i386/bits/atomic.h: Here.
12235
12236 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12237
12238         * sysdeps/i386/i486/Versions: Removed.
12239
12240 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
12241
12242         [BZ #2898]
12243         * misc/mktemp.c: Add mkdtemp to the link_warning message.
12244         Based on patch by Aurelien Jarno.
12245
12246 2015-08-26  Stan Shebs  <stanshebs@google.com>
12247
12248         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
12249         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
12250
12251 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12252
12253         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
12254         * sysdeps/powerpc/dl-procinfo.c:
12255         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
12256         feature so it shows when LD_SHOW_AUXV=1.
12257
12258 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12259
12260         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
12261         (__arch_compare_and_exchange_val_32_acq): Remove and use common
12262         definition.  ISA 2.07B no longer requires full sync.
12263
12264 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
12265
12266         [BZ #18863]
12267         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
12268         (si_call_addr): Define.
12269         (si_syscall): Define.
12270         (si_arch): Define.
12271
12272 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12273
12274         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
12275         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
12276         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
12277         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12278         (__memset_zero_constant_len_parameter): New.
12279         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
12280         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12281         (__memset_zero_constant_len_parameter): Don't define if
12282         __memset_chk or USE_AS_BZERO are defined.
12283
12284         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
12285         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
12286         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
12287
12288         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
12289         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
12290         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
12291         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
12292         comments.
12293         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
12294         -mno-mmx for $(all-rtld-routines).
12295         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
12296         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
12297         i386.
12298
12299 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
12300
12301         * sysdeps/generic/unwind.h
12302         (_Unwind_Word): Use __mode__(__unwind_word__)
12303         instead of __mode__(__word__).
12304         (_Unwind_Sword): Likewise.
12305
12306         * sysdeps/s390/s390-64/utf8-utf16-z9.c
12307         (MAX_NEEDED_INPUT): New define.
12308         (MAX_NEEDED_OUTPUT): New define.
12309
12310         * NEWS: New item for IBM z13 string optimizations.
12311
12312         * sysdeps/s390/multiarch/memrchr-c.c: New File.
12313         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
12314         * sysdeps/s390/multiarch/memrchr.c: Likewise.
12315         * sysdeps/s390/multiarch/Makefile
12316         (sysdep_routines): Add memrchr functions.
12317         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12318         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
12319
12320         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
12321         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
12322         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
12323         * sysdeps/s390/multiarch/Makefile
12324         (sysdep_routines): Add wmemcmp functions.
12325         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12326         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
12327         * benchtests/bench-wmemcmp.c: New File.
12328         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
12329
12330         * sysdeps/s390/multiarch/wmemset-c.c: New File.
12331         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
12332         * sysdeps/s390/multiarch/wmemset.c: Likewise.
12333         * sysdeps/s390/multiarch/Makefile
12334         (sysdep_routines): Add wmemset functions.
12335         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12336         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
12337         * wcsmbs/wmemset.c: Use WMEMSET if defined.
12338         * string/test-memset.c: Add wmemset support.
12339         * wcsmbs/test-wmemset.c: New File.
12340         * wcsmbs/Makefile (strop-tests): Add wmemset.
12341         * benchtests/bench-memset.c: Add wmemset support.
12342         * benchtests/bench-wmemset.c: New File.
12343         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
12344
12345         * sysdeps/s390/multiarch/memccpy-c.c: New File.
12346         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
12347         * sysdeps/s390/multiarch/memccpy.c: Likewise.
12348         * sysdeps/s390/multiarch/Makefile
12349         (sysdep_routines): Add memccpy functions.
12350         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12351         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
12352         * string/memccpy.c: Use MEMCCPY if defined.
12353
12354         * sysdeps/s390/multiarch/memchr-vx.S: New File.
12355         * sysdeps/s390/multiarch/memchr.c: Likewise.
12356         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
12357         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
12358         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
12359         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
12360         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
12361         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
12362         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
12363         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
12364         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
12365         and rawmemchr functions.
12366         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12367         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
12368         and wmemchr.
12369         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
12370         * string/test-memchr.c: Add wmemchr support.
12371         * wcsmbs/test-wmemchr.c: New File.
12372         * wcsmbs/Makefile (strop-tests): Add wmemchr.
12373         * benchtests/bench-memchr.c: Add wmemchr support.
12374         * benchtests/bench-wmemchr.c: New File.
12375         * benchtests/Makefile (wcsmbs-bench): wmemchr.
12376
12377         * sysdeps/s390/multiarch/strcspn-c.c: New File.
12378         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
12379         * sysdeps/s390/multiarch/strcspn.c: Likewise.
12380         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
12381         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
12382         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
12383         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
12384         wcscspn functions.
12385         * sysdeps/s390/multiarch/ifunc-impl-list.c
12386         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
12387         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
12388         * string/test-strcspn.c: Add wcscspn support.
12389         * wcsmbs/test-wcscspn.c: New File.
12390         * wcsmbs/Makefile (strop-tests): Add wcscspn.
12391         * benchtests/bench-strcspn.c: Add wcscspn support.
12392         * benchtests/bench-wcscspn.c: New File.
12393         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
12394
12395         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
12396         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
12397         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
12398         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
12399         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
12400         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
12401         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
12402         wcspbrk functions.
12403         * sysdeps/s390/multiarch/ifunc-impl-list.c
12404         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
12405         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
12406         * string/test-strpbrk.c: Add wcspbrk support.
12407         * wcsmbs/test-wcspbrk.c: New File.
12408         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
12409         * benchtests/bench-strpbrk.c: Add wcspbrk support.
12410         * benchtests/bench-wcspbrk.c: New File.
12411         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
12412
12413         * sysdeps/s390/multiarch/strspn-c.c: New File.
12414         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
12415         * sysdeps/s390/multiarch/strspn.c: Likewise.
12416         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
12417         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
12418         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
12419         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
12420         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
12421         wcsspn functions.
12422         * sysdeps/s390/multiarch/ifunc-impl-list.c
12423         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
12424         * string/test-strspn.c: Add wcsspn support.
12425         * wcsmbs/test-wcsspn.c: New File.
12426         * wcsmbs/Makefile (strop-tests): Add wcsspn.
12427         * benchtests/bench-strspn.c: Add wcsspn support.
12428         * benchtests/bench-wcsspn.c: New File.
12429         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
12430
12431         * sysdeps/s390/multiarch/strrchr-c.c: New File.
12432         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
12433         * sysdeps/s390/multiarch/strrchr.c: Likewise.
12434         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
12435         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
12436         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
12437         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
12438         wcsrchr functions.
12439         * sysdeps/s390/multiarch/ifunc-impl-list.c
12440         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
12441         * benchtests/bench-wcsrchr.c: New File.
12442         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
12443
12444         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
12445         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
12446         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
12447         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
12448         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
12449         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
12450         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
12451         wcschrnul functions.
12452         * sysdeps/s390/multiarch/ifunc-impl-list.c
12453         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
12454         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
12455         * string/test-strchr.c: Add wcschrnul support.
12456         * wcsmbs/test-wcschrnul.c: New File.
12457         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
12458         * benchtests/bench-strchr.c: Add wcschrnul support.
12459         * benchtests/bench-wcschrnul.c: New File.
12460         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
12461
12462         * sysdeps/s390/multiarch/strchr-c.c: New File.
12463         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
12464         * sysdeps/s390/multiarch/strchr.c: Likewise.
12465         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
12466         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
12467         * sysdeps/s390/multiarch/wcschr.c: Likewise.
12468         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
12469         wcschr functions.
12470         * sysdeps/s390/multiarch/ifunc-impl-list.c
12471         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
12472         * string/strchr.c (STRCHR): Define and use macro.
12473         * benchtests/bench-wcschr.c: New File.
12474         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
12475
12476         * sysdeps/s390/multiarch/strncmp-c.c: New File.
12477         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
12478         * sysdeps/s390/multiarch/strncmp.c: Likewise.
12479         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
12480         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
12481         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
12482         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
12483         wcsncmp functions.
12484         * sysdeps/s390/multiarch/ifunc-impl-list.c
12485         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
12486         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
12487         * benchtests/bench-strncmp.c: Add wcsncmp support.
12488         * benchtests/bench-wcsncmp.c: New File.
12489         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
12490
12491         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
12492         * sysdeps/s390/multiarch/strcmp.c: Likewise.
12493         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
12494         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
12495         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
12496         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
12497         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
12498         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
12499         wcscmp functions.
12500         * sysdeps/s390/multiarch/ifunc-impl-list.c
12501         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
12502         * string/strcmp.c (STRCMP): Define and use macro.
12503         * benchtests/bench-wcscmp.c: New File.
12504         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
12505         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
12506         instead of _HAVE_STRING_ARCH_memchr.
12507
12508         * sysdeps/s390/multiarch/strncat-c.c: New File.
12509         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
12510         * sysdeps/s390/multiarch/strncat.c: Likewise.
12511         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
12512         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
12513         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
12514         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
12515         wcsncat functions.
12516         * sysdeps/s390/multiarch/ifunc-impl-list.c
12517         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
12518         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
12519         * string/test-strncat.c: Add wcsncat support.
12520         * wcsmbs/test-wcsncat.c: New File.
12521         * wcsmbs/Makefile (strop-tests): Add wcsncat.
12522         * benchtests/bench-strncat.c: Add wcsncat support.
12523         * benchtests/bench-wcsncat.c: New File.
12524         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
12525
12526         * sysdeps/s390/multiarch/strcat-c.c: New File.
12527         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
12528         * sysdeps/s390/multiarch/strcat.c: Likewise.
12529         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
12530         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
12531         * sysdeps/s390/multiarch/wcscat.c: Likewise.
12532         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
12533         wcscat functions.
12534         * sysdeps/s390/multiarch/ifunc-impl-list.c
12535         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
12536         * string/strcat.c (STRCAT): Define and use macro.
12537         * wcsmbs/wcscat.c: Use WCSCAT if defined.
12538         * string/test-strcat.c: Add wcscat support.
12539         * wcsmbs/test-wcscat.c: New File.
12540         * wcsmbs/Makefile (strop-tests): Add wcscat.
12541         * benchtests/bench-strcat.c: Add wcscat support.
12542         * benchtests/bench-wcscat.c: New File.
12543         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
12544
12545         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
12546         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
12547         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
12548         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
12549         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
12550         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
12551         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
12552         wcpncpy functions.
12553         * sysdeps/s390/multiarch/ifunc-impl-list.c
12554         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
12555         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
12556         * string/test-stpncpy.c: Add wcpncpy support.
12557         * wcsmbs/test-wcpncpy.c: New File.
12558         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
12559         * benchtests/bench-stpncpy.c: Add wcpncpy support.
12560         * benchtests/bench-wcpncpy.c: New File.
12561         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
12562
12563         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
12564         * sysdeps/s390/multiarch/strncpy.c: Likewise.
12565         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
12566         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
12567         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
12568         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
12569         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
12570         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
12571         wcsncpy functions.
12572         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
12573         * sysdeps/s390/multiarch/ifunc-impl-list.c
12574         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
12575         * string/test-strncpy.c: Add wcsncpy support.
12576         * wcsmbs/test-wcsncpy.c: New File.
12577         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
12578         * benchtests/bench-strncpy.c: Add wcsncpy support.
12579         * benchtests/bench-wcsncpy.c: New File.
12580         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
12581
12582         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
12583         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
12584         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
12585         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
12586         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
12587         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
12588         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
12589         wcpcpy functions.
12590         * string/stpcpy.c: Use STPCPY if defined.
12591         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
12592         * sysdeps/s390/multiarch/ifunc-impl-list.c
12593         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
12594         * string/test-stpcpy.c: Add wcpcpy support.
12595         * wcsmbs/test-wcpcpy.c: New File.
12596         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
12597         * benchtests/bench-stpcpy.c: Add wcpcpy support.
12598         * benchtests/bench-wcpcpy.c: New File.
12599         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
12600
12601         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
12602         * sysdeps/s390/multiarch/strcpy.c: Likewise.
12603         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
12604         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
12605         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
12606         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
12607         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
12608         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
12609         wcscpy functions.
12610         * sysdeps/s390/multiarch/ifunc-impl-list.c
12611         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
12612         * benchtests/bench-wcscpy.c: New File.
12613         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
12614
12615         * sysdeps/s390/multiarch/strnlen-c.c: New File.
12616         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
12617         * sysdeps/s390/multiarch/strnlen.c: Likewise.
12618         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
12619         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
12620         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
12621         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
12622         wcsnlen functions.
12623         * sysdeps/s390/multiarch/ifunc-impl-list.c
12624         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
12625         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
12626         * string/test-strnlen.c: Add wcsnlen support.
12627         * wcsmbs/test-wcsnlen.c: New File.
12628         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
12629         * benchtests/bench-strnlen.c: Add wcsnlen support.
12630         * benchtests/bench-wcsnlen.c: New File.
12631         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
12632
12633         * sysdeps/s390/multiarch/Makefile: New File.
12634         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
12635         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
12636         * sysdeps/s390/multiarch/strlen.c: Likewise.
12637         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
12638         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
12639         * sysdeps/s390/multiarch/wcslen.c: Likewise.
12640         * string/strlen.c (STRLEN): Define and use macro.
12641         * sysdeps/s390/multiarch/ifunc-impl-list.c
12642         (IFUNC_VX_IMPL): New macro function.
12643         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
12644         * benchtests/Makefile (wcsmbs-bench): New variable.
12645         (string-bench-all): Added wcsmbs-bench.
12646         * benchtests/bench-wcslen.c: New File.
12647
12648         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
12649         s390_vx_libc_ifunc2): New macro function.
12650
12651         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
12652         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
12653         assembler support.
12654         * sysdeps/s390/configure: Regenerated.
12655
12656         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
12657         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
12658
12659         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
12660         * sysdeps/s390/dl-procinfo.h: Add vector capability.
12661         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
12662
12663         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
12664         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
12665         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
12666         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
12667         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
12668         (memcmp, bcmp): Use __memcmp_default as alias source.
12669         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
12670         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
12671         Rename to __memcmp_default.
12672         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
12673         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
12674         (memcpy): Use __memcpy_default as alias source.
12675         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
12676         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
12677         Rename to __memcpy_default.
12678         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
12679         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
12680         (memset): Use __memset_default as alias source.
12681         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
12682         * sysdeps/s390/s390-32/memset.S (__memset_g5):
12683         Rename to __memset_default.
12684         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
12685         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
12686         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
12687         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
12688         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
12689         (memcmp, bcmp): Use __memcmp_default as alias source.
12690         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
12691         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
12692         Rename to __memcmp_default.
12693         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
12694         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
12695         (memcpy): Use __memcpy_default as alias source.
12696         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
12697         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
12698         Rename to __memcpy_default.
12699         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
12700         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
12701         (memset): Use __memset_default as alias source.
12702         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
12703         * sysdeps/s390/s390-64/memset.S (__memset_z900):
12704         Rename to __memset_default.
12705         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
12706         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
12707
12708         [BZ #18610]
12709         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
12710         __ieee_instruction_pointer to __unused.
12711         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
12712         __ieee_instruction_pointer.
12713         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
12714         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
12715         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
12716         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
12717         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
12718         Mark dxc-field as reserved.
12719
12720 2015-08-25  Roland McGrath  <roland@hack.frob.com>
12721
12722         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
12723         if the weak reference is not null.
12724
12725 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12726
12727         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
12728
12729         [BZ #11214]
12730         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
12731
12732 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12733
12734         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
12735         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
12736         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
12737         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
12738         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
12739         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
12740         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
12741         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
12742         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
12743         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
12744         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
12745         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
12746         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
12747         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
12748         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
12749         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
12750         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
12751         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
12752
12753 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12754
12755         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
12756         register other than r0 for tabort, it has special meaning.
12757         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
12758         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
12759         transaction before starting syscall.
12760
12761 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12762
12763         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
12764
12765 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12766
12767         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
12768
12769         * sysdeps/x86_64/rtld-memcmp.c: Removed.
12770         * sysdeps/x86_64/rtld-memset.S: Likewise.
12771         * sysdeps/x86_64/rtld-strchr.S: Likewise.
12772         * sysdeps/x86_64/rtld-strlen.S: Likewise.
12773         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
12774         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
12775
12776         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
12777
12778 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
12779
12780         * debug/strcpy_chk.c: Improve performance.
12781         * debug/stpcpy_chk.c: Likewise.
12782         * sysdeps/x86_64/strcpy_chk.S: Remove.
12783         * sysdeps/x86_64/stpcpy_chk.S: Remove.
12784
12785         [BZ #18240]
12786         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
12787
12788 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
12789
12790         [BZ #15128]
12791         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
12792         ifuncmain8.
12793         (modules-names): Add ifuncmod8.
12794         ($(objpfx)ifuncmain8): New rule.
12795         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
12796         <cpuid.h>.
12797         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
12798         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
12799         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
12800         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
12801         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
12802         * sysdeps/x86_64/dl-trampoline.h: Likewise.
12803         * sysdeps/x86_64/ifuncmain8.c: New file.
12804         * sysdeps/x86_64/ifuncmod8.c: Likewise.
12805         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
12806         Removed.
12807         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
12808         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
12809         Change rtld_savespace_sse to __glibc_unused2.
12810         (RTLD_CHECK_FOREIGN_CALL): Removed.
12811         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
12812         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
12813         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
12814
12815 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
12816
12817         * sysdeps/aarch64/bzero.S (__bzero): Remove.
12818
12819 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
12820
12821         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
12822         Unconditionally set __fpcr to avoid uninialized warning.
12823         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
12824
12825 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
12826
12827         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
12828         is corrupt.
12829
12830         * malloc/arena.c (arena_get2): Drop unused argument.
12831         (arena_lock): Adjust.
12832         (arena_get_retry): Likewise.
12833
12834 2015-08-24  Andreas Schwab  <schwab@suse.de>
12835
12836         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
12837         Don't define.
12838         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
12839         (__ASSUME_IPC64): Don't undef.
12840         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
12841         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
12842         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
12843         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
12844         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
12845         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
12846         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
12847         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
12848         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
12849         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
12850         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
12851         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
12852         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
12853         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
12854         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
12855         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
12856         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
12857         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
12858         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
12859         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
12860         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
12861
12862 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
12863
12864         * manual/Makefile (install): Only build manual when perl is available.
12865
12866 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12867
12868         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
12869         '#undef memcpy' by '#undef memchr'.
12870
12871 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12872
12873         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
12874         memchr not point to the internal __GI_memchr implementation.
12875
12876 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
12877
12878         * timezone/Makefile (CFLAGS-zdump.c): Remove
12879         -Wno-strict-prototypes.
12880         (CFLAGS-zic.c): Likewise.
12881         (CFLAGS-ialloc.c): Likewise.
12882         (CFLAGS-scheck.c): Likewise.
12883
12884         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
12885         -Wno-error=undef.
12886
12887 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12888
12889         * i386/i686/multiarch/strcasestr-c.c: Removed.
12890         * x86_64/multiarch/strcasestr.c: Likewise.
12891         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
12892         Remove strcasestr.
12893
12894 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
12895
12896         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
12897
12898         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
12899         variables for high and low parts before possibly modifying them.
12900
12901 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12902
12903         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
12904         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
12905         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
12906         of "multiarch/init-arch.h".
12907         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
12908         * sysdeps/x86/init-arch.h: This.
12909
12910 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
12911
12912         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
12913         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
12914
12915 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
12916
12917         [BZ #17787]
12918         * manual/macros.texi: Add twoexp macro.
12919         * manual/filesys.texi: Fix exponents.
12920         * manual/llio.texi: Likewise.
12921         * manual/stdio.texi: Likewise.
12922
12923 2015-08-20  Florian Weimer  <fweimer@redhat.com>
12924
12925         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
12926         incorrect use.
12927
12928 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
12929
12930         [BZ #18370]
12931         * math/s_csqrt.c (__csqrt): Force underflow exception for results
12932         whose real or imaginary part has small absolute value.
12933         * math/s_csqrtf.c (__csqrtf): Likewise.
12934         * math/s_csqrtl.c (__csqrtl): Likewise.
12935         * math/auto-libm-test-in: Add more tests of csqrt.
12936         * math/auto-libm-test-out: Regenerated.
12937         * sysdeps/i386/fpu/libm-test-ulps: Update.
12938
12939 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
12940
12941         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
12942         __ppc_set_ppr_very_low): New functions.
12943         * manual/platform.texi: Add documentation about
12944         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
12945
12946 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
12947
12948         * string/stpncpy.c (stpncpy): Improve performance using
12949         __strnlen/memcpy/memset.
12950
12951 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
12952
12953         [BZ #18796]
12954         * scripts/test-installation.pl: Don't add -lmvec to build options if
12955         libmvec wasn't built.
12956
12957 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
12958
12959         [BZ #14341]
12960         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
12961         case when there is a gap between DT_REL and DT_JMPREL sections.
12962         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
12963         (LDFLAGS-tst-split-dynreloc): New.
12964         (tst-split-dynreloc-ENV): Likewise.
12965         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
12966         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
12967
12968 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12969
12970         [BZ #18822]
12971         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
12972         attribute_hidden.
12973         (__xstat64_conv): Likewise.
12974         (__xstat32_conv): Likewise.
12975
12976 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12977
12978         [BZ #18822]
12979         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
12980         Don't load %ebx when calling __setcontext.  Call __setcontext
12981         with HIDDEN_JUMPTARGET.
12982         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
12983         libc_hidden_def.
12984
12985 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12986
12987         * sysdeps/i386/i686/Makefile
12988         [$(subdir) == string] (sysdep_routines): Moved to ...
12989         * sysdeps/i386/Makefile: Here.
12990         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
12991         * sysdeps/i386/cacheinfo.c: Here.
12992         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
12993         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
12994         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
12995         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
12996
12997 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12998
12999         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
13000         __i586__ is defined.
13001         (HAS_I686): Defined to 1 if __i686__ is defined.
13002
13003 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13004
13005         * elf/Makefile [$(have-z-execstack) = yes]
13006         (CPPFLAGS-tst-execstack.c): New variable.
13007
13008         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
13009         conditional to [defined UTMPX || _HAVE_UT_TYPE].
13010         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
13011         UTMPX || _HAVE_UT_TV].
13012         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
13013         UTMPX || _HAVE_UT_TV - 0].
13014
13015 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
13016
13017         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
13018         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
13019         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
13020
13021 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13022
13023         * sysdeps/powerpc/dl-procinfo.c:
13024         (_dl_powerpc_cap_flags): Added missing strings for some
13025         hwcap features.
13026         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
13027
13028 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13029
13030         Port the 0x7efe...feff pattern to GCC 6.
13031         See Steve Ellcey's bug report in:
13032         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
13033         * string/memrchr.c (MEMRCHR):
13034         * string/rawmemchr.c (RAWMEMCHR):
13035         * string/strchr.c (strchr):
13036         * string/strchrnul.c (STRCHRNUL):
13037         Rewrite code to avoid issues with signed shift overflow.
13038
13039 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13040
13041         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
13042         whether cpuid is available only if HAS_CPUID is 0.
13043         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
13044         (HAS_I586): Likewise.
13045         (HAS_I686): Likewise.
13046
13047 2015-08-18  Zack Weinberg  <zackw@panix.com>
13048
13049         * misc/Versions (libc): Add GLIBC_2.23.
13050
13051 2015-08-18  Alan Modra  <amodra@gmail.com>
13052
13053         [BZ #18421]
13054         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
13055         .Lp__global.
13056         (_start): Load %dp via .Lp__global.
13057         [!SHARED]: Use .section .rodata.
13058
13059 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13060
13061         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
13062         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
13063
13064 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13065
13066         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
13067         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
13068
13069 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13070
13071         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
13072         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
13073
13074 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13075
13076         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
13077         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
13078
13079 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13080
13081         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
13082         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
13083
13084 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13085
13086         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
13087         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
13088
13089 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13090
13091         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
13092
13093 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13094
13095         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
13096         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
13097         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
13098         (__ASSUME_LWS_CAS): Delete.
13099
13100 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13101
13102         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
13103         * sysdeps/hppa/configure: Regenerated.
13104         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
13105         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
13106         * sysdeps/hppa/nptl/tls.h: Likewise.
13107
13108 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
13109
13110         [BZ #18823]
13111         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
13112         for scaling up small arguments.
13113         * math/s_csqrtf.c (__csqrtf): Likewise.
13114         * math/s_csqrtl.c (__csqrtl): Likewise.
13115         * math/auto-libm-test-in: Add more tests of csqrt.
13116         * math/auto-libm-test-out: Regenerated.
13117
13118 2015-08-17  Andreas Schwab  <schwab@suse.de>
13119
13120         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
13121         version set GLIBC_2.19.
13122
13123 2015-08-16  Zack Weinberg  <zackw@panix.com>
13124
13125         [BZ #18681]
13126         * misc/regexp.h: This interface is no longer supported.
13127         Remove all contents, leaving only an #error directive.
13128         * misc/regexp.c (loc1, loc2, locs, step, advance):
13129         Demote to compatibility symbols.
13130
13131 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
13132
13133         [BZ #18084]
13134         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
13135         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
13136         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
13137         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
13138         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
13139         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
13140         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
13141         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
13142         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
13143
13144 2015-08-15  Zack Weinberg  <zackw@panix.com>
13145
13146         [BZ #18795]
13147         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
13148         buffer length is known to be too large, not if it's known to be
13149         small enough.
13150         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
13151         overflow at runtime, involving a length parameter, twice: once
13152         with a compile-time constant length parameter, once without.
13153
13154 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
13155
13156         [BZ #18824]
13157         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
13158         scaling x * y up instead of down.
13159         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13160         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13161         * math/auto-libm-test-in: Add more tests of fma.
13162         * math/auto-libm-test-out: Regenerated.
13163
13164 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
13165
13166         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
13167
13168 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13169
13170         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
13171         unnecessary movq.
13172         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
13173         Likewise.
13174
13175 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
13176
13177         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
13178         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
13179         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
13180         and tgamma.
13181         * math/auto-libm-test-out: Regenerated.
13182         * sysdeps/i386/fpu/libm-test-ulps: Update.
13183         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13184
13185         [BZ #16520]
13186         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
13187         (__tanh): Force underflow exception for arguments with small
13188         absolute value.
13189         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
13190         (__tanhf): Force underflow exception for arguments with small
13191         absolute value.
13192         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
13193         (__tanhl): Force underflow exception for arguments with small
13194         absolute value.
13195         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
13196         (__tanhl): Force underflow exception for arguments with small
13197         absolute value.
13198         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
13199         (__tanhl): Force underflow exception for arguments with small
13200         absolute value.
13201         * math/auto-libm-test-in: Add more tests of tanh.
13202         * math/auto-libm-test-out: Regenerated.
13203         * sysdeps/i386/fpu/libm-test-ulps: Update.
13204
13205 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13206
13207         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
13208         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
13209
13210 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13211
13212         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
13213         <cpuid.h>.
13214
13215 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13216
13217         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
13218         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
13219
13220 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13221
13222         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
13223         Remove $(objpfx)init-arch.o.
13224         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
13225         init-arch.
13226         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
13227         (INIT_ARCH_EXT): Defined as empty.
13228         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
13229         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
13230         __init_cpu_features call.  Replace HAS_XXX with
13231         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13232         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
13233         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
13234         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
13235         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
13236         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
13237         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
13238         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
13239         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
13240         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
13241         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
13242         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
13243         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
13244         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
13245         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
13246         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
13247         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
13248         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
13249         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
13250         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
13251         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
13252         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
13253         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
13254         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
13255         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
13256         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
13257         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
13258         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
13259         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
13260         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
13261         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
13262         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
13263         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
13264         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
13265         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
13266         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
13267
13268 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13269
13270         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
13271         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13272         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13273         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13274         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
13275         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
13276         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
13277         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
13278         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
13279         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
13280         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
13281         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
13282         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13283         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13284         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13285         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13286         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13287         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13288         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13289         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13290         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13291         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13292         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13293         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13294         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13295         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13296         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13297         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13298         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13299         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13300         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13301         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13302         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13303         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13304         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13305         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13306         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13307         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13308         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13309         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13310         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13311         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13312         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13313
13314 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13315
13316         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
13317         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13318         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13319         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13320         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13321         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
13322         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13323         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
13324         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13325         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13326         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13327         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
13328         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
13329         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
13330         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
13331         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
13332         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
13333         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
13334         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
13335         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
13336         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
13337         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
13338         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
13339         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
13340         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
13341         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
13342         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
13343         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
13344         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13345         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
13346         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
13347         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
13348         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
13349         * sysdeps/x86_64/multiarch/memset.S: Likewise.
13350         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
13351         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
13352         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
13353         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
13354         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
13355         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
13356         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
13357         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
13358         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
13359
13360 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13361
13362         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
13363         (dl_platform_init): Call init_cpu_features.
13364         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
13365         * sysdeps/i386/i686/cacheinfo.c
13366         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
13367         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
13368         * sysdeps/i386/i686/multiarch/Versions: Removed.
13369         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
13370         Removed.
13371         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
13372         * sysdeps/unix/sysv/linux/x86/Makefile
13373         (libpthread-sysdep_routines): Remove init-arch.
13374         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
13375         <sysdeps/x86_64/dl-procinfo.c> instead of
13376         sysdeps/generic/dl-procinfo.c>.
13377         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
13378         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
13379         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
13380         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
13381         [$(subdir) == elf] (tests-static): Add
13382         tst-get-cpu-features-static.
13383         * sysdeps/x86/Versions: New file.
13384         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
13385         * sysdeps/x86/cpu-features.c: Likewise.
13386         * sysdeps/x86/cpu-features.h: Likewise.
13387         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
13388         * sysdeps/x86/libc-start.c: Likewise.
13389         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
13390         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
13391         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
13392         * sysdeps/x86_64/dl-procinfo.c: Likewise.
13393         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
13394         Assume USE_MULTIARCH is defined and don't check it.
13395         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
13396         (is_amd): Likewise.
13397         (max_cpuid): Likewise.
13398         (intel_check_word): Likewise.
13399         (__cache_sysconf): Don't call __init_cpu_features.
13400         (__x86_preferred_memory_instruction): Removed.
13401         (init_cacheinfo): Don't call __init_cpu_features. Replace
13402         __cpu_features with GLRO(dl_x86_cpu_features).
13403         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
13404         (dl_platform_init): Call init_cpu_features.
13405         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
13406         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
13407         * sysdeps/x86_64/multiarch/Versions: Removed.
13408         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
13409         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
13410         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
13411         Removed.
13412         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
13413
13414 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
13415
13416         [BZ #18820]
13417         * libio/Makefile (test-fmemopen-mem): New test.
13418         * libio/test-fmemopen.c (do_bz18820): New test.
13419         * libio/fmemopen.c (__fmemopen): Fix memory leak.
13420         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
13421
13422 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
13423
13424         [BZ #16734]
13425         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
13426         (FREE_BUF): Delete.
13427         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
13428         * libio/genops.c (_IO_setb): Use malloc and free directly.
13429         (_IO_default_doallocate, _IO_default_finish): Likewise.
13430         ( _IO_unbuffer_all): Likewise.
13431         ( libc_freeres_fn): Likewise.
13432         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
13433         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
13434         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
13435         (_IO_wdefault_doallocate): Likewise.
13436
13437 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
13438
13439         [BZ #18086]
13440         * sysdeps/posix/nice.c (nice): Restore old errno.
13441         * posix/tst-nice.c (do_test): Add test for BZ #18086.
13442
13443 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
13444
13445         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
13446
13447 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13448
13449         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
13450         __bcopy and add a weak_alias to bcopy.
13451         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
13452         for static build.
13453
13454         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
13455         cleanup macro usage.
13456         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
13457         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
13458         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
13459         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
13460         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
13461         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
13462         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
13463         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
13464         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
13465         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
13466         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
13467         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
13468         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
13469         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
13470         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
13471         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
13472         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
13473         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
13474         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
13475
13476         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
13477         libc_hidden_def.
13478         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
13479
13480         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
13481         (sysdep_routines): Add strstr-ppc64.
13482         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
13483
13484 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
13485
13486         [BZ #18778]
13487         * elf/Makefile (tests): Add Add tst-nodelete2.
13488         (modules-names): Add tst-nodelete2mod.
13489         (tst-nodelete2mod.so-no-z-defs): New.
13490         ($(objpfx)tst-nodelete2): Likewise.
13491         ($(objpfx)tst-nodelete2.out): Likewise.
13492         (LDFLAGS-tst-nodelete2): Likewise.
13493         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
13494         out of loop through all loaded libraries.
13495         * elf/tst-nodelete2.c: New file.
13496         * elf/tst-nodelete2mod.c: Likewise.
13497         * elf/tst-znodelete-zlib.cc: Delete.
13498
13499 2015-08-11  Andreas Schwab  <schwab@suse.de>
13500
13501         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
13502         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
13503         (__openat64_nocancel): Likewise.
13504
13505 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
13506
13507         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
13508         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
13509         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
13510         * math/auto-libm-test-out: Regenerated.
13511         * sysdeps/i386/fpu/libm-test-ulps: Update.
13512         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13513
13514 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
13515
13516         [BZ #18790]
13517         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
13518         threshold for returning +/- 1.
13519         * math/auto-libm-test-in: Add more tests of tanh.
13520         * math/auto-libm-test-out: Regenerated.
13521         * sysdeps/i386/fpu/libm-test-ulps: Update.
13522
13523 2015-08-10  Andreas Schwab  <schwab@suse.de>
13524
13525         [BZ #18781]
13526         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
13527         MORE_OFLAGS to oflag.
13528         * io/test-lfs.c (do_test): Test openat64.
13529
13530 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
13531
13532         [BZ #18789]
13533         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
13534         smaller threshold for returning the argument.
13535         * math/auto-libm-test-in: Add more tests of sinh.
13536         * math/auto-libm-test-out: Regenerated.
13537         * sysdeps/i386/fpu/libm-test-ulps: Update.
13538
13539 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
13540
13541         [BZ #18674]
13542         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
13543         break.
13544
13545 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
13546
13547         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
13548         (generated): Don't add $(addprefix z.,$(tzfiles)).
13549
13550 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13551
13552         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
13553         * scripts/sysd-rules.awk: Likewise.
13554
13555 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13556
13557         * iconvdata/tst-tables.sh: Change echo -n to printf.
13558         * nss/db-Makefile: Likewise.
13559         * posix/tst-getconf.sh: Likewise.
13560         * stdio-common/tst-unbputc.sh: Likewise.
13561
13562 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
13563
13564         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
13565         MADV_*_PAGES defines behind this feature check.
13566
13567 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
13568
13569         [BZ #18480]
13570         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
13571         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
13572         Define.
13573         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
13574         LOAD_REGS_5, LOAD_REGS_6): Update.
13575         (INTERNAL_SYSCALL): Update using new LOAD defines.
13576         (INTERNAL_SYSCALL_NCS): Likewise.
13577         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
13578
13579 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
13580
13581         [BZ #16734]
13582         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
13583
13584 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
13585
13586         [BZ #17905]
13587         * catgets/Makefile (tst-catgets-mem): New test.
13588         * catgets/catgets.c (catopen): Don't use unbounded alloca.
13589         * catgets/open_catalog.c (__open_catalog): Likewise.
13590         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
13591
13592 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
13593
13594         [BZ #18787]
13595         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
13596         clobber registers.
13597         (atomic_compare_and_exchange_val_acq): Use register asms to assign
13598         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
13599         Cast return to __typeof (oldval).
13600
13601 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
13602
13603         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
13604         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
13605         and delete sys/syscall.h include.
13606
13607 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
13608
13609         [BZ #16517]
13610         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
13611         (tan): Force underflow exception for arguments with small absolute
13612         value.
13613         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
13614         (__kernel_tanf): Force underflow exception for arguments with
13615         small absolute value.
13616         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
13617         (__kernel_tanl): Force underflow exception for arguments with
13618         small absolute value.
13619         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
13620         (__kernel_tanl): Force underflow exception for arguments with
13621         small absolute value.
13622         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
13623         (__kernel_tanl): Force underflow exception for arguments with
13624         small absolute value.
13625         * math/auto-libm-test-in: Add more tests of tan.
13626         * math/auto-libm-test-out: Regenerated.
13627
13628 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13629
13630         Fix sysdeps/i386/fpu/s_scalbn.S build
13631
13632         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
13633
13634 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
13635
13636         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
13637
13638 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13639
13640         Fix gcrt0.o compilation
13641
13642         When static-start-installed-name is different from
13643         start-installed-name, we must not use the shared objects.
13644
13645         * csu/Makefile
13646         (extra-objs): Add gmon-start.o when building shared library and
13647         $(static-start-installed-name) is different from
13648         $(start-installed-name).
13649         $(objpfx)g$(static-start-installed-name): When building shared
13650         library and $(static-start-installed-name) is different from
13651         $(static-start-installed-name), revert to non-shared rule,
13652         i.e. using $(objpfx)% and gmon-start.o.
13653
13654 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
13655
13656         [BZ #16519]
13657         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
13658         (__ieee754_sinh): Force underflow exception for arguments with
13659         small absolute value.
13660         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
13661         (__ieee754_sinhf): Force underflow exception for arguments with
13662         small absolute value.
13663         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
13664         (__ieee754_sinhl): Force underflow exception for arguments with
13665         small absolute value.
13666         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
13667         (__ieee754_sinhl): Force underflow exception for arguments with
13668         small absolute value.
13669         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
13670         (__ieee754_sinhl): Force underflow exception for arguments with
13671         small absolute value.
13672         * math/auto-libm-test-in: Add more tests of sinh.
13673         * math/auto-libm-test-out: Regenerated.
13674         * sysdeps/i386/fpu/libm-test-ulps: Update.
13675
13676 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
13677
13678         * libio/oldfileops.c: Include unistd.h.
13679
13680 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
13681
13682         * stdlib/isomac.c: Include ctype.h.
13683
13684 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
13685
13686         * dirent/tst-seekdir.c (main): Converted to ...
13687         (do_test): ... this.
13688         (TEST_FUNCTION): New macro.
13689         Include test-skeleton.c.
13690         * elf/tst-dlmodcount.c (main): Converted to ...
13691         (do_test): ... this.
13692         (TEST_FUNCTION): New macro.
13693         Include test-skeleton.c.
13694         * elf/tst-order-main.c (main): Converted to ...
13695         (do_test): ... this.
13696         (TEST_FUNCTION): New macro.
13697         Include test-skeleton.c.
13698         * elf/tst-pie2.c (main): Converted to ...
13699         (do_test): ... this.
13700         (TEST_FUNCTION): New macro.
13701         Include test-skeleton.c.
13702         * inet/tst-ether_aton.c (main): Converted to ...
13703         (do_test): ... this.
13704         (TEST_FUNCTION): New macro.
13705         Include test-skeleton.c.
13706         * misc/tst-mntent.c (main): Converted to ...
13707         (do_test): ... this.
13708         (TEST_FUNCTION): New macro.
13709         Include test-skeleton.c.
13710         * misc/tst-tsearch.c (main): Converted to ...
13711         (do_test): ... this.
13712         (TEST_FUNCTION): New macro.
13713         Include test-skeleton.c.
13714         * posix/tst-regexloc.c (main): Converted to ...
13715         (do_test): ... this.
13716         (TEST_FUNCTION): New macro.
13717         Include test-skeleton.c.
13718         * resolv/tst-aton.c (main): Converted to ...
13719         (do_test): ... this.
13720         (TEST_FUNCTION): New macro.
13721         Include test-skeleton.c.
13722         * stdio-common/test-fwrite.c (main): Converted to ...
13723         (do_test): ... this.
13724         (TEST_FUNCTION): New macro.
13725         Include test-skeleton.c.
13726         * stdio-common/tst-ferror.c (main): Converted to ...
13727         (do_test): ... this.
13728         (TEST_FUNCTION): New macro.
13729         Include test-skeleton.c.
13730         * stdio-common/tst-printf.c (main): Converted to ...
13731         (do_test): ... this.
13732         (TEST_FUNCTION): New macro.
13733         Include test-skeleton.c.
13734         * stdio-common/tst-printfsz.c (main): Converted to ...
13735         (do_test): ... this.
13736         (TEST_FUNCTION): New macro.
13737         Include test-skeleton.c.
13738         * stdlib/tst-strtod.c (main): Converted to ...
13739         (do_test): ... this.
13740         (TEST_FUNCTION): New macro.
13741         Include test-skeleton.c.
13742         * string/tst-strlen.c (main): Converted to ...
13743         (do_test): ... this.
13744         (TEST_FUNCTION): New macro.
13745         Include test-skeleton.c.
13746         * string/tst-svc.c (main): Converted to ...
13747         (do_test): ... this.
13748         (TEST_FUNCTION): New macro.
13749         Include test-skeleton.c.
13750         * time/tst-strptime.c (main): Converted to ...
13751         (do_test): ... this.
13752         (TEST_FUNCTION): New macro.
13753         Include test-skeleton.c.
13754         * timezone/tst-timezone.c (main): Converted to ...
13755         (do_test): ... this.
13756         (TEST_FUNCTION): New macro.
13757         Include test-skeleton.c.
13758
13759 2015-08-05  Zack Weinberg  <zackw@panix.com>
13760
13761         * misc/regexp.h: Update comments.
13762
13763 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
13764
13765         [BZ #18635]
13766         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
13767         before return label.
13768
13769 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13770
13771         [BZ #18661]
13772         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
13773         when calling __errno_location.
13774         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
13775         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
13776
13777 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13778
13779         [BZ #18661]
13780         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
13781         (__lll_timedwait_tid): Align stack to 16 bytes when calling
13782         __gettimeofday.
13783
13784 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13785
13786         [BZ #18661]
13787         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
13788         (__start_context): Don't use pop to restore %rdi so that stack
13789         is aligned to 16 bytes when calling __setcontext.
13790
13791 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13792
13793         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
13794         only for libc.
13795         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
13796
13797 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13798
13799         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
13800         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
13801         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
13802
13803 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13804
13805         * string/memccpy.c (memccpy):
13806         Improve performance by using memchr/memcpy/__mempcpy.
13807
13808 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13809
13810         * string/strncpy.c (strncpy):
13811         Improve performance by using __strnlen/memcpy.
13812
13813 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13814
13815         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
13816         Optimize to avoid an unnecessary FPCR read.
13817
13818 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
13819
13820         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
13821         Optimize to reduce FPCR/FPSR accesses.
13822
13823 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
13824
13825         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
13826         dead->data[category] != NULL.
13827
13828 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
13829
13830         [BZ #18647]
13831         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
13832         and |x| close to 1, use absolute value of x when computing log.
13833         * math/auto-libm-test-in: Add more tests of pow.
13834         * math/auto-libm-test-out: Regenerated.
13835
13836 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13837
13838         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
13839         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
13840         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
13841
13842 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
13843
13844         [BZ #18525]
13845         * locales/km_KH: Remove timezone definition.
13846         * locales/lo_LA: Likewise.
13847         * locales/my_MM: Likewise.
13848         * locales/nan_TW@latin: Likewise.
13849         * locales/th_TH: Likewise.
13850         * locales/uk_UA: Likewise.
13851
13852 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
13853
13854         [BZ #18265]
13855         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
13856         (wcsncat): Likewise.
13857         (wcscmp): Likewise.
13858         (wcsncmp): Likewise.
13859
13860 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
13861
13862         * test-skeleton.c (usage): New function.
13863         (main): Call usage when opt is '?'.
13864
13865 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
13866
13867         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
13868         before first use.
13869
13870 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
13871
13872         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
13873         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
13874         in there too.
13875
13876 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
13877
13878         * version.h (RELEASE): Set to "development".
13879         (VERSION): Set to "2.22.90"
13880
13881         * version.h (RELEASE): Set to "stable".
13882         (VERSION): Set to "2.22"
13883         * include/features.h (__GLIBC_MINOR__): Set to 22.
13884
13885 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
13886
13887         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
13888         Restructure macro to avoid "value computed is not used" warning.
13889         (atomic_compare_and_exchange_val_acq): Likewise.
13890
13891 2015-08-04  Andreas Schwab  <schwab@suse.de>
13892
13893         [BZ #18635]
13894         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
13895         ret.
13896         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
13897
13898 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
13899
13900         * po/pl.po: Updated translation.
13901         * po/uk.po: Likewise.
13902         * po/fi.po: Likewise.
13903         * po/ko.po: Likewise.
13904         * po/ru.po: Likewise.
13905         * po/vi.po: Likewise.
13906
13907 2015-07-31  Zack Weinberg  <zackw@panix.com>
13908
13909         [BZ #18681]
13910         * regexp.h: Add unconditional #warning stating that this header
13911         will be removed soon.  Revise banner comment to match.
13912         (compile): Consistently use ERROR instead of RETURN to report
13913         errors (partial fix for bz#18681).
13914         * regexp.c: Don't include regexp.h. Remove some unnecessary
13915         declarations.
13916
13917 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
13918
13919         * po/libc.pot: Regenerated.
13920
13921 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
13922
13923         [BZ #18740]
13924         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
13925         float-vlen4-arch-ext-cflags): Removed.
13926         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
13927         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
13928
13929 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
13930
13931         [BZ #14113]
13932         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
13933         aligned to __aligned__.
13934         (pthread_cond_t, pthread_rwlock_t): Likewise.
13935
13936 2015-07-30  Torvald Riegel  <triegel@redhat.com>
13937
13938         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
13939
13940 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
13941
13942         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
13943         (struct sigaction): Change sa_flags from a long to an int, and add
13944         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
13945
13946 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
13947
13948         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
13949         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
13950         sysdeps/generic/sysdep.h include.
13951         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
13952         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
13953         sysdeps/hppa/sysdep.h.
13954         (ENTRY, PSEUDO): Undefine before defining.
13955
13956 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
13957
13958         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
13959         from scratch to use INTERNAL_SYSCALL.
13960
13961 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
13962
13963         [BZ #18078]
13964         * scripts/check-localplt.awk: Support alternate relocations.
13965         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
13966         sections.
13967         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
13968         malloc entries with + REL R_386_GLOB_DAT.
13969         * sysdeps/x86_64/localplt.data: New file.
13970
13971 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
13972
13973         [BZ #18731]
13974         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
13975         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
13976         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
13977
13978 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
13979
13980         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
13981
13982 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
13983
13984         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
13985         directly in terms of __sync_fetch_and_add and delete (int) cast.
13986
13987 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
13988
13989         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
13990         the -D_ASM_IA64_CURRENT_H flag.
13991
13992 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
13993
13994         [BZ #18641]
13995         * pwd/pwd.h (putpwent): Delete __nonnull markings.
13996
13997 2015-07-27  Andreas Schwab  <schwab@suse.de>
13998
13999         * conform/conformtest.pl (checknamespace): Filter out string
14000         literals while tokenizing.
14001
14002 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14003
14004         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14005         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
14006         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14007
14008 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14009
14010         * nptl/tst-join7mod.c: Add #include <string.h>.
14011
14012 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14013
14014         * sysdeps/nios2/libm-test-ulps: Update.
14015
14016 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14017
14018         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
14019         Fix order of arguments to the rt_sigprocmask syscall.
14020         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
14021         Likewise.
14022
14023 2015-07-24  Roland McGrath  <roland@hack.frob.com>
14024
14025         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
14026
14027 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14028
14029         [BZ #18457]
14030         * nptl/Makefile (tests): New test case tst-join7.
14031         (modules-names): New test case module tst-join7mod.
14032         * nptl/tst-join7.c: New file.
14033         * nptl/tst-join7mod.c: New file.
14034         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
14035         all translation units in libc.so, libpthread.so and rtld.
14036
14037 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14038
14039         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14040
14041 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
14042
14043         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
14044         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
14045         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
14046         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
14047         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
14048         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
14049         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
14050         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
14051         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
14052         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
14053         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
14054         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
14055         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
14056         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
14057         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
14058         implementation.
14059
14060 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14061
14062         [BZ #17711]
14063         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14064         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
14065         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14066         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14067         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
14068         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14069
14070 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14071
14072         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
14073         instead of just saying load lock in the comments.
14074
14075 2015-07-23  Roland McGrath  <roland@hack.frob.com>
14076
14077         * sysdeps/unix/Subdirs: Moved ...
14078         * sysdeps/posix/Subdirs: ... here.
14079         * login/pty.h (struct termios, struct winsize): Add forward decls.
14080         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
14081         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
14082         * sysdeps/arm/nacl/libc.abilist: Updated.
14083         * sysdeps/nacl/libutil.abilist: New file.
14084
14085         * bits/signum.h: Update comments to mention 1003.1-2013 too.
14086         (SIGWINCH): New macro.
14087
14088         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
14089         * sysdeps/arm/nacl/libc.abilist: Add it.
14090
14091 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14092
14093         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
14094
14095 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14096
14097         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14098         Swap __glibc_reserved0 and sa_flags order.
14099
14100 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14101
14102         [BZ #18657]
14103         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
14104         are pending TLS destructor calls.
14105         * include/link.h (struct link_map): Add concurrency note for
14106         L_TLS_DTOR_COUNT.
14107         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
14108         Don't touch the link map flag.  Atomically increment
14109         l_tls_dtor_count.
14110         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
14111         Avoid taking the load lock and don't touch the link map flag.
14112         * stdlib/tst-tls-atexit-nodelete.c: New test case.
14113         * stdlib/Makefile (tests): Use it.
14114         * stdlib/tst-tls-atexit.c (do_test): dlopen
14115         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
14116         to allow tst-tls-atexit-nodelete test case to use it.
14117
14118 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14119
14120         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
14121         to bits/types.h.
14122         (msgqnum_t): New typedef.
14123         (msglen_t): Likewise.
14124         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
14125         and msg_qbytes type to msglen_t.
14126
14127 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14128
14129         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
14130         pad0 to __glibc_reserved0.
14131         (struct stat64): Likewise.
14132
14133 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14134
14135         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14136         Change sa_flags from a long to an int and add __glibc_reserved0 before
14137         it for padding.
14138
14139 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14140
14141         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
14142         anonymous by deleting "siginfo" name.
14143
14144 2015-07-21  Roland McGrath  <roland@hack.frob.com>
14145
14146         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
14147         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
14148         rather than __nacl_irt_filename.
14149         * sysdeps/nacl/xstat.c (__xstat): Likewise.
14150
14151         * NEWS: New item for arm-nacl port.
14152         * sysdeps/arm/nacl/libc.abilist: New file.
14153         * sysdeps/nacl/ld.abilist: New file.
14154         * sysdeps/nacl/libBrokenLocale.abilist: New file.
14155         * sysdeps/nacl/libanl.abilist: New file.
14156         * sysdeps/nacl/libcrypt.abilist: New file.
14157         * sysdeps/nacl/libdl.abilist: New file.
14158         * sysdeps/nacl/libm.abilist: New file.
14159         * sysdeps/nacl/libpthread.abilist: New file.
14160         * sysdeps/nacl/libresolv.abilist: New file.
14161         * sysdeps/nacl/librt.abilist: New file.
14162
14163 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
14164
14165         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
14166         __startcontext to initialize the new context.
14167         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
14168         up CFI directive to forbid further backtracing.
14169
14170 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
14171
14172         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
14173         reference.
14174         * charmaps/ANSI_X3.4-1968: Likewise.
14175         * charmaps/BS_4730: Likewise.
14176         * charmaps/BS_VIEWDATA: Likewise.
14177         * charmaps/CP1250: Likewise.
14178         * charmaps/CP1251: Likewise.
14179         * charmaps/CP1252: Likewise.
14180         * charmaps/CP1253: Likewise.
14181         * charmaps/CP1254: Likewise.
14182         * charmaps/CP1255: Likewise.
14183         * charmaps/CP1256: Likewise.
14184         * charmaps/CSN_369103: Likewise.
14185         * charmaps/EBCDIC-DK-NO: Likewise.
14186         * charmaps/GB_1988-80: Likewise.
14187         * charmaps/GREEK-CCITT: Likewise.
14188         * charmaps/GREEK7: Likewise.
14189         * charmaps/INIS-8: Likewise.
14190         * charmaps/ISIRI-3342: Likewise.
14191         * charmaps/ISO_2033-1983: Likewise.
14192         * charmaps/ISO_5427-EXT: Likewise.
14193         * locales/POSIX: Likewise.
14194         * locales/ar_SA: Likewise.
14195         * locales/be_BY: Likewise.
14196         * locales/be_BY@latin: Likewise.
14197         * locales/ca_ES: Likewise.
14198         * locales/cs_CZ: Likewise.
14199         * locales/da_DK: Likewise.
14200         * locales/de_BE: Likewise.
14201         * locales/de_CH: Likewise.
14202         * locales/de_LU: Likewise.
14203         * locales/en_AU: Likewise.
14204         * locales/en_BW: Likewise.
14205         * locales/en_CA: Likewise.
14206         * locales/en_DK: Likewise.
14207         * locales/en_GB: Likewise.
14208         * locales/en_IE: Likewise.
14209         * locales/en_NZ: Likewise.
14210         * locales/en_ZA: Likewise.
14211         * locales/en_ZW: Likewise.
14212         * locales/es_AR: Likewise.
14213         * locales/es_BO: Likewise.
14214         * locales/es_CL: Likewise.
14215         * locales/es_CO: Likewise.
14216         * locales/es_DO: Likewise.
14217         * locales/es_EC: Likewise.
14218         * locales/es_ES: Likewise.
14219         * locales/es_HN: Likewise.
14220         * locales/es_MX: Likewise.
14221         * locales/es_PA: Likewise.
14222         * locales/es_PE: Likewise.
14223         * locales/es_PY: Likewise.
14224         * locales/es_SV: Likewise.
14225         * locales/es_US: Likewise.
14226         * locales/es_UY: Likewise.
14227         * locales/es_VE: Likewise.
14228         * locales/et_EE: Likewise.
14229         * locales/fa_IR: Likewise.
14230         * locales/fo_FO: Likewise.
14231         * locales/fr_CA: Likewise.
14232         * locales/fr_CH: Likewise.
14233         * locales/gv_GB: Likewise.
14234         * locales/he_IL: Likewise.
14235         * locales/hr_HR: Likewise.
14236         * locales/id_ID: Likewise.
14237         * locales/is_IS: Likewise.
14238         * locales/it_CH: Likewise.
14239         * locales/iw_IL: Likewise.
14240         * locales/kl_GL: Likewise.
14241         * locales/ko_KR: Likewise.
14242         * locales/kw_GB: Likewise.
14243         * locales/lg_UG: Likewise.
14244         * locales/lt_LT: Likewise.
14245         * locales/lv_LV: Likewise.
14246         * locales/mi_NZ: Likewise.
14247         * locales/nhn_MX: Likewise.
14248         * locales/nl_BE: Likewise.
14249         * locales/pl_PL: Likewise.
14250         * locales/sk_SK: Likewise.
14251         * locales/sl_SI: Likewise.
14252         * locales/sv_FI: Likewise.
14253         * locales/tl_PH: Likewise.
14254         * locales/tr_TR: Likewise.
14255         * locales/vi_VN: Likewise.
14256
14257 2015-07-21  Khem Raj  <raj.khem@gmail.com>
14258
14259         [BZ #17475]
14260         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
14261         of tu_IN and bh_IN.
14262
14263 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
14264
14265         [BZ #18694]
14266         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
14267         bits/wordsize.h.
14268         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
14269
14270 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
14271
14272         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
14273         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
14274         (spawn_thread): New function.
14275         (load): Rename to reg_dtor_and_close.  Move dlopen to...
14276         (do_test): ... here.  Use IS_LOADED to test for its
14277         availability.
14278
14279 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
14280
14281         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
14282
14283 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
14284
14285         [BZ #18696]
14286         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
14287         si_addr_bnd.
14288         (si_lower): New.
14289         (si_upper): Likewise.
14290
14291 2015-07-16  David S. Miller  <davem@davemloft.net>
14292
14293         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
14294
14295 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14296
14297         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
14298         buffer.
14299         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
14300         fail output information.
14301
14302 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14303
14304         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
14305         and strstr-ppc64..
14306         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
14307         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
14308         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
14309         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
14310         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
14311
14312 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14313
14314         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14315         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14316         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14317         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14318
14319 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14320
14321         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
14322         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
14323         rtld_hidden_proto.
14324         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
14325
14326 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
14327
14328         * tst-nodelete-opened.c (do_test): Add comment to clarify how
14329         the test can fail.
14330
14331         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
14332
14333         [BZ #18676]
14334         * elf/tst-nodelete-opened.c: New test case.
14335         * elf/tst-nodelete-opened-lib.c: New test case module.
14336         * elf/Makefile (tests, modules-names): Use them.
14337         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
14338         early.
14339
14340 2015-07-15  David S. Miller  <davem@davemloft.net>
14341
14342         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
14343         futex-intenal.h
14344         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
14345         * sysdeps/sparc/sparc64/Makefile: Likewise.
14346         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
14347         Remove space from macro define.
14348         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
14349
14350 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
14351
14352         [BZ #17475]
14353         * locale/iso-639.def: Update Bhili and Tulu language codes as
14354         per iso639-3.
14355
14356 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
14357
14358         * elf/tst-leaks1.c (main): Converted to ...
14359         (do_test): ... this.
14360         (TEST_FUNCTION): New macro.
14361         Include test-skeleton.c.
14362         * localedata/tst-langinfo.c (main): Converted to ...
14363         (do_test): ... this.
14364         (TEST_FUNCTION): New macro.
14365         Include test-skeleton.c.
14366         * math/test-fpucw.c (main): Converted to ...
14367         (do_test): ... this.
14368         (TEST_FUNCTION): New macro.
14369         Include test-skeleton.c.
14370         * math/test-tgmath.c (main): Converted to ...
14371         (do_test): ... this.
14372         (TEST_FUNCTION): New macro.
14373         Include test-skeleton.c.
14374         * math/test-tgmath2.c (main): Converted to ...
14375         (do_test): ... this.
14376         (TEST_FUNCTION): New macro.
14377         Include test-skeleton.c.
14378         * setjmp/tst-setjmp.c (main): Converted to ...
14379         (do_test): ... this.
14380         (TEST_FUNCTION): New macro.
14381         Include test-skeleton.c.
14382         * stdio-common/tst-sscanf.c (main): Converted to ...
14383         (do_test): ... this.
14384         (TEST_FUNCTION): New macro.
14385         Include test-skeleton.c.
14386         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
14387         (do_test): ... this.
14388         (TEST_FUNCTION): New macro.
14389         Include test-skeleton.c.
14390
14391         * elf/tst-audit9.c (main): Converted to ...
14392         (do_test): ... this.
14393         (TEST_FUNCTION): New macro.
14394         Include test-skeleton.c.
14395
14396 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
14397
14398         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
14399
14400 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
14401
14402         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
14403         New variable.
14404
14405 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
14406
14407         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14408
14409 2015-07-14  Roland McGrath  <roland@hack.frob.com>
14410
14411         * sysdeps/generic/dl-fileid.h: New file.
14412         * sysdeps/posix/dl-fileid.h: New file.
14413         * sysdeps/nacl/dl-fileid.h: New file.
14414         * include/link.h: Include <dl-fileid.h>.
14415         (struct link_map): Replace l_dev and l_ino with l_file_id.
14416         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
14417         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
14418         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
14419
14420 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14421
14422         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
14423
14424 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14425
14426         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
14427         Add iff $CXX is set.
14428         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
14429         Likewise.
14430         (tst-nodelete-zmodiff): Likewise.
14431         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
14432
14433 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14434
14435         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
14436
14437 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
14438
14439         * sysdeps/aarch64/fpu/math_private.h
14440         (define math_opt_barrier): Add AArch64 version.
14441         (math_force_eval): Likewise.
14442
14443 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
14444
14445         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
14446
14447 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
14448
14449         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
14450         %ld with %jd and cast to intmax_t.
14451         (do_test_length_zero): Likewise.
14452
14453 2015-07-10  Roland McGrath  <roland@hack.frob.com>
14454
14455         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
14456
14457 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
14458
14459         * sysdeps/tile/libm-test-ulps: Regenerated.
14460
14461         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
14462         Comment out the whole function, not just its body.
14463
14464 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14465
14466         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
14467         locks.
14468
14469         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
14470
14471 2015-07-10  Torvald Riegel  <triegel@redhat.com>
14472
14473         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
14474         (sem_assume_only_signals_cause_futex_EINTR): Remove.
14475
14476 2015-07-10  Torvald Riegel  <triegel@redhat.com>
14477
14478         * sysdeps/nptl/futex-internal.h: New file.
14479         * sysdeps/nacl/futex-internal.h: New file.
14480         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
14481         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
14482         error checking.
14483         (setxid_unmark_thread): Likewise.
14484         (__nptl_setxid): Likewise.
14485         (__wait_lookup_done): Likewise.
14486         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
14487         * nptl/nptl-init.c (sighandler_setxid): Likewise.
14488         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
14489         * nptl/pthread_once.c (clear_once_control): Likewise.
14490         (__pthread_once_slow): Likewise.
14491         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
14492         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
14493         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
14494         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14495         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
14496         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
14497         Likewise.
14498         (__pthread_rwlock_rdlock): Likewise.
14499         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
14500         Likewise.
14501         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
14502         Likewise.
14503         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
14504         Likewise.
14505         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
14506         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
14507         Likewise.
14508         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
14509         __ASSUME_PRIVATE_FUTEX check.
14510         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
14511         Check that shared futexes are supported.
14512         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
14513         wrappers with error checking.
14514         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
14515         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
14516         * nptl/pthread_barrierattr_setpshared.c
14517         (pthread_barrierattr_setpshared): Check that shared futexes are
14518         supported.
14519         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
14520         Likewise.
14521         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
14522         Likewise.
14523         * nptl/sem_init.c (futex_private_if_supported): Remove.
14524         (__new_sem_init): Adapt and check that shared futexes are supported.
14525         * nptl/sem_open.c (sem_open): Likewise.
14526         * nptl/sem_post.c (futex_wake): Remove.
14527         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
14528         (do_futex_wait): Use futex wrappers with error checking.
14529         * nptl/sem_wait.c: Include lowlevellock.h.
14530         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
14531         Use futex_supports_pshared.
14532         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
14533         Use futex wrappers with error checking.
14534         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
14535         Likewise.
14536         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
14537         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
14538         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
14539         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
14540         (futex_wake): Likewise.
14541         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
14542         (do_futex_wait): Use futex wrappers with error checking.
14543         (__new_sem_wait_slow): Update EINTR handling.
14544         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
14545
14546 2015-07-09  Martin Sebor  <msebor@redhat.com>
14547
14548         [BZ #18435]
14549         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
14550         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
14551         * nptl/Makefile (test-xfail-tst-once5): Define.
14552
14553 2015-07-09  Roland McGrath  <roland@hack.frob.com>
14554
14555         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
14556         * elf/dl-minimal.c: For readability, reorder some definitions and
14557         introduce more page breaks.  Include <stdio.h>.
14558         (__libc_fatal): New function.
14559
14560         * include/unistd.h: Add rtld_hidden_proto for _exit.
14561         * posix/_exit.c: Add rtld_hidden_def.
14562         * sysdeps/mach/hurd/_exit.c: Likewise.
14563         * sysdeps/nacl/_exit.c: Likewise.
14564         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
14565         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
14566
14567 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
14568
14569         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
14570         bndmov encoding with zero displacement.
14571
14572 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
14573             H.J. Lu  <hongjiu.lu@intel.com>
14574
14575         [BZ #18134]
14576         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
14577         * sysdeps/i386/configure: Regenerated.
14578         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
14579         (_dl_runtime_profile): Save and restore Intel MPX return bound
14580         registers when calling _dl_call_pltexit.  Add
14581         PRESERVE_BND_REGS_PREFIX before return.
14582         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
14583         (LRV_BND1_OFFSET): Likewise.
14584         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
14585         lrv_bnd1.
14586         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
14587         typo in bndmov encoding.
14588         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
14589         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
14590         branch instructions to preserve bounds.
14591
14592 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14593
14594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
14595         [GLIBC_2.22]: Add fmemopen.
14596
14597 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14598
14599         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
14600         returns an error, also try to use host port from __mach_host_self for
14601         the __vm_wire call.
14602         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
14603
14604 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14605
14606         [BZ #18400]
14607         [BZ #18648]
14608         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
14609         Fix pr_uid and pr_gid members.
14610         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
14611         definition to elf_greg_t.
14612
14613 2015-07-08  Roland McGrath  <roland@hack.frob.com>
14614
14615         [BZ #18383]
14616         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
14617         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
14618         * sysdeps/arm/configure: Regenerated.
14619         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
14620         (test-xfail-tst-tlsalign-static): Variable removed.
14621
14622         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
14623         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
14624         rather than explicit 'ln -s'.
14625
14626         * resolv/rpc/netdb.h: New file.
14627         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
14628
14629 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14630
14631         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
14632         length buffers.
14633         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
14634         test-skeleton.c.
14635
14636         [BZ #6544]
14637         [BZ #11216]
14638         [BZ #12836]
14639         [BZ #13151]
14640         [BZ #13152]
14641         [BZ #14292]
14642         * include/stdio.h (fmemopen): Remove hidden prototype.
14643         (__fmemopen): Add new hidden prototype.
14644         * libio/Makefile: Add oldfmemopen object.
14645         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
14646         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
14647         compliance.
14648         * libio/oldfmemopen.c: New file: old fmemopen implementation for
14649         symbol compatibility.
14650         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
14651         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
14652         fmemopen.
14653         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
14654         on append and read mode.
14655         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
14656         fmemopen.
14657         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
14658         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
14659         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
14660         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
14661         Likewise.
14662         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
14663         [GLIBC_2.22]: Likewise.
14664         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
14665         Likewise.
14666         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
14667         Likewise.
14668         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
14669         [GLIBC_2.22]: Likewise.
14670         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
14671         [GLIBC_2.22]: Likewise.
14672         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
14673         [GLIBC_2.22]: Likewise.
14674         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
14675         [GLIBC_2.22]: Likewise.
14676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
14677         [GLIBC_2.22]: Likewise.
14678         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
14679         [GLIBC_2.22]: Likewise.
14680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
14681         [GLIBC_2.22]: Likewise.
14682         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
14683         Likewise.
14684         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
14685         Likewise.
14686         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
14687         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
14688         [GLIBC_2.22]: Likewise.
14689         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
14690         [GLIBC_2.22]: Likewise.
14691         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
14692         [GLIBC_2.22]: Likewise.
14693         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
14694         [GLIBC_2.22]: Likewise.
14695         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
14696         Likewise.
14697         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
14698         Likewise.
14699         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
14700         Likewise.
14701         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
14702         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
14703
14704 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
14705
14706         [BZ #18643]
14707         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
14708         IPV6_PATHMTU, and IPV6_DONTFRAG.
14709
14710 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
14711
14712         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
14713         and _IO_UNBUFFERED.
14714         * libio/oldfileops.c: Likewise.
14715         * libio/wfileops.c: Likewise.
14716
14717 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
14718
14719         * nscd/selinux.c: Delete selinux/flask.h include.
14720
14721 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
14722
14723         [BZ #18641]
14724         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
14725         (putpwent): Likewise.
14726         (getpwnam): Likewise.
14727         (getpwent_r): Likewise.
14728         (getpwuid_r): Likewise.
14729         (getpwnam_r): Likewise.
14730         (fgetpwent_r): Likewise.
14731
14732 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
14733
14734         [BZ #18557]
14735         * inet/rcmd.c (__validuser2_sa): Check user first to
14736         short-circuit host check.
14737
14738 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
14739             Mikhail Ilin  <m.ilin@samsung.com>
14740
14741         [BZ #17833]
14742         * elf/Makefile (tests): Add tst-nodelete.
14743         (modules-names): Add tst-nodelete-uniquemod.
14744         (tst-nodelete-uniquemod.so-no-z-defs): New.
14745         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
14746         (tst-nodelete-zmod.so-no-z-defs): Likewise.
14747         ($(objpfx)tst-nodelete): Likewise.
14748         ($(objpfx)tst-nodelete.out): Likewise.
14749         (LDFLAGS-tst-nodelete): Likewise.
14750         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
14751         * elf/dl-close.c (_dl_close_worker): Add a parameter to
14752         implement forced object deletion.
14753         (_dl_close): Pass false to _dl_close_worker.
14754         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
14755         * elf/tst-nodelete.cc: New file.
14756         * elf/tst-nodeletelib.cc: Likewise.
14757         * elf/tst-znodeletelib.cc: Likewise.
14758         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
14759
14760 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
14761
14762         [BZ #18508]
14763         * stdlib/Makefile ($(objpfx)tst-makecontext3):
14764         Depend on $(libdl).
14765         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
14766         is not called infinitely times.
14767         (backtrace_helper): New function.
14768         (trace_arg): New struct.
14769         (st1): Enlarge stack size.
14770         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
14771         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
14772         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
14773         Likewise.
14774
14775 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
14776
14777         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14778
14779 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
14780
14781         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
14782         Include sys/types.h instead of bits/types.h.
14783         Remove inclusion of bits/wordsize.h.
14784
14785 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14786
14787         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
14788         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
14789         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
14790         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
14791         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
14792         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
14793
14794 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14795
14796         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
14797         link-defines.sym.
14798         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
14799         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
14800         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
14801         and LR_SIZE.
14802         * sysdeps/i386/link-defines.sym: New file.
14803
14804 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14805
14806         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
14807         (modules-names): Add tst-auditmod3a tst-auditmod3b.
14808         ($(objpfx)tst-audit3): New rule.
14809         ($(objpfx)tst-audit3.out): Likewise.
14810         * sysdeps/i386/tst-audit3.c: New file.
14811         * sysdeps/i386/tst-audit3.h: Likewise.
14812         * sysdeps/i386/tst-auditmod3a.c: Likewise.
14813         * sysdeps/i386/tst-auditmod3b.c: Likewise.
14814
14815 2015-07-07  Torvald Riegel  <triegel@redhat.com>
14816
14817         [BZ #18633]
14818         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
14819         pointer in C code.
14820         (__strcat_c): Likewise.
14821         (__strcat_g): Likewise.
14822
14823 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
14824
14825         [BZ #18592]
14826         * misc/sbrk.c: Set errno to ENOMEM on overflow.
14827
14828 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
14829
14830         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
14831         New function.  (__ieee754_sqrtf): New function.
14832         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
14833         New function.
14834         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
14835         New function.
14836
14837 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
14838
14839         * sysdeps/ieee754/support.c: Remove unused file.
14840
14841 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14842
14843         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
14844         registers instead of d ones so the layout is kernel abi compatible.
14845         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
14846         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
14847         Likewise.
14848
14849 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14850
14851         * sysdeps/aarch64/libm-test-ulps: Regenerated.
14852
14853 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
14854
14855         [BZ #18619]
14856         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
14857         and return argument in case of subnormal argument.
14858
14859 2015-07-01  Martin Sebor  <msebor@redhat.com>
14860
14861         [BZ #18435]
14862         * nptl/Makefile: Add tst-once5.cc.
14863         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
14864         Remove macro redefinitions.
14865         * nptl/tst-once5.cc: New test.
14866
14867 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
14868
14869         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
14870
14871         * sysdeps/arm/libm-test-ulps: Regenerated.
14872
14873         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
14874         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
14875
14876 2015-06-30  Torvald Riegel  <triegel@redhat.com>
14877
14878         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
14879         lll_lock_wait_private and lll_futex_wake probes.
14880
14881         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
14882         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
14883         Likewise.
14884         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
14885         atomic_spin_nop.
14886         * sysdeps/x86_64/bits/atomic.h: Likewise.
14887         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
14888         to atomic_spin_nop and move ...
14889         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
14890         ... here and ...
14891         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
14892         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
14893         atomic_spin_nop instead of BUSY_WAIT_NOP.
14894         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
14895         Likewise.
14896         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
14897         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
14898         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
14899         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
14900         instead of atomic_delay.
14901
14902 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
14903
14904         [BZ #18613]
14905         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
14906         X_ADJ not X when adjusting exponent.
14907         (__ieee754_gamma_r): Do intermediate computations in
14908         round-to-nearest then adjust overflowing and underflowing results
14909         as needed.
14910         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
14911         of X_ADJ not X when adjusting exponent.
14912         (__ieee754_gammaf_r): Do intermediate computations in
14913         round-to-nearest then adjust overflowing and underflowing results
14914         as needed.
14915         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
14916         log of X_ADJ not X when adjusting exponent.
14917         (__ieee754_gammal_r): Do intermediate computations in
14918         round-to-nearest then adjust overflowing and underflowing results
14919         as needed.  Use 1.0L not 1.0f as numerator of division.
14920         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
14921         log of X_ADJ not X when adjusting exponent.
14922         (__ieee754_gammal_r): Do intermediate computations in
14923         round-to-nearest then adjust overflowing and underflowing results
14924         as needed.  Use 1.0L not 1.0f as numerator of division.
14925         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
14926         of X_ADJ not X when adjusting exponent.
14927         (__ieee754_gammal_r): Do intermediate computations in
14928         round-to-nearest then adjust overflowing and underflowing results
14929         as needed.  Use 1.0L not 1.0f as numerator of division.
14930         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
14931         to auto-libm-test-in.
14932         (tgamma_test): Use ALL_RM_TEST.
14933         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
14934         tests of tgamma with spurious-overflow.
14935         * math/auto-libm-test-out: Regenerated.
14936         * math/gen-libm-have-vector-test.sh: Do not check for START.
14937         * sysdeps/i386/fpu/libm-test-ulps: Update.
14938         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14939
14940         [BZ #18612]
14941         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
14942         arguments, just return 0.5 times the argument, with underflow
14943         forced as needed.
14944         * math/auto-libm-test-in: Add more tests of j1.
14945         * math/auto-libm-test-out: Regenerated.
14946
14947         [BZ #16559]
14948         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
14949         (__ieee754_j1): Force underflow exception for small results.
14950         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14951         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
14952         (__ieee754_j1f): Force underflow exception for small results.
14953         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
14954         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14955         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14956         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
14957         (__ieee754_j1l): Force underflow exception for small results.
14958         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14959         * math/auto-libm-test-in: Add more tests of j1 and jn.
14960         * math/auto-libm-test-out: Regenerated.
14961
14962         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
14963         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
14964         (PF_MPLS): Likewise.
14965         (AF_IB): Likewise.
14966         (AF_MPLS): Likewise.
14967         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
14968         value and macro.
14969         (MS_RMT_MASK): Include MS_LAZYTIME.
14970
14971 2015-06-26  Mel Gorman  <mgorman@suse.de>
14972
14973         [BZ #18502]
14974         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
14975         already minimal.
14976
14977 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
14978
14979         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
14980         (DT_MIPS_NUM): Update.
14981         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
14982         DT_MIPS_RLD_MAP_REL.
14983
14984 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
14985
14986         [BZ #16559]
14987         [BZ #18602]
14988         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
14989         round-to-nearest internally then recompute results that
14990         underflowed to zero in the original rounding mode.
14991         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
14992         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14993         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14994         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14995         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
14996         * sysdeps/i386/fpu/libm-test-ulps: Update.
14997         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14998
14999 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
15000
15001         * NEWS: Fixed description of link with vector math library.
15002
15003 2015-06-25  Andreas Schwab  <schwab@suse.de>
15004
15005         [BZ #18549]
15006         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
15007         * libio/test-fmemopen.c (do_test): Add test for it.
15008
15009 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15010
15011         [BZ #17841]
15012         * Makeconfig (no-pie-ldflag): New.
15013         (+link): Set to $(+link-pie) if default to PIE.
15014         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
15015         * config.make.in (build-pie-default): New.
15016         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
15017         is default.  AC_SUBST.
15018         * configure: Regenerated.
15019         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
15020
15021 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15022
15023         * nptl/descr.h (struct pthread): Change type of field setxid_futex
15024         to 'unsigned int'.
15025
15026         * resolv/gai_misc.h (struct waitlist): Change type of field
15027         counterp to 'volatile unsigned int *'.
15028         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
15029         FUTEXADDR and OLDVAL.
15030         * resolv/getaddrinfo_a.c (getaddrinfo_a):
15031         Give local variable TOTAL type 'volatile unsigned int'.
15032         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15033         * resolv/gai_suspend.c (gai_suspend):
15034         Give local variable CNTR type 'unsigned int'.
15035
15036         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
15037         counterp to 'volatile unsigned int *'.
15038         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
15039         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
15040         (aio_suspend): Give local variable CNTR type 'unsigned int'.
15041         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
15042         Give local variable TOTAL type 'volatile unsigned int'.
15043         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15044
15045 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15046
15047         [BZ #18383]
15048         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
15049         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
15050         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
15051         comment for i386/x86-64.
15052         (test-xfail-tst-tlsalign-extern-static): Removed.
15053
15054 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15055
15056         * math/test-double.h: New file.
15057         * math/test-float.h: Likewise.
15058         * math/test-ldouble.h: Likewise.
15059         * math/test-math-inline.h: Likewise.
15060         * math/test-math-no-inline.h: Likewise.
15061         * math/test-math-scalar.h: Likewise.
15062         * math/test-math-vector.h: Likewise.
15063         * math/test-vec-loop.h: Remove file.  Contents moved into
15064         test-math-vector.h.
15065         * math/libm-test.inc (MATHCONST): Do not document macro.
15066         * math/test-double.c: Include test-double.h, test-math-no-inline.h
15067         and test-math-scalar.h.
15068         (FUNC): Remove macro.
15069         (FUNC_TEST): Likewise.
15070         (FLOAT): Likewise.
15071         (MATHCONST): Likewise.
15072         (PRINTF_EXPR): Likewise.
15073         (PRINTF_XEXPR): Likewise.
15074         (PRINTF_NEXPR): Likewise.
15075         (TEST_DOUBLE): Likewise.
15076         (TEST_MATHVEC): Likewise.
15077         (__NO_MATH_INLINES): Likewise.
15078         * math/test-float.c: Include test-float.h, test-math-no-inline.h
15079         and test-math-scalar.h.
15080         (FUNC): Remove macro.
15081         (FUNC_TEST): Likewise.
15082         (FLOAT): Likewise.
15083         (MATHCONST): Likewise.
15084         (PRINTF_EXPR): Likewise.
15085         (PRINTF_XEXPR): Likewise.
15086         (PRINTF_NEXPR): Likewise.
15087         (TEST_FLOAT): Likewise.
15088         (TEST_MATHVEC): Likewise.
15089         (__NO_MATH_INLINES): Likewise.
15090         * math/test-idouble.c: Include test-double.h, test-math-inline.h
15091         and test-math-scalar.h.
15092         (FUNC): Remove macro.
15093         (FUNC_TEST): Likewise.
15094         (FLOAT): Likewise.
15095         (MATHCONST): Likewise.
15096         (PRINTF_EXPR): Likewise.
15097         (PRINTF_XEXPR): Likewise.
15098         (PRINTF_NEXPR): Likewise.
15099         (TEST_DOUBLE): Likewise.
15100         (TEST_MATHVEC): Likewise.
15101         (TEST_INLINE): Likewise.
15102         (__NO_MATH_INLINES): Likewise.
15103         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
15104         test-math-scalar.h.
15105         (FUNC): Remove macro.
15106         (FUNC_TEST): Likewise.
15107         (FLOAT): Likewise.
15108         (MATHCONST): Likewise.
15109         (PRINTF_EXPR): Likewise.
15110         (PRINTF_XEXPR): Likewise.
15111         (PRINTF_NEXPR): Likewise.
15112         (TEST_FLOAT): Likewise.
15113         (TEST_MATHVEC): Likewise.
15114         (TEST_INLINE): Likewise.
15115         (__NO_MATH_INLINES): Likewise.
15116         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
15117         and test-math-scalar.h.
15118         (FUNC): Remove macro.
15119         (FUNC_TEST): Likewise.
15120         (FLOAT): Likewise.
15121         (MATHCONST): Likewise.
15122         (PRINTF_EXPR): Likewise.
15123         (PRINTF_XEXPR): Likewise.
15124         (PRINTF_NEXPR): Likewise.
15125         (TEST_LDOUBLE): Likewise.
15126         (TEST_MATHVEC): Likewise.
15127         (TEST_INLINE): Likewise.
15128         (__NO_MATH_INLINES): Likewise.
15129         * math/test-ldouble.c: Include test-ldouble.h,
15130         test-math-no-inline.h and test-math-scalar.h.
15131         (FUNC): Remove macro.
15132         (FUNC_TEST): Likewise.
15133         (FLOAT): Likewise.
15134         (MATHCONST): Likewise.
15135         (PRINTF_EXPR): Likewise.
15136         (PRINTF_XEXPR): Likewise.
15137         (PRINTF_NEXPR): Likewise.
15138         (TEST_LDOUBLE): Likewise.
15139         (TEST_MATHVEC): Likewise.
15140         (__NO_MATH_INLINES): Likewise.
15141         * math/test-double-vlen2.h: Include test-double.h,
15142         test-math-no-inline.h and test-math-vector.h.
15143         (FLOAT): Remove macro.
15144         (FUNC): Likewise.
15145         (MATHCONST): Likewise.
15146         (PRINTF_EXPR): Likewise.
15147         (PRINTF_XEXPR): Likewise.
15148         (PRINTF_NEXPR): Likewise.
15149         (TEST_DOUBLE): Likewise.
15150         (TEST_MATHVEC): Likewise.
15151         (__NO_MATH_INLINES): Likewise.
15152         (CNCT): Likewise.
15153         (CONCAT): Likewise.
15154         (WRAPPER_NAME): Likewise.
15155         (WRAPPER_DECL): Likewise.
15156         (WRAPPER_DECL_ff): Likewise.
15157         (WRAPPER_DECL_fFF): Likewise.
15158         (VECTOR_WRAPPER): Likewise.
15159         (VECTOR_WRAPPER_ff): Likewise.
15160         (VECTOR_WRAPPER_fFF): Likewise.
15161         (VEC_LEN): New macro.
15162         * math/test-double-vlen4.h: Include test-double.h,
15163         test-math-no-inline.h and test-math-vector.h.
15164         (FLOAT): Remove macro.
15165         (FUNC): Likewise.
15166         (MATHCONST): Likewise.
15167         (PRINTF_EXPR): Likewise.
15168         (PRINTF_XEXPR): Likewise.
15169         (PRINTF_NEXPR): Likewise.
15170         (TEST_DOUBLE): Likewise.
15171         (TEST_MATHVEC): Likewise.
15172         (__NO_MATH_INLINES): Likewise.
15173         (CNCT): Likewise.
15174         (CONCAT): Likewise.
15175         (WRAPPER_NAME): Likewise.
15176         (WRAPPER_DECL): Likewise.
15177         (WRAPPER_DECL_ff): Likewise.
15178         (WRAPPER_DECL_fFF): Likewise.
15179         (VECTOR_WRAPPER): Likewise.
15180         (VECTOR_WRAPPER_ff): Likewise.
15181         (VECTOR_WRAPPER_fFF): Likewise.
15182         (VEC_LEN): New macro.
15183         * math/test-double-vlen8.h: Include test-double.h,
15184         test-math-no-inline.h and test-math-vector.h.
15185         (FLOAT): Remove macro.
15186         (FUNC): Likewise.
15187         (MATHCONST): Likewise.
15188         (PRINTF_EXPR): Likewise.
15189         (PRINTF_XEXPR): Likewise.
15190         (PRINTF_NEXPR): Likewise.
15191         (TEST_DOUBLE): Likewise.
15192         (TEST_MATHVEC): Likewise.
15193         (__NO_MATH_INLINES): Likewise.
15194         (CNCT): Likewise.
15195         (CONCAT): Likewise.
15196         (WRAPPER_NAME): Likewise.
15197         (WRAPPER_DECL): Likewise.
15198         (WRAPPER_DECL_ff): Likewise.
15199         (WRAPPER_DECL_fFF): Likewise.
15200         (VECTOR_WRAPPER): Likewise.
15201         (VECTOR_WRAPPER_ff): Likewise.
15202         (VECTOR_WRAPPER_fFF): Likewise.
15203         (VEC_LEN): New macro.
15204         * math/test-float-vlen4.h: Include test-float.h,
15205         test-math-no-inline.h and test-math-vector.h.
15206         (FLOAT): Remove macro.
15207         (FUNC): Likewise.
15208         (MATHCONST): Likewise.
15209         (PRINTF_EXPR): Likewise.
15210         (PRINTF_XEXPR): Likewise.
15211         (PRINTF_NEXPR): Likewise.
15212         (TEST_FLOAT): Likewise.
15213         (TEST_MATHVEC): Likewise.
15214         (__NO_MATH_INLINES): Likewise.
15215         (CNCT): Likewise.
15216         (CONCAT): Likewise.
15217         (WRAPPER_NAME): Likewise.
15218         (WRAPPER_DECL): Likewise.
15219         (WRAPPER_DECL_ff): Likewise.
15220         (WRAPPER_DECL_fFF): Likewise.
15221         (VECTOR_WRAPPER): Likewise.
15222         (VECTOR_WRAPPER_ff): Likewise.
15223         (VECTOR_WRAPPER_fFF): Likewise.
15224         (VEC_LEN): New macro.
15225         * math/test-float-vlen8.h: Include test-float.h,
15226         test-math-no-inline.h and test-math-vector.h.
15227         (FLOAT): Remove macro.
15228         (FUNC): Likewise.
15229         (MATHCONST): Likewise.
15230         (PRINTF_EXPR): Likewise.
15231         (PRINTF_XEXPR): Likewise.
15232         (PRINTF_NEXPR): Likewise.
15233         (TEST_FLOAT): Likewise.
15234         (TEST_MATHVEC): Likewise.
15235         (__NO_MATH_INLINES): Likewise.
15236         (CNCT): Likewise.
15237         (CONCAT): Likewise.
15238         (WRAPPER_NAME): Likewise.
15239         (WRAPPER_DECL): Likewise.
15240         (WRAPPER_DECL_ff): Likewise.
15241         (WRAPPER_DECL_fFF): Likewise.
15242         (VECTOR_WRAPPER): Likewise.
15243         (VECTOR_WRAPPER_ff): Likewise.
15244         (VECTOR_WRAPPER_fFF): Likewise.
15245         (VEC_LEN): New macro.
15246         * math/test-float-vlen16.h: Include test-float.h,
15247         test-math-no-inline.h and test-math-vector.h.
15248         (FLOAT): Remove macro.
15249         (FUNC): Likewise.
15250         (MATHCONST): Likewise.
15251         (PRINTF_EXPR): Likewise.
15252         (PRINTF_XEXPR): Likewise.
15253         (PRINTF_NEXPR): Likewise.
15254         (TEST_FLOAT): Likewise.
15255         (TEST_MATHVEC): Likewise.
15256         (__NO_MATH_INLINES): Likewise.
15257         (CNCT): Likewise.
15258         (CONCAT): Likewise.
15259         (WRAPPER_NAME): Likewise.
15260         (WRAPPER_DECL): Likewise.
15261         (WRAPPER_DECL_ff): Likewise.
15262         (WRAPPER_DECL_fFF): Likewise.
15263         (VECTOR_WRAPPER): Likewise.
15264         (VECTOR_WRAPPER_ff): Likewise.
15265         (VECTOR_WRAPPER_fFF): Likewise.
15266         (VEC_LEN): New macro.
15267         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
15268         test-vec-loop.h.
15269         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15270         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15271         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15272         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15273         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15274         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15275         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
15276
15277 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15278
15279         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
15280         (__getlogin_r): ... this.
15281
15282 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15283
15284         [BZ #18594]
15285         * math/s_ccosh.c (__ccosh): Compare with least normal value
15286         instead of comparing class with FP_SUBNORMAL.
15287         * math/s_ccoshf.c (__ccoshf): Likewise.
15288         * math/s_ccoshl.c (__ccoshl): Likewise.
15289         * math/s_cexp.c (__cexp): Likewise.
15290         * math/s_cexpf.c (__cexpf): Likewise.
15291         * math/s_cexpl.c (__cexpl): Likewise.
15292         * math/s_csin.c (__csin): Likewise.
15293         * math/s_csinf.c (__csinf): Likewise.
15294         * math/s_csinh.c (__csinh): Likewise.
15295         * math/s_csinhf.c (__csinhf): Likewise.
15296         * math/s_csinhl.c (__csinhl): Likewise.
15297         * math/s_csinl.c (__csinl): Likewise.
15298         * math/s_ctan.c (__ctan): Likewise.
15299         * math/s_ctanf.c (__ctanf): Likewise.
15300         * math/s_ctanh.c (__ctanh): Likewise.
15301         * math/s_ctanhf.c (__ctanhf): Likewise.
15302         * math/s_ctanhl.c (__ctanhl): Likewise.
15303         * math/s_ctanl.c (__ctanl): Likewise.
15304         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
15305         csin, csinh, ctan and ctanh.
15306         * math/auto-libm-test-out: Regenerated.
15307         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
15308         * sysdeps/i386/fpu/libm-test-ulps: Update.
15309         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15310
15311 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15312
15313         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
15314         return value is wrong, print the expected value too.
15315
15316 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15317
15318         [BZ #18585]
15319         * elf/readlib.c (is_gdb_python_file): New.
15320         (process_file): Don't issue errors on filenames with -gdb.py
15321         suffix.
15322
15323 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15324
15325         * math/auto-libm-test-in: Add more tests of csin and csinh.
15326         * math/auto-libm-test-out: Regenerated.
15327         * math/libm-test.inc (csin_test_data): Remove tests moved to
15328         auto-libm-test-in.
15329         (csinh_test_data): Likewise.
15330
15331         [BZ #18593]
15332         * math/s_csin.c (__csin): Negate before rather than after possibly
15333         overflowing multiplication.
15334         * math/s_csinf.c (__csinf): Likewise.
15335         * math/s_csinh.c (__csinh): Likewise.
15336         * math/s_csinhf.c (__csinhf): Likewise.
15337         * math/s_csinhl.c (__csinhl): Likewise.
15338         * math/s_csinl.c (__csinl): Likewise.
15339         * math/auto-libm-test-in: Add some tests of csin and csinh.
15340         * math/auto-libm-test-out: Regenerated.
15341         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
15342         (csinh_test_data): Likewise.
15343         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15344
15345         [BZ #18586]
15346         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
15347         underflow exception for small results.
15348
15349 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
15350
15351         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15352         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
15353         variable and included header.
15354         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
15355         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
15356         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
15357         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
15358         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
15359         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
15360         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
15361         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
15362         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
15363         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
15364         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
15365         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
15366         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
15367         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
15368         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
15369         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
15370
15371 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15372
15373         [BZ #16526]
15374         [BZ #16538]
15375         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
15376         (__sin): Force underflow exception for arguments with small
15377         absolute value.
15378         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
15379         (__kernel_sinf): Force underflow exception for arguments with
15380         small absolute value.
15381         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
15382         (__kernel_sincosl): Force underflow exception for arguments with
15383         small absolute value.
15384         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
15385         (__kernel_sinl): Force underflow exception for arguments with
15386         small absolute value.
15387         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
15388         (__kernel_sincosl): Force underflow exception for arguments with
15389         small absolute value.
15390         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
15391         (__kernel_sinl): Force underflow exception for arguments with
15392         small absolute value.
15393         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
15394         (__kernel_sinl): Force underflow exception for arguments with
15395         small absolute value.
15396         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
15397         (__kernel_sinf): Force underflow exception for arguments with
15398         small absolute value.
15399         * math/auto-libm-test-in: Add more tests of sin and sincos.
15400         * math/auto-libm-test-out: Regenerated.
15401
15402         [BZ #18245]
15403         [BZ #18583]
15404         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
15405         (__kernel_standard_l): Use feholdexcept and fesetenv around
15406         conversion to double instead of special-casing overflow and
15407         underflow.
15408         * math/libm-test.inc (fmod_test_data): Add more tests.
15409         (remainder_test_data): Likewise.
15410         (sqrt_test_data): Likewise.
15411
15412 2015-06-23  Torvald Riegel  <triegel@redhat.com>
15413
15414         [BZ #17403]
15415         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
15416         atomic_read_barrier, atomic_write_barrier): Define.
15417         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
15418         atomic_read_barrier, atomic_write_barrier): Define.
15419
15420 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15421
15422         * math/Makefile [$(PERL) != no]
15423         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
15424         dependency on libm-test.stmp below the inclusion of Rules.
15425
15426 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
15427
15428         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15429         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
15430         and included header.
15431         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
15432         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
15433         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
15434         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
15435         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
15436         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
15437         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
15438         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
15439         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
15440         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
15441         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
15442         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
15443         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
15444         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
15445         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
15446         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
15447         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
15448         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
15449         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
15450
15451 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15452
15453         [BZ #18371]
15454         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
15455         intermediate but not final result might underflow.
15456         * math/s_csqrtf.c (__csqrtf): Likewise.
15457         * math/s_csqrtl.c (__csqrtl): Likewise.
15458         * math/auto-libm-test-in: Add more tests of csqrt.
15459         * math/auto-libm-test-out: Regenerated.
15460         * sysdeps/i386/fpu/libm-test-ulps: Update.
15461
15462         [BZ #18219]
15463         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
15464         threshold on absolute value of exponent for which scaling is used.
15465         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
15466         * math/auto-libm-test-in: Add more tests of exp2.
15467         * math/auto-libm-test-out: Regenerated.
15468
15469 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
15470
15471         [BZ #17977]
15472         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
15473         when initializing interface list, based on the bug analysis
15474         and the patch proposed by Eric Newton.
15475         * resolv/tst-res_hconf_reorder.c: New test.
15476         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
15477         tst-res_hconf_reorder.
15478         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
15479         and $(shared-thread-library).
15480         (tst-res_hconf_reorder-ENV): New variable.
15481
15482         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
15483         in comment.
15484
15485 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
15486
15487         [BZ #16353]
15488         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
15489         (__expm1): Force underflow exception for arguments with small
15490         absolute value.
15491         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
15492         (__expm1f): Force underflow exception for arguments with small
15493         absolute value.
15494         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
15495         (__expm1): Force underflow exception for arguments with small
15496         absolute value.
15497         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
15498         (__expm1f): Force underflow exception for arguments with small
15499         absolute value.
15500         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
15501         Check for small arguments before calling __expm1.
15502         * math/auto-libm-test-in: Do not mark underflow exceptions as
15503         possibly missing for bug 16353.
15504         * math/auto-libm-test-out: Regenerated.
15505
15506 2015-06-22  Andreas Schwab  <schwab@suse.de>
15507
15508         [BZ #18513]
15509         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
15510         PTR queries.
15511
15512 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
15513
15514         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
15515
15516         * string/strcoll_l.c: Remove unused struct element idxnow.
15517
15518 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
15519
15520         [BZ #18569]
15521         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
15522         underflow and return argument in case of subnormal argument.
15523         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
15524         Likewise.
15525         * math/auto-libm-test-in: Add more tests of expm1.
15526         * math/auto-libm-test-out: Regenerated.
15527
15528         [BZ #16361]
15529         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
15530         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
15531         tiny results.
15532         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
15533         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
15534         tiny results.
15535         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
15536         mark underflow exceptions as possibly missing for bug 16361.
15537         * math/auto-libm-test-out: Regenerated.
15538
15539 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
15540
15541         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
15542         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
15543         Remove variable.
15544         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
15545         (test-xfail-XOPEN2K8/utmpx.h/conform).
15546
15547         * conform/conformtest.pl ($xerrors): New variable.
15548         (note_error): New function.
15549         (compiletest): New argument $xfail.  Use not_error.
15550         (runtest): Likewise.
15551         (top level): Handle xfail- lines.  Update calls to compiletest and
15552         runtest.  Handle xfail- and optional- in headers listed with
15553         allow-header.
15554         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
15555         (O_EXEC): Likewise.
15556         (O_SEARCH): Likewise.
15557         * conform/data/stropts.h-data (ioctl): Likewise.
15558         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
15559         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
15560         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
15561         (msghdr.msg_controllen): Likewise.
15562         (cmsghdr.cmsg_len): Likewise.
15563         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
15564         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
15565         variable.
15566         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
15567         (test-xfail-XPG4/stropts.h/conform): Likewise.
15568         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
15569         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
15570         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
15571         (test-xfail-UNIX98/stropts.h/conform): Likewise.
15572         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
15573         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
15574         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
15575         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
15576         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
15577         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
15578         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
15579         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
15580         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
15581         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
15582         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
15583         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
15584         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
15585         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
15586         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
15587
15588 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
15589
15590         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
15591         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
15592         definitions for proper unfolding of __MATHDECL_VEC.
15593
15594 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15595
15596         * benchtests/bench-strcoll.c:
15597         Include string.h.
15598         (main): Remove unused variable res.
15599
15600 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15601
15602         * timezone/Makefile (%/UTC %/Universal):
15603         Generate test-result files for UTC and Universal.
15604
15605 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
15606
15607         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15608
15609 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
15610
15611         [BZ #16350]
15612         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
15613         for arguments with small absolute value.
15614         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
15615         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
15616         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
15617         (__asinh): Force underflow exception for arguments with small
15618         absolute value.
15619         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
15620         (__asinhf): Force underflow exception for arguments with small
15621         absolute value.
15622         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
15623         (__asinhl): Force underflow exception for arguments with small
15624         absolute value.
15625         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
15626         (__asinhl): Force underflow exception for arguments with small
15627         absolute value.
15628         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
15629         (__asinhl): Force underflow exception for arguments with small
15630         absolute value.
15631         * math/auto-libm-test-in: Do not mark underflow exceptions as
15632         possibly missing for bug 16350.
15633         * math/auto-libm-test-out: Regenerated.
15634
15635         * include/bits/ipc.h: Remove file.
15636         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
15637         variable.
15638         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
15639         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
15640         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
15641         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
15642         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
15643         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
15644         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
15645         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
15646         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
15647
15648         * math/auto-libm-test-in: Remove spurious underflow allowance for
15649         tests of cexp.
15650         * math/auto-libm-test-out: Regenerated.
15651
15652         [BZ #18558]
15653         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
15654         unconditional definition.
15655         (MCAST_BLOCK_SOURCE): Likewise.
15656         (MCAST_UNBLOCK_SOURCE): Likewise.
15657         (MCAST_LEAVE_GROUP): Likewise.
15658         (MCAST_JOIN_SOURCE_GROUP): Likewise.
15659         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
15660         (MCAST_MSFILTER): Likewise.
15661         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
15662         Remove variable.
15663         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
15664         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
15665         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
15666         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
15667         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
15668
15669 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
15670
15671         * NEWS: Mention addition of x86_64 vector sincosf.
15672         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
15673         * math/test-float-vlen4.h: Likewise.
15674         * math/test-float-vlen8.h: Likewise.
15675         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15676         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
15677         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15678         * sysdeps/x86_64/fpu/Versions: New versions added.
15679         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15680         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
15681         Added build of SSE, AVX2 and AVX512 IFUNC versions.
15682         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
15683         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
15684         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
15685         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
15686         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
15687         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
15688         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
15689         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
15690         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
15691         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
15692         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
15693         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
15694         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
15695         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
15696         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
15697         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15698         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
15699         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15700         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
15701         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15702         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
15703
15704         * NEWS: Mention addition of x86_64 vector sincos.
15705         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
15706         * math/math.h (__MATHDECL_VEC): New macro.
15707         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
15708         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
15709         declaration under condition.
15710         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
15711         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
15712         TEST_VEC_LOOP change.
15713         * math/test-double-vlen4.h: Likewise.
15714         * math/test-double-vlen8.h: Likewise.
15715         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
15716         * math/test-float-vlen4.h: Likewise.
15717         * math/test-float-vlen8.h: Likewise.
15718         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15719         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
15720         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15721         * sysdeps/x86_64/fpu/Versions: New versions added.
15722         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15723         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
15724         Added build of SSE, AVX2 and AVX512 IFUNC versions.
15725         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
15726         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
15727         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
15728         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
15729         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
15730         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
15731         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
15732         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
15733         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
15734         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
15735         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
15736         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
15737         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
15738         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
15739         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
15740         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15741         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
15742         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15743         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
15744         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15745         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
15746
15747         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
15748         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
15749         redirections for powf.
15750         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
15751         * sysdeps/x86_64/fpu/Versions: New versions added.
15752         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
15753         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
15754         Added build of SSE, AVX2 and AVX512 IFUNC versions.
15755         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
15756         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
15757         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
15758         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
15759         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
15760         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
15761         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
15762         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
15763         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
15764         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
15765         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
15766         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
15767         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
15768         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
15769         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
15770         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15771         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
15772         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15773         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
15774         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15775         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
15776         * math/test-float-vlen16.h: Fixed 2 argument macro.
15777         * math/test-float-vlen4.h: Likewise.
15778         * math/test-float-vlen8.h: Likewise.
15779         * NEWS: Mention addition of x86_64 vector powf.
15780
15781 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
15782
15783         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
15784         and redefine.
15785         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
15786         and redefine.
15787         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
15788         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
15789         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
15790
15791         [BZ #18553]
15792         * resource/getpriority.c (getpriority): Rename to __getpriority
15793         and define as weak alias of __getpriority.
15794         * resource/setpriority.c (setpriority): Rename to __setpriority
15795         and define as weak alias of __setpriority.
15796         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
15797         __getpriority and define as weak alias of __getpriority.
15798         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
15799         __setpriority and define as weak alias of __setpriority.
15800         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
15801         strong name.
15802         (setpriority): Use __setpriority as strong name.
15803         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
15804         __getpriority and define as weak alias of __getpriority.
15805         * include/sys/resource.h (__getpriority): Declare.  Use
15806         libc_hidden_proto.
15807         (__setpriority): Likewise.
15808         (getpriority): Don't use libc_hidden_proto.
15809         (setpriority): Likewise.
15810         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
15811         getpriority.  Call __setpriority instead of setpriority.
15812         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
15813         Remove variable.
15814
15815         [BZ #18547]
15816         * misc/getttyent.c (getttynam): Rename to __getttynam and define
15817         as weak alias of __getttynam.  Use prototype function definition.
15818         Call __setttyent, __getttyent and __endttyent instead of
15819         setttyent, getttyent and endttyent.
15820         (getttyent): Rename to __getttyent and define as weak alias of
15821         __getttyent.  Call __setttyent instead of setttyent.  Call
15822         __fgets_unlocked instead of fgets_unlocked.
15823         (setttyent): Rename to __setttyent and define as weak alias of
15824         __setttyent.
15825         (endttyent): Rename to __endttyent and define as weak alias of
15826         __endttyent.
15827         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
15828         (__setttyent): Likewise.
15829         (__endttyent): Likewise.
15830         (getttyent): Don't use libc_hidden_proto.
15831         (setttyent): Likewise.
15832         (endttyent): Likewise.
15833         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
15834         __endttyent instead of setttyent, getttyent and endttyent.
15835         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
15836         Remove variable.
15837
15838         [BZ #18546]
15839         * socket/recv.c (__recv): Use libc_hidden_def.
15840         * socket/socket.c (__socket): Likewise.
15841         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
15842         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
15843         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
15844         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
15845         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
15846         libc_hidden_def.
15847         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
15848         libc_hidden_weak.
15849         * include/sys/socket.h (__socket): Do not use attribute_hidden.
15850         Use libc_hidden_proto.
15851         (__recv): Likewise.
15852         * socket/Versions (libc): Export __recv and __socket at version
15853         GLIBC_PRIVATE.
15854         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
15855         instead of recv.
15856         (init_mq_netlink): Call __socket instead of socket.
15857         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
15858         Remove variable.
15859
15860         [BZ #18545]
15861         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
15862         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
15863         hidden_weak.
15864         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
15865         define as alias of __mq_timedsend.  Use hidden_weak.
15866         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
15867         __mq_timedsend as strong name.
15868         (mq_timedreceive): Use __mq_timedreceive as strong name.
15869         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
15870         (__mq_timedreceive): Likewise.
15871         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
15872         __mq_timedreceive instead of mq_timedreceive.
15873         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
15874         instead of mq_timedsend.
15875         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
15876         Remove variable.
15877
15878         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
15879         hidden_def and hidden_weak instead of libc_hidden_def and
15880         libc_hidden_weak.
15881         (top level): Refer to hidden_def in comment.
15882         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
15883         macro.  Use it instead of libc_hidden_def.
15884         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
15885         specify __GI_* name explicitly.
15886         (mq_timedreceive): Likewise.
15887         (mq_setattr): Likewise.
15888
15889         [BZ #18544]
15890         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
15891         __pthread_barrier_init and define as weak alias of
15892         __pthread_barrier_init.
15893         * sysdeps/sparc/nptl/pthread_barrier_init.c
15894         (pthread_barrier_init): Likewise.
15895         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
15896         __pthread_barrier_wait and define as weak alias of
15897         __pthread_barrier_wait.
15898         * sysdeps/sparc/nptl/pthread_barrier_wait.c
15899         (pthread_barrier_wait): Likewise.
15900         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
15901         (pthread_barrier_wait): Likewise.
15902         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
15903         (pthread_barrier_wait): Likewise.
15904         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
15905         (pthread_barrier_wait): Likewise.
15906         * nptl/Versions (libpthread): Export __pthread_barrier_init and
15907         __pthread_barrier_wait at version GLIBC_PRIVATE.
15908         * include/pthread.h (__pthread_barrier_init): Declare.
15909         (__pthread_barrier_wait): Likewise.
15910         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
15911         Call __pthread_barrier_wait instead of pthread_barrier_wait.
15912         (helper_thread): Likewise.
15913         (init_mq_netlink): Call __pthread_barrier_init instead of
15914         pthread_barrier_init.
15915
15916         [BZ #18542]
15917         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
15918         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
15919         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
15920         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
15921         vswscanf.
15922         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
15923         Remove variable.
15924
15925         [BZ #18540]
15926         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
15927         strong alias of _IO_fflush.  Use libc_hidden_def.
15928         * libio/iofflush_u.c (fflush_unlocked): Rename to
15929         __fflush_unlocked and define as weak alias of __fflush_unlocked.
15930         Use libc_hidden_weak.
15931         * include/stdio.h (__fflush_unlocked): Declare.  Use
15932         libc_hidden_proto.
15933         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
15934         fflush_unlocked.
15935         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
15936         Remove variable.
15937
15938         [BZ #18539]
15939         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
15940         define as weak alias of __addseverity.
15941         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
15942         Remove variable.
15943         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
15944         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
15945         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
15946
15947         [BZ #18536]
15948         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
15949         (__tfind): Likewise.
15950         (__tdelete): Likewise.
15951         (__twalk): Likewise.
15952         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
15953         __twalk to GLIBC_PRIVATE.
15954         * include/search.h (__tsearch): Use libc_hidden_proto.
15955         (__tfind): Likewise.
15956         (__tdelete): Likewise.
15957         (__twalk): Likewise.
15958         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
15959         Call __tdelete instead of tdelete.
15960         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
15961         tfind.  Call __tsearch instead of tsearch.
15962         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
15963         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
15964         Remove variable.
15965         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
15966
15967         [BZ #18534]
15968         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
15969         (dprintf): Define as a weak alias of __dprintf, not a strong
15970         alias.
15971         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
15972         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
15973         dprintf.
15974         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
15975         Remove variable.
15976         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
15977         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
15978
15979         [BZ #18533]
15980         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
15981         not a strong alias.
15982         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
15983         Remove variable.
15984
15985         [BZ #18532]
15986         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
15987         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
15988         (in6addr_loopback): Rename to __in6addr_loopback and define as
15989         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
15990         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
15991         libc_hidden_proto.
15992         (__in6addr_any): Likewise.
15993         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
15994         in6addr_any.
15995         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
15996         variable.
15997         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
15998
15999 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
16000
16001         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
16002         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
16003         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16004         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16005         redirections for pow.
16006         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16007         * sysdeps/x86_64/fpu/Versions: New versions added.
16008         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16009         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16010         build of SSE, AVX2 and AVX512 IFUNC versions.
16011         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
16012         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
16013         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
16014         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
16015         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
16016         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
16017         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
16018         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
16019         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
16020         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
16021         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
16022         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
16023         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
16024         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
16025         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16026         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16027         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16028         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16029         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16030         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16031         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16032         * NEWS: Mention addition of x86_64 vector pow.
16033
16034         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16035         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16036         redirections for expf.
16037         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16038         * sysdeps/x86_64/fpu/Versions: New versions added.
16039         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16040         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16041         build of SSE, AVX2 and AVX512 IFUNC versions.
16042         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
16043         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
16044         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
16045         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
16046         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
16047         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
16048         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
16049         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
16050         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
16051         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
16052         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
16053         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
16054         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
16055         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16056         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16057         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16058         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16059         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16060         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16061         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16062         * NEWS: Mention addition of x86_64 vector expf.
16063
16064         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
16065         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
16066         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16067         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16068         redirections for exp.
16069         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16070         * sysdeps/x86_64/fpu/Versions: New versions added.
16071         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16072         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16073         build of SSE, AVX2 and AVX512 IFUNC versions.
16074         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
16075         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
16076         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
16077         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
16078         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
16079         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
16080         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
16081         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
16082         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
16083         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
16084         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
16085         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
16086         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
16087         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16088         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16089         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16090         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16091         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16092         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16093         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16094         * NEWS: Mention addition of x86_64 vector exp.
16095
16096         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16097         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16098         redirections for logf.
16099         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16100         * sysdeps/x86_64/fpu/Versions: New versions added.
16101         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16102         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16103         build of SSE, AVX2 and AVX512 IFUNC versions.
16104         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
16105         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
16106         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
16107         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
16108         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
16109         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
16110         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
16111         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
16112         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
16113         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
16114         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
16115         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
16116         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
16117         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16118         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16119         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16120         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16121         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16122         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16123         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16124         * NEWS: Mention addition of x86_64 vector logf.
16125
16126         * bits/libm-simd-decl-stubs.h: Added stubs for log.
16127         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
16128         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16129         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16130         redirections for log.
16131         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16132         * sysdeps/x86_64/fpu/Versions: New versions added.
16133         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16134         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16135         build of SSE, AVX2 and AVX512 IFUNC versions.
16136         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
16137         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
16138         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
16139         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
16140         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
16141         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
16142         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
16143         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
16144         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
16145         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
16146         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
16147         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
16148         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
16149         test.
16150         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16151         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16152         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16153         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16154         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16155         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16156         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16157         * NEWS: Mention addition of x86_64 vector log.
16158
16159 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16160
16161         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
16162         cfi_adjust_cfa_offset argument.
16163         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
16164         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
16165
16166         [BZ #18034]
16167         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
16168         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
16169         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
16170         ordering using ldar.
16171         (_dl_tlsdesc_dynamic): Likewise.
16172         (_dl_tlsdesc_return_lazy): Likewise.
16173         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
16174         relaxed atomics instead of volatile and synchronize with release store.
16175         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
16176         volatile.
16177         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
16178
16179 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
16180
16181         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16182         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
16183         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16184         * sysdeps/x86_64/fpu/Versions: New versions added.
16185         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16186         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16187         build of SSE, AVX2 and AVX512 IFUNC versions.
16188         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
16189         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
16190         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
16191         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
16192         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
16193         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
16194         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
16195         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
16196         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
16197         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
16198         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
16199         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
16200         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
16201         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16202         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16203         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16204         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16205         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16206         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16207         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16208         * NEWS: Mention addition of x86_64 vector sinf.
16209
16210 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
16211
16212         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
16213         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
16214         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
16215         Remove variable.
16216         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
16217         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
16218
16219 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16220
16221         [BZ #18530]
16222         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
16223         strong alias of _IO_fputs.  Use libc_hidden_def.
16224         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
16225         and define as weak alias of __fputs_unlocked.  Use
16226         libc_hidden_weak.
16227         * include/stdio.h (__fputs_unlocked): Declare.  Use
16228         libc_hidden_proto.
16229         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
16230         fputs_unlocked.
16231
16232         [BZ #18529]
16233         * resolv/netdb.h [__USE_POSIX]: Change condition to
16234         [__USE_XOPEN2K].
16235         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
16236         not expect.
16237         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
16238         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
16239         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
16240         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
16241         [XPG4 || UNIX98] (AI_ALL): Likewise.
16242         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
16243         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
16244         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
16245         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
16246         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
16247         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
16248         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
16249         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
16250         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
16251         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
16252         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
16253         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
16254         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
16255         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
16256         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
16257         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16258         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16259         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
16260         [XPG4 || UNIX98] (gai_strerror): Likewise.
16261         [XPG4 || UNIX98] (getaddrinfo): Likewise.
16262         [XPG4 || UNIX98] (getnameinfo): Likewise.
16263
16264         [BZ #18528]
16265         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
16266         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
16267         __USE_XOPEN2K8].
16268         (getgrent): Likewise.
16269         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
16270         expect.
16271         [XPG3 || POSIX2008] (endgrent): Likewise.
16272         [XPG3] (setgrent): Likewise.
16273         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
16274         variable.
16275         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
16276
16277         [BZ #18527]
16278         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
16279         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
16280         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
16281         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
16282         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
16283         * include/unistd.h (__getlogin_r): Declare.  Use
16284         libc_hidden_proto.
16285         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
16286         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
16287         variable.
16288         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
16289         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
16290         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
16291
16292 2015-06-12  Martin Sebor  <msebor@redhat.com>
16293
16294         [BZ #18512]
16295         * Makerules (check-install-supported): New target.
16296         (install): Add check-install-supported as a dependency.
16297         * manual/install.texi (Installing the C Library): Document
16298         that overriding prefix and exec_prefix is not supported.
16299         Mention DESTDIR.
16300         * INSTALL: Regenerate from the above.
16301
16302 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16303
16304         [BZ #18519]
16305         * posix/Versions (libc): Export __libc_pread at version
16306         GLIBC_PRIVATE.
16307         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
16308         instead of pread.
16309         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
16310         variable.
16311
16312         [BZ #18522]
16313         * misc/efgcvt_r.c
16314         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
16315         (cvt_symbol): Use weak_alias instead of strong_alias.
16316         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
16317         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
16318         Remove variable.
16319         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
16320         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
16321
16322         [BZ #18520]
16323         * inet/herrno.c (h_errno): Rename to __h_errno.
16324         (__libc_h_errno): Define as alias of __h_errno not h_errno.
16325         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
16326         to __h_errno instead of h_errno.
16327         * nptl/herrno.c (h_errno): Rename to __h_errno.
16328         (__h_errno_location): Refer to __h_errno not h_errno.
16329         * resolv/Versions (h_errno): Rename to __h_errno.
16330         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
16331         Remove variable.
16332         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
16333
16334 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
16335
16336         * configure.ac: More strict check for AVX512 assembler support.
16337         * configure: Regenerated.
16338
16339         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
16340         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
16341         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16342         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
16343         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16344         * sysdeps/x86_64/fpu/Versions: New versions added.
16345         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16346         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16347         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16348         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
16349         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
16350         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
16351         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
16352         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
16353         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
16354         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
16355         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
16356         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
16357         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
16358         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
16359         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
16360         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
16361         test.
16362         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16363         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16364         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16365         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16366         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16367         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16368         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16369         * NEWS: Mention addition of x86_64 vector sin.
16370
16371 2015-06-11  Florian Weimer  <fweimer@redhat.com>
16372
16373         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
16374         comment.
16375
16376 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
16377
16378         [BZ #18479]
16379         * nptl/pt-interp.c: New file.
16380         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
16381         Add pt-interp.
16382         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
16383         $(common-objpfx)runtime-linker.h.
16384
16385 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
16386
16387         * Makeconfig (+interp): Remove unused variable.
16388         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
16389         only.  Depend on $(common-objpfx)runtime-linker.h instead of
16390         $(elf-objpfx)runtime-linker.h.
16391         ($(elf-objpfx)runtime-linker.h): Rename to
16392         $(common-objpfx)runtime-linker.h and move ...
16393         * Makerules [$(build-shared) = yes]: ... here.
16394         * elf/interp.c: Include <runtime-linker.h> instead of
16395         <elf/runtime-linker.h>.
16396
16397 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16398
16399         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
16400         (__gettimeofday_syscall): Remove vsyscall fallback.
16401         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
16402         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
16403         Add syscall fallback function.
16404         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
16405         if vDSO is not present.
16406         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
16407         fallback function.
16408         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
16409         present.
16410         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
16411         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16412
16413 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
16414
16415         [BZ #18497]
16416         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
16417         of wcscmp.
16418         (wcscmp): Define as weak alias of WCSCMP.
16419         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
16420         wcscoll.
16421         (USE_HIDDEN_DEF): Define.
16422         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
16423         __wcscoll.  Don't use libc_hidden_weak.
16424         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
16425         wcscmp.
16426         * sysdeps/i386/i686/multiarch/wcscmp-c.c
16427         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
16428         __GI_wcscmp.
16429         (weak_alias): Undefine and redefine.
16430         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
16431         __wcscmp and define as weak alias of __wcscmp.
16432         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
16433         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
16434         (__wcscoll): Likewise.
16435         (wcscmp): Don't use libc_hidden_proto.
16436         (wcscoll): Likewise.
16437         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
16438         wcscoll.
16439         * posix/regexec.c (check_node_accept_bytes): Likewise.
16440         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
16441         variable.
16442         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
16443         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
16444
16445         [BZ #18507]
16446         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
16447         __fstatvfs and define as weak alias of __fstatvfs.  Use
16448         libc_hidden_weak.
16449         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
16450         and define as weak alias of __statvfs.  Use libc_hidden_weak.
16451         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
16452         Define as alias of __fstatvfs, not fstatvfs.
16453         (fstatvfs64): Likewise.
16454         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
16455         Define as alias of __statvfs, not statvfs.
16456         (statvfs64): Likewise.
16457         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
16458         Remove variable.
16459
16460 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16461
16462         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
16463         (HAVE_GETCPU_VSYSCALL): Define.
16464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
16465         (HAVE_GETCPU_VSYSCALL): Likewise.
16466         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
16467         * sysdeps/unix/sysv/linux/sched_getcpu.c
16468         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
16469         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
16470         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
16471         prototype.
16472         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16473         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
16474         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
16475         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
16476         Define.
16477         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
16478         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
16479         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
16480         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
16481
16482 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
16483
16484         * sysdeps/x86_64/fpu/Makefile: New file.
16485         * sysdeps/x86_64/fpu/Versions: New file.
16486         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
16487         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
16488         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
16489         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
16490         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
16491         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
16492         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
16493         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
16494         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
16495         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
16496         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
16497         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
16498         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
16499         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16500         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16501         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
16502         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
16503         * sysdeps/x86_64/configure.ac: Options for libmvec build.
16504         * sysdeps/x86_64/configure: Regenerated.
16505         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
16506         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
16507         * manual/install.texi (Configuring and compiling): Document
16508         --disable-mathvec.
16509         * INSTALL: Regenerated.
16510         * NEWS: Mention addition of libmvec and x86_64 vector cos.
16511
16512         * math/Makefile: Added rules for vector tests.
16513         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
16514         declaration under condition.
16515         * math/test-double-vlen2.h: New file.
16516         * math/test-double-vlen4.h: New file.
16517         * math/test-double-vlen8.h: New file.
16518         * math/test-vec-loop.h: Added initialization macro.
16519         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
16520         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
16521         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
16522         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
16523         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
16524         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
16525         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
16526         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
16527         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
16528         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
16529         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
16530
16531         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16532         * sysdeps/x86_64/fpu/Versions: New versions added.
16533         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
16534         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
16535         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
16536         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
16537         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
16538         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
16539         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
16540         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
16541         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
16542         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
16543         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
16544         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
16545         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
16546         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16547         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16548         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16549         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
16550         * NEWS: Mention addition of x86_64 vector cosf.
16551
16552         * math/Makefile: Added CFLAGS for new tests.
16553         * math/test-float-vlen16.h: New file.
16554         * math/test-float-vlen4.h: New file.
16555         * math/test-float-vlen8.h: New file.
16556         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
16557         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
16558         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16559         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
16560         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
16561         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
16562         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
16563         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
16564         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
16565         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
16566         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
16567
16568 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
16569
16570         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
16571         * locale/programs/ld-ctype.c: Likewise.
16572
16573 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
16574
16575         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
16576         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
16577         bit_ZMM16_31_state): New macro.
16578         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16579         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
16580
16581 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
16582
16583         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
16584
16585 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
16586
16587         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
16588
16589 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
16590
16591         [BZ #18498]
16592         * libio/memstream.c (open_memstream): Rename to __open_memstream
16593         and define as weak alias of __open_memstream.
16594         * include/stdio.h (__open_memstream): Declare.  Use
16595         libc_hidden_proto.
16596         (open_memstream): Don't use libc_hidden_proto.
16597         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
16598         open_memstream.
16599         * posix/getopt.c (_getopt_internal_r): Likewise.
16600         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
16601         variable.
16602         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
16603         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
16604         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
16605
16606         [BZ #18496]
16607         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
16608         instead of wcrtomb.
16609
16610         [BZ #18483]
16611         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
16612         [__USE_XOPEN2K8].  Remove redundant #endif.
16613         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
16614         Remove redundant #if.
16615         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
16616         Remove variable.
16617         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
16618         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
16619
16620         [BZ #18495]
16621         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
16622         (__iswlower): Likewise.
16623         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
16624         (__iswlower): Likewise.
16625         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
16626         instead of towlower.
16627         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
16628         instead of iswlower.  Call __towupper instead of towupper.
16629         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
16630         instead of iswalnum.
16631
16632 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16633
16634         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
16635         errors to stderr.
16636
16637 2015-06-05  Florian Weimer  <fweimer@redhat.com>
16638
16639         [BZ #15661]
16640         [BZ #17322]
16641         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
16642         Check for overflow properly.  Check for O_APPEND.  Ignore large
16643         file system block sizes.  Add comments about problems.
16644         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
16645         * manual/filesys.texi (Storage Allocation): New node.
16646
16647 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16648
16649         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
16650         cancellable syscalls.
16651         (SYS_ify): Add guard to no redefine it.
16652         (INLINE_SYSCALL): Likewise.
16653         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
16654         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
16655         SYSCALL_CANCEL instead.
16656         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
16657         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
16658         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
16659         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
16660         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
16661         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
16662         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
16663         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
16664         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
16665         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
16666         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
16667         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
16668         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
16669         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
16670         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
16671         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
16672         Likewise.
16673         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
16674         (__libc_pread64): Likewise.
16675         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
16676         (__libc_preadv): Likewise.
16677         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
16678         (__libc_readv64): Likewise.
16679         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
16680         (__libc_pwrite): Likewise.
16681         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
16682         (__libc_pwrite64): Likewise.
16683         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
16684         (__libc_pwritev): Likewise.
16685         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
16686         (__libc_pwritev64): Likewise.
16687         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
16688         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
16689         (sync_file_range): Likewise.
16690         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
16691         Likewise.
16692         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
16693         Likewise.
16694         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
16695         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
16696         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
16697         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
16698         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
16699         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
16700         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
16701         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
16702         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
16703         Likewise.
16704         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
16705         (__libc_read64): Likewise.
16706         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
16707         Likewise.
16708         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
16709         Likewise.
16710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
16711         Likewise.
16712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
16713         Likewise.
16714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
16715         (__libc_pread64): Likewise.
16716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
16717         Likewise.
16718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
16719         (__libc_pwrite64): Likewise.
16720         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
16721         (sync_file_range): Likewise.
16722         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
16723         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
16724         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
16725         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
16726         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
16727         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
16728         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
16729         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
16730         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
16731         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
16732         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
16733         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
16734         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
16735         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
16736         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
16737         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
16738         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
16739         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
16740         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
16741         Likewise.
16742         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
16743         Likewise.
16744         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
16745         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
16746         Likewise.
16747         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
16748         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
16749         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
16750         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
16751         Likewise.
16752         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
16753         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
16754         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
16755         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
16756         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
16757
16758 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
16759
16760         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
16761         Include dl-vdso.
16762         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
16763         Use VDSO routines for gettimeofday, clock_gettime if
16764         available.
16765         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
16766         Declare VDSO symbols.
16767         * sysdeps/unix/sysv/linux/arm/sysdep.h:
16768         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
16769         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
16770         * sysdeps/unix/sysv/linux/arm/Versions: Add
16771         __vdso_clock_gettime.
16772
16773 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16774
16775         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
16776         be an inline implementation regardless of library is built within.
16777         (open_not_cancel_2): Likewise.
16778         (__read_nocancel): Likewise.
16779         (__write_nocancel): Likewise.
16780         (openat_not_cancel): Likewise.
16781         (openat_not_cancel_3): Likewise.
16782         (openat64_not_cancel): Likewise.
16783         (openat64_not_cancel_3): Likewise.
16784         (__close_nocancel): Likewise.
16785         (pause_not_cancel): Likewise.
16786         (nanosleep_not_cancel): Likewise.
16787         (sigsuspend_not_cancel): Likewise.
16788
16789 2015-06-04  Torvald Riegel  <triegel@redhat.com>
16790
16791         [BZ #14958]
16792         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
16793         wake-up.
16794         (__pthread_rwlock_rdlock_slow): Likewise.
16795         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
16796         Likewise.
16797         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
16798         Likewise.
16799         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
16800         * nptl/tst-rwlock16.c: New file.
16801         * nptl/Makefile (tests): Add new test.
16802
16803 2015-06-04  Torvald Riegel  <triegel@redhat.com>
16804
16805         [BZ #18324]
16806         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
16807         missing wake-up of readers.
16808         * nptl/tst-rwlock15.c: New file.
16809         * nptl/Makefile (tests): Add new test.
16810
16811 2015-06-03  Roland McGrath  <roland@hack.frob.com>
16812
16813         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
16814         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
16815         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
16816         and __nacl_supply_interface_rtld.
16817         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
16818         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
16819         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
16820         Add __nacl_supply_interface_rtld.
16821         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
16822
16823 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
16824
16825         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
16826         isfinite.
16827         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
16828         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
16829
16830 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
16831
16832         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
16833         __signbit* with standard C99 macros.
16834         * math/e_exp10l.c: Likewise.
16835         * math/e_exp2l.c: Likewise.
16836         * math/e_scalb.c: Likewise.
16837         * math/e_scalbf.c: Likewise.
16838         * math/e_scalbl.c: Likewise.
16839         * math/s_ldexp.c: Likewise.
16840         * math/s_ldexpf.c: Likewise.
16841         * math/s_ldexpl.c: Likewise.
16842         * math/w_atan2.c: Likewise.
16843         * math/w_atan2f.c: Likewise.
16844         * math/w_atan2l.c: Likewise.
16845         * math/w_cosh.c: Likewise.
16846         * math/w_coshf.c: Likewise.
16847         * math/w_coshl.c: Likewise.
16848         * math/w_exp10.c: Likewise.
16849         * math/w_exp10f.c: Likewise.
16850         * math/w_exp10l.c: Likewise.
16851         * math/w_exp2.c: Likewise.
16852         * math/w_exp2f.c: Likewise.
16853         * math/w_exp2l.c: Likewise.
16854         * math/w_fmod.c: Likewise.
16855         * math/w_fmodf.c: Likewise.
16856         * math/w_fmodl.c: Likewise.
16857         * math/w_hypot.c: Likewise.
16858         * math/w_hypotf.c: Likewise.
16859         * math/w_hypotl.c: Likewise.
16860         * math/w_jnl.c: Likewise.
16861         * math/w_lgamma.c: Likewise.
16862         * math/w_lgamma_r.c: Likewise.
16863         * math/w_lgammaf.c: Likewise.
16864         * math/w_lgammaf_r.c: Likewise.
16865         * math/w_lgammal.c: Likewise.
16866         * math/w_lgammal_r.c: Likewise.
16867         * math/w_pow.c: Likewise.
16868         * math/w_powf.c: Likewise.
16869         * math/w_powl.c: Likewise.
16870         * math/w_remainder.c: Likewise.
16871         * math/w_remainderf.c: Likewise.
16872         * math/w_remainderl.c: Likewise.
16873         * math/w_scalb.c: Likewise.
16874         * math/w_scalbf.c: Likewise.
16875         * math/w_scalbl.c: Likewise.
16876         * math/w_scalbln.c: Likewise.
16877         * math/w_scalblnf.c: Likewise.
16878         * math/w_scalblnl.c: Likewise.
16879         * math/w_sinh.c: Likewise.
16880         * math/w_sinhf.c: Likewise.
16881         * math/w_sinhl.c: Likewise.
16882         * math/w_tgamma.c: Likewise.
16883         * math/w_tgammaf.c: Likewise.
16884         * math/w_tgammal.c: Likewise.
16885         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16886         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
16887         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16888         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16889         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16890         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16891         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
16892         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16893         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16894         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16895         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
16896         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
16897         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16898         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16899         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16900         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16901         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16902         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
16903         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
16904         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16905         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16906         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
16907         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16908         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16909         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
16910         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16911         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
16912         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16913         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16914         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
16915         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
16916         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
16917         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
16918         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
16919         * stdio-common/printf_fp.c: Likewise.
16920         * stdio-common/printf_fphex.c: Likewise.
16921         * stdio-common/printf_size.c: Likewise.
16922
16923 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
16924
16925         [BZ #18470]
16926         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
16927         strnlen.
16928         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
16929         Remove variable.
16930         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
16931         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
16932         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
16933         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
16934         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
16935         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
16936         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
16937         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
16938         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
16939         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
16940
16941         [BZ #18468]
16942         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
16943         weak alias of __wmemchr.  Use libc_hidden_weak.
16944         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
16945         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
16946         instead of wmemchr.
16947
16948 2015-06-02  Roland McGrath  <roland@hack.frob.com>
16949
16950         [BZ #18383]
16951         * elf/tst-tlsalign-extern.c: New file.
16952         * elf/tst-tlsalign-extern-static.c: New file.
16953         * elf/tst-tlsalign-vars.c: New file.
16954         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
16955         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
16956         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
16957         ($(objpfx)tst-tlsalign-extern-static): Likewise.
16958         (test-xfail-tst-tlsalign-extern-static): New variable.
16959
16960 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
16961
16962         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
16963         Use variable name _sc_err instead of err.
16964         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
16965         instead of ret.
16966         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
16967         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
16968         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
16969         (INLINE_SYSCALL): Likewise.
16970
16971         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
16972         * include/string.h (__strnlen): Use libc_hidden_proto.
16973         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
16974         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
16975         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
16976         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
16977         (libc_hidden_def): Undefine and redefine.
16978         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
16979         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
16980         __GI_strnlen.
16981         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
16982         libc_hidden_def.
16983         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
16984
16985         [BZ #18469]
16986         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
16987         weak alias of __towlower.  Use libc_hidden_weak.
16988         (towupper): Rename to __towupper and define as weak alias of
16989         __towupper.  Use libc_hidden_weak.
16990         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
16991         (__towupper): Likewise.
16992         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
16993         __towlower instead of towlower.
16994
16995 2015-06-02  Roland McGrath  <roland@hack.frob.com>
16996
16997         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
16998         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
16999
17000 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17001
17002         * sysdeps/aarch64/libm-test-ulps: Update.
17003
17004 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17005
17006         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
17007         Define.
17008         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17009         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
17010         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17011         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17012         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
17013         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
17014         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
17015
17016 2015-06-01  Martin Sebor  <msebor@redhat.com>
17017
17018         [BZ #18116]
17019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
17020         (__setcontext): Use extended four-operand version of mtsf whenever
17021         possible.
17022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
17023         (__novec_swapcontext): Likewise.
17024
17025 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
17026
17027         * benchtests/scripts/compare_bench.py: New file.
17028         * benchtests/scripts/import_bench.py (mean): New function.
17029         (split_list): Likewise.
17030         (do_for_all_timings): Likewise.
17031         (compress_timings): Likewise.
17032
17033         * benchtests/scripts/import_bench.py: New file.
17034         * benchtests/scripts/validate_benchout.py: Import import_bench
17035         instead of jsonschema.
17036         (validate_bench): Remove function.
17037         (main): Use import_bench.
17038
17039 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
17040
17041         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
17042         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
17043
17044 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17045
17046         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17047
17048 2015-05-28  Roland McGrath  <roland@hack.frob.com>
17049
17050         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
17051         set THREAD_SELF->tid to a magic value and futex-wake it.
17052         Pass its address to the thread_exit system call.
17053         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
17054         bit is clear.
17055         * sysdeps/nacl/lowlevellock.h: New file.
17056         * sysdeps/nacl/lll_timedwait_tid.c: New file.
17057
17058         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
17059         Add TIMEOUT to current time, don't subtract it.
17060
17061 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
17062
17063         [BZ #2981]
17064         [BZ #18422]
17065         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
17066         ($(objpfx)tst-audit2.out): Also depend on
17067         $(objpfx)tst-auditmod9b.so.
17068         * elf/tst-audit2.c: Include <dlfcn.h>.
17069         (calloc_called): New.
17070         (calloc): Allow to be called more than once.
17071         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
17072
17073 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
17074
17075         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
17076         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
17077
17078 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
17079
17080         * stdlib/monetary.h: Fix comment.
17081
17082 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
17083
17084         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
17085         Avoid using variables in #defines that might cause shadowing.
17086         (INTERNAL_VSYSCALL_CALL): Likewise.
17087
17088 2015-05-26  Roland McGrath  <roland@hack.frob.com>
17089
17090         * sysdeps/nacl/lll_timedlock_wait.c: New file.
17091
17092         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
17093         * nptl/lll_timedlock_wait.c: ... to this new file.
17094         * nptl/Makefile (libpthread-routines): Add it.
17095         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
17096         * nptl/lll_timedwait_tid.c: ... to this new file.
17097         * nptl/Makefile (libpthread-routines): Add it.
17098         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
17099         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
17100         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
17101         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
17102         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
17103         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
17104         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
17105         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
17106         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
17107         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
17108
17109 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17110
17111         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
17112         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
17113         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
17114         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
17115         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17116         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17117         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17118         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17119         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17120         * sysdeps/unix/sysv/linux/tile/sysdep.h
17121         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17122         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
17123         using vDSO syscall macro.
17124
17125 2015-05-26  Andriy Rysin  <arysin@gmail.com>
17126
17127         [BZ #17293]
17128         * uk_UA: Fix sorting order for Ukrainian locale
17129
17130 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
17131
17132         * stdlib/monetary.h: Fix comment.
17133
17134 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17135
17136         [BZ #18234]
17137         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
17138         st_mtim and st_ctim members.
17139         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
17140         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
17141         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
17142         (struct stat64): Likewise.
17143         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
17144         (struct stat64): Likewise.
17145         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
17146         (struct stat64): Likewise.
17147
17148 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17149
17150         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
17151         Define and include sysdep-vdso.h.
17152         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
17153         Likewise.
17154         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
17155         Likewise.
17156         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
17157         Define with VDSO_SYMBOL and use PTR_MANGLE.
17158         (__vdso_clock_gettime): Likewise.
17159         (__vdso_clock_getres): Likewise.
17160         (_libc_vdso_platform_setup): Likewise.
17161         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
17162         Likewise.
17163         (_libc_vdso_platform_setup): Likewise.
17164         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
17165         Likewise.
17166         (__vdso_clock_gettime): Likewise.
17167         (__vdso_clock_getres): Likewise.
17168         (__vdso_get_tbfreq): Likewise.
17169         (__vdso_getcpu): Likewise.
17170         (__vdso_time): Likewise.
17171         (__vdso_sigtramp_rt64): Likewise.
17172         (__vdso_signtramp32): Likewise.
17173         (__vdso_sigtramp_rt32): Likewise.
17174         (_libc_vdso_platform_setup): Likewise.
17175         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
17176         Likewise.
17177         (__vdso_clock_gettime): Likewise.
17178         (__vdso_clock_getres): Likewise.
17179         (_libc_vdso_platform_setup): Likewise.
17180         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
17181         Likewise.
17182         (__vdso_clock_gettime): Likewise.
17183         (_libc_vdso_platform_setup): Likewise.
17184         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
17185         Likewise.
17186         (__vdso_getcpu): Likewise.
17187         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
17188         Use VDSO_SYMBOL macro to define.
17189         (__vdso_clock_gettime): Likewise.
17190         (__vdso_clock_getres): Likewise.
17191         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
17192         Likewise.
17193         (__vdso_clock_gettime): Likewise.
17194         (__vdso_clock_getres): Likewise.
17195         (__vdso_get_tbfreq): Likewise.
17196         (__vdso_getcpu): Likewise.
17197         (__vdso_time): Likewise.
17198         (__vdso_sigtramp_rt64): Likewise.
17199         (__vdso_signtramp32): Likewise.
17200         (__vdso_sigtramp_rt32): Likewise.
17201         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
17202         Likewise.
17203         (__vdso_clock_gettime): Likewise.
17204         (__vdso_clock_getres): Likewise.
17205         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
17206         Likewise.
17207         (__vdso_clock_gettime): Likewise.
17208         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
17209         Likewise.
17210         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
17211         macro.
17212         (INTERNAL_VSYSCALL): Likewise.
17213         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
17214         Remove macro.
17215         (INTERNAL_VSYSCALL): Likewise.
17216         (INTERNAL_VSYSCALL_NCS): Likewise.
17217         (INTERNAL_VSYSCALL_CALL): New macro.
17218         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17219         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
17220         Likewise.
17221         (INTERNAL_VSYSCALL): Likewise.
17222         (INTERNAL_VSYSCALL_NCS): Likewise.
17223         (INTERNAL_VSYSCALL_CALL): New macro.
17224         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17226         (INLINE_VSYSCALL): Remove macro.
17227         (INTERNAL_VSYSCALL): Remove macro.
17228         (INTERNAL_VSYSCALL_NCS): Remove macro.
17229         (INTERNAL_VSYSCALL_CALL): New macro.
17230         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
17231         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
17232         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17233         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
17234         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17236         (INLINE_VSYSCALL): Remove macro.
17237         (INTERNAL_VSYSCALL): Likewise.
17238         (INTERNAL_VSYSCALL_NCS): Likewise.
17239         (INTERNAL_VSYSCALL_CALL): New macro.
17240         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
17241         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
17242         PTR_DEMANGLE on vDSO pointer.
17243         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17244         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
17245         macro.
17246         (INTERNAL_SYSCALL): Likewise.
17247         (INTERNAL_VSYSCALL_NCS): Remove macro.
17248         (INTERNAL_VSYSCALL_CALL): New macro.
17249         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
17250         Remove macro.
17251         (INTERNAL_VSYSCALL): Likewise.
17252         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
17253         sysdep-vdso.h instead of libc-vdso.h.
17254         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
17255         definition.
17256         (INLINE_VSYSCALL): Likewise.
17257         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
17258         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
17259         definition.
17260         (INLINE_VSYSCALL): Likewise.
17261         (INTERNAL_VSYSCALL): Likewise.
17262         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17263         * sysdeps/unix/sysv/linux/timespec_get.c
17264         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17265         (timespec_get): Use ANSI prototype.
17266         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
17267         and definition for Linux.
17268
17269 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
17270
17271         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
17272         * include/libc-symbols.h: libmvec_hidden_* macro series added.
17273
17274 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17275
17276         [BZ #2981]
17277         [BZ #18410]
17278         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
17279         for missing DT_PLTRELSZ.
17280
17281 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17282
17283         Remove obsolete aliases that broke 'locale -a'
17284         [BZ #18412]
17285         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
17286         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
17287         breaking some applications that use 'locale -a' output.
17288         Change the encoding of this file from Latin-1 to ASCII to avoid
17289         other potential problems with people grepping this file.
17290
17291 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17292
17293         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
17294         -fasynchronous-unwind-tables.
17295         (CFLAGS-sendto.c): Likewise.
17296         (CFLAGS-sendmsg.c): Likewise.
17297         (CFLAGS-connect.c): Likewise.
17298         (CFLAGS-recvmsg.c): Likewise.
17299         (CFLAGS-recvfrom.c): Likewise.
17300         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
17301         (SOCKETCALL): New macro: non-cancellable socketcall.
17302         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
17303         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
17304         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
17305         * sysdeps/unix/sysv/linux/accept.c: New file.
17306         * sysdeps/unix/sysv/linux/bind.c: Likewise.
17307         * sysdeps/unix/sysv/linux/connect.c: Likewise.
17308         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
17309         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
17310         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
17311         * sysdeps/unix/sysv/linux/listen.c: Likewise.
17312         * sysdeps/unix/sysv/linux/recv.c: Likewise.
17313         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
17314         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
17315         * sysdeps/unix/sysv/linux/send.c: Likewise.
17316         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
17317         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
17318         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
17319         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
17320         * sysdeps/unix/sysv/linux/socket.c: Likewise.
17321         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
17322         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
17323         prototype.
17324         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
17325         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17326         instead of __internal_xxx function.
17327         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
17328         prototype.
17329         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
17330         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17331         instead of __internal_xxx function.
17332         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
17333         prototype.
17334         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
17335         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17336         instead of __internal_xxx function.
17337         * sysdeps/unix/sysv/linux/accept.S: Remove file.
17338         * sysdeps/unix/sysv/linux/bind.S: Likewise.
17339         * sysdeps/unix/sysv/linux/connect.S: Likewise.
17340         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
17341         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
17342         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
17343         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
17344         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
17345         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
17346         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
17347         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
17348         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
17349         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
17350         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
17351         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
17352         * sysdeps/unix/sysv/linux/listen.S: Likewise.
17353         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
17354         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
17355         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
17356         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
17357         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
17358         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
17359         * sysdeps/unix/sysv/linux/recv.S: Likewise.
17360         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
17361         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
17362         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
17363         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
17364         * sysdeps/unix/sysv/linux/send.S: Likewise.
17365         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
17366         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
17367         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
17368         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
17369         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
17370         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
17371         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
17372         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
17373         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
17374         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
17375         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
17376         socketcall is implemented in GLIBC.
17377
17378 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
17379
17380         * soft-fp/fmadf4.c: Include <libc-internal.h>.
17381         (__fma): Ignore uninitialized warnings around packing.
17382         * soft-fp/fmasf4.c: Include <libc-internal.h>.
17383         (__fmaf): Ignore uninitialized warnings around packing.
17384         * soft-fp/fmatf4.c: Include <libc-internal.h>.
17385         (__fmal): Ignore uninitialized warnings around packing.
17386
17387         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
17388         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
17389         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
17390         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
17391
17392         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
17393         switch statement into default case.
17394         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
17395
17396         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
17397         a conditional in forcing "inexact".
17398         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
17399         Likewise.
17400
17401 2015-05-22  Roland McGrath  <roland@hack.frob.com>
17402
17403         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
17404         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
17405         for each INTERNAL_SYSCALL use.
17406
17407 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
17408
17409         [BZ #438]
17410         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
17411         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
17412         variable.
17413
17414         [BZ #18444]
17415         * string/basename.c (basename): Rename to __basename and define as
17416         weak alias of __basename.  Use libc_hidden_weak.
17417         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
17418         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
17419         __basename instead of basename.
17420         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
17421         Remove variable.
17422         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
17423
17424 2015-05-18  Florian Weimer  <fweimer@redhat.com>
17425
17426         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
17427         (_IO_JUMPS_FILE_plus): New.
17428         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
17429         _IO_CAST_FIELD_ACCESS.
17430         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
17431         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
17432         * libio/freopen.c (freopen): Likewise.
17433         * libio/freopen64.c (freopen64): Likewise.
17434         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
17435         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
17436         * libio/iofwide.c (_IO_fwide): Likewise.
17437         * libio/memstream.c (open_memstream): Likewise.
17438         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
17439         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
17440         * libio/oldiopopen.c (_IO_old_popen): Likewise.
17441
17442 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
17443
17444         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
17445         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
17446         NADJ.
17447         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
17448         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
17449         NADJ.
17450         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
17451         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
17452         NADJ.
17453
17454         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
17455         (p == 4) case.
17456
17457         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
17458         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
17459         Remove variable.
17460         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
17461         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
17462         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
17463
17464 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17465
17466         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
17467         Adjust jump table label generation macros.
17468
17469 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17470
17471         * stdio-common/vfprintf.c (vfprintf): Move local variables
17472         args_malloced, specs, specs_malloced, and the code after
17473         do_positional to the printf_positional function.
17474         (printf_positional): New function.
17475
17476 2015-05-21  Florian Weimer  <fweimer@redhat.com>
17477
17478         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
17479         function.
17480         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
17481         STEP4_TABLE, process_arg): Move macro definitions
17482         out of the vfprintf function.  (Cosmetic change only.)
17483
17484 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
17485
17486         * benchtests/Makefile (stdio-common-bench): Define.
17487         (benchset): Add stdio-common-bench.
17488         * sprintf-inputs: New file.
17489         * sprintf-source.c: New file.
17490
17491 2015-05-21  Andreas Schwab  <schwab@suse.de>
17492
17493         [BZ #13028]
17494         [BZ #17053]
17495         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
17496         of struct __res_state.
17497         * resolv/res_send.c (__libc_res_nsend): Likewise.
17498         (get_nsaddr): New function.
17499         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
17500         statp directly.
17501
17502 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
17503
17504         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
17505         -D_POSIX_C_SOURCE=199506L.
17506
17507         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
17508
17509         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
17510         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
17511         Do not mention otherwise.
17512         [POSIX] (_XOPEN_VERSION): Do not expect.
17513         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
17514         [POSIX] (_POSIX2_C_BIND): Likewise.
17515         [POSIX] (_POSIX2_VERSION): Likewise.
17516         [POSIX] (_XOPEN_XPG2): Likewise.
17517         [POSIX] (_XOPEN_XPG3): Likewise.
17518         [POSIX] (_XOPEN_XPG4): Likewise.
17519         [POSIX] (_XOPEN_UNIX): Likewise.
17520         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
17521         [POSIX] (_POSIX_BARRIERS): Likewise.
17522         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
17523         [POSIX] (_POSIX_CPUTIME): Likewise.
17524         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
17525         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
17526         [POSIX] (_POSIX_SHELL): Likewise.
17527         [POSIX] (_POSIX_SPAWN): Likewise.
17528         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
17529         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
17530         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
17531         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
17532         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
17533         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
17534         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
17535         [POSIX] (_XBS5_LP64_OFF64): Likewise.
17536         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
17537         [POSIX] (_POSIX_TIMEOUTS): Likewise.
17538         [POSIX] (_POSIX2_PBS): Likewise.
17539         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
17540         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
17541         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
17542         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
17543         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
17544         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
17545         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
17546         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
17547         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
17548         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
17549         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
17550         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
17551         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
17552         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
17553         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
17554         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
17555         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
17556         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
17557         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
17558         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
17559         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
17560         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
17561         [POSIX] (_SC_2_C_BIND): Likewise.
17562         [POSIX] (_SC_2_C_VERSION): Likewise.
17563         [POSIX] (_SC_2_PBS): Likewise.
17564         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
17565         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
17566         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
17567         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
17568         [POSIX] (_SC_2_PBS_TRACK): Likewise.
17569         [POSIX] (_SC_ATEXIT_MAX): Likewise.
17570         [POSIX] (_SC_BARRIERS): Likewise.
17571         [POSIX] (_SC_BASE): Likewise.
17572         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
17573         [POSIX] (_SC_DEVICE_IO): Likewise.
17574         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
17575         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
17576         [POSIX] (_SC_FD_MGMT): Likewise.
17577         [POSIX] (_SC_FIFO): Likewise.
17578         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
17579         [POSIX] (_SC_FILE_LOCKING): Likewise.
17580         [POSIX] (_SC_FILE_SYSTEM): Likewise.
17581         [POSIX] (_SC_IOV_MAX): Likewise.
17582         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
17583         [POSIX] (_SC_NETWORKING): Likewise.
17584         [POSIX] (_SC_PAGE_SIZE): Likewise.
17585         [POSIX] (_SC_PASS_MAX): Likewise.
17586         [POSIX] (_SC_PIPE): Likewise.
17587         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
17588         [POSIX] (_SC_REGEXP): Likewise.
17589         [POSIX] (_SC_SHELL): Likewise.
17590         [POSIX] (_SC_SIGNALS): Likewise.
17591         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
17592         [POSIX] (_SC_SPIN_LOCKS): Likewise.
17593         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
17594         [POSIX] (_SC_USER_GROUPS): Likewise.
17595         [POSIX] (_SC_USER_GROUPS_R): Likewise.
17596         [POSIX] (_SC_STREAMS): Likewise.
17597         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
17598         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
17599         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
17600         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
17601         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
17602         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
17603         [POSIX] (_PC_FILESIZEBITS): Likewise.
17604         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
17605         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
17606         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
17607         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
17608         [POSIX] (uid_t): Likewise.
17609         [POSIX] (gid_t): Likewise.
17610         [POSIX] (off_t): Likewise.
17611         [POSIX] (pid_t): Likewise.
17612         [POSIX] (cuserid): Allow.
17613         (_SC_2_CHAR_TERM): Require constant.
17614         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
17615         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
17616         variable.
17617
17618 2015-05-20  Roland McGrath  <roland@hack.frob.com>
17619
17620         * sysdeps/nacl/pthread-pids.h: New file.
17621         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
17622         (create_thread): Use __nacl_get_tid to initialize PD->tid.
17623
17624         * nptl/pthread-pids.h: New file.
17625         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
17626         * nptl/nptl-init.c: Include <pthread-pids.h>.
17627         (__pthread_initialize_minimal_internal):
17628         Call __pthread_initialize_pids instead of set_tid_address syscall.
17629
17630         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
17631         * sysdeps/posix/usleep.c: ... here.
17632
17633 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17634
17635         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
17636         call_pselect6 object.
17637         [$(subdir) = io]: Remove call_sync_file_range object.
17638         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
17639         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
17640         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
17641         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
17642
17643 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
17644
17645         * math/s_cproj.c: Add include "math_private.h".
17646         * math/s_cprojf.c: Likewise.
17647         * math/s_cprojl.c: Likewise.
17648
17649 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
17650
17651         [BZ #18244]
17652         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
17653         high mantissa bit when testing whether P is a NaN.
17654         * math/libm-test.inc (remainder_test_data): Add more tests.
17655         (remquo_test_data): Likewise.
17656
17657         [BZ #18049]
17658         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
17659         below -32, return the argument, with underflow if subnormal.
17660         * math/auto-libm-test-in: Add more tests of atanh.
17661         * math/auto-libm-test-out: Regenerated.
17662
17663 2015-05-19  Roland McGrath  <roland@hack.frob.com>
17664
17665         [BZ #18434]
17666         * nptl/tst-sem15.c: New file.
17667         * nptl/Makefile (tests): Add it.
17668         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
17669         s/<</>>/ to fix typo in EOVERFLOW check.
17670         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
17671
17672 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
17673
17674         * manual/strings.texi (envz_remove): Fix typo in safety
17675         annotations.
17676
17677 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17678             Steve Ellcey  <sellcey@imgtec.com>
17679
17680         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
17681         in order to avoid strict alias warnings.
17682         (iruserok_af): Ditto for ra.
17683
17684 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
17685
17686         [BZ #17581]
17687         * malloc/hooks.c
17688         (magicbyte): Convert to a function and avoid returning 0x01.
17689         (mem2mem_check): Avoid using a length byte equal to the magic byte.
17690         (mem2chunk_check): Fix unsigned comparisons to zero.
17691         Hoist defs of sz and magic.
17692
17693 2015-05-19  Richard Henderson  <rth@redhat.com>
17694
17695         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
17696
17697         * sysdeps/alpha/fpu/libm-test-ulps: Update.
17698
17699 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
17700
17701         [BZ #16159]
17702         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
17703         * malloc/arena.c (arena_lock): Check if arena is corrupt.
17704         (reused_arena): Find a non-corrupt arena.
17705         (heap_trim): Pass arena to unlink.
17706         * malloc/hooks.c (malloc_check_get_size): Pass arena to
17707         malloc_printerr.
17708         (top_check): Likewise.
17709         (free_check): Likewise.
17710         (realloc_check): Likewise.
17711         * malloc/malloc.c (malloc_printerr): Add arena argument.
17712         (unlink): Likewise.
17713         (munmap_chunk): Adjust.
17714         (ARENA_CORRUPTION_BIT): New macro.
17715         (arena_is_corrupt): Likewise.
17716         (set_arena_corrupt): Likewise.
17717         (sysmalloc): Use mmap if there are no usable arenas.
17718         (_int_malloc): Likewise.
17719         (__libc_malloc): Don't fail if arena_get returns NULL.
17720         (_mid_memalign): Likewise.
17721         (__libc_calloc): Likewise.
17722         (__libc_realloc): Adjust for additional argument to
17723         malloc_printerr.
17724         (_int_free): Likewise.
17725         (malloc_consolidate): Likewise.
17726         (_int_realloc): Likewise.
17727         (_int_memalign): Don't touch corrupt arenas.
17728         * malloc/tst-malloc-backtrace.c: New test case.
17729
17730         * Makefile (summarize-tests): Fix return value on success.
17731
17732         * manual/string.texi (Envz Functions): Add envz_remove.
17733
17734 2015-05-18  Roland McGrath  <roland@hack.frob.com>
17735
17736         * sysdeps/posix/opendir.c: Include <stdbool.h>.
17737         (invalid_name): New function, broken out of ...
17738         (__opendirat): ... here.  Call it.
17739         (need_isdir_precheck): New function, broken out of ...
17740         (__opendirat): ... here.  Call it.
17741         Use __fxstatat64, not __xstatat64.
17742         (opendir_oflags): New function, broken out of ...
17743         (__opendirat): ... here.  Call it.
17744         (opendir_tail): New function, broken out of ...
17745         (__opendirat): ... here.  Call it.
17746         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
17747         opendir_tail, rather than punting to __opendirat.
17748         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
17749
17750 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
17751
17752         * .gitignore: Ignore generated *.pyc.
17753
17754 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
17755
17756         * include/stdio.h: Define __need_wint_t.
17757         * test-skeleton.c: Avoid `for' loop initial declaration.
17758         * nptl/tst-initializers1.c: Use test-skeleton.c.
17759
17760 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17761
17762         [BZ #18418]
17763         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
17764
17765 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
17766
17767         [BZ #16352]
17768         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
17769         (__ieee754_atanh): Force underflow exception for results with
17770         small absolute value.
17771         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
17772         (__ieee754_atanhf): Force underflow exception for results with
17773         small absolute value.
17774         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
17775         (__ieee754_atanh): Force underflow exception for results with
17776         small absolute value.
17777         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
17778         (__ieee754_atanhf): Force underflow exception for results with
17779         small absolute value.
17780         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
17781         (__ieee754_atanhl): Force underflow exception for results with
17782         small absolute value.
17783         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
17784         (__ieee754_atanhl): Force underflow exception for results with
17785         small absolute value.
17786         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
17787         (__ieee754_atanhl): Force underflow exception for results with
17788         small absolute value.
17789         * math/auto-libm-test-in: Do not allow missing underflow
17790         exceptions from atanh.
17791         * math/auto-libm-test-out: Regenerated.
17792
17793         [BZ #18221]
17794         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
17795         2**-28 as threshold for returning x or +/- 1/x.
17796         * math/auto-libm-test-in: Add more tests of tan.
17797         * math/auto-libm-test-out: Regenerated.
17798
17799         [BZ #18220]
17800         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
17801         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
17802         * math/auto-libm-test-in: Add another test of lgamma.
17803         * math/auto-libm-test-out: Regenerated.
17804
17805 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
17806
17807         * stdio-common/printf_fp.c (___printf_fp): Use abs.
17808         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
17809         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
17810         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
17811         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
17812         (ADD2A): Use fabs.  (SUB2A): Use fabs.
17813         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
17814         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
17815         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
17816         (log1): Use fabs.  (my_log2): Use fabs.
17817         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
17818         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
17819         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
17820         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
17821         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
17822         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
17823         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
17824         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
17825         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
17826         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
17827         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
17828
17829 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
17830
17831         [BZ #18217]
17832         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
17833         as threshold for returning 1 - x.
17834         * math/auto-libm-test-in: Add more tests of erfc.
17835         * math/auto-libm-test-out: Regenerated.
17836
17837 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
17838
17839         [BZ #18196]
17840         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
17841         threshold for large arguments.
17842         * math/auto-libm-test-in: Add another test of atan.
17843         * math/auto-libm-test-out: Regenerated.
17844
17845         [BZ #16339]
17846         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
17847         (__log1p): Force underflow exception for results with small
17848         absolute value.
17849         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
17850         (__log1pf): Force underflow exception for results with small
17851         absolute value.
17852         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
17853         (__log1p): Force underflow exception for results with small
17854         absolute value.
17855         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
17856         (__log1pf): Force underflow exception for results with small
17857         absolute value.
17858         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
17859         (__log1pl): Force underflow exception for results with small
17860         absolute value.
17861         * math/auto-libm-test-in: Do not allow missing underflow
17862         exceptions from log1p.
17863         * math/auto-libm-test-out: Regenerated.
17864
17865 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
17866             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17867
17868         [BZ #16704]
17869         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
17870
17871 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
17872
17873         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
17874         (libmvec): New variable.
17875         * configure.ac: Added option for mathvec build.
17876         * configure: Regenerated.
17877         * mathvec/Depend: New file.
17878         * mathvec/Makefile: New file.
17879         * shlib-versions: Added libmvec.
17880         * math/Makefile: Added rule for libm.so installation.
17881
17882         * bits/math-vector.h: New file.
17883         * bits/libm-simd-decl-stubs.h: New header.
17884         * math/Makefile (headers): Added new header
17885         libm-simd-decl-stubs.h.
17886         * math/math.h (__MATHCALL_VEC): New macro.
17887
17888         * math/gen-libm-have-vector-test.sh: Script generates series of macros
17889         for conditions in testing functions.
17890         * math/Makefile: Added call of libm-have-vector-test.sh.
17891         * math/libm-test.inc (HAVE_VECTOR): New macros.
17892
17893         * math/libm-test.inc: START refactored.
17894         * math/test-double.c (TEST_MATHVEC): Add define.
17895         * math/test-float.c: Likewise.
17896         * math/test-idouble.c: Likewise.
17897         * math/test-ifloat.c: Likewise.
17898         * math/test-ildoubl.c: Likewise.
17899         * math/test-ldouble.c: Likewise.
17900         * sysdeps/generic/math-tests-arch.h
17901         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
17902         architecture check.
17903
17904         * math/test-double.c (FUNC_TEST): New macro.
17905         * math/test-float.c: Likewise.
17906         * math/test-idouble.c: Likewise.
17907         * math/test-ifloat.c: Likewise.
17908         * math/test-ildoubl.c: Likewise.
17909         * math/test-ldouble.c: Likewise.
17910         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
17911
17912 2015-05-13  Roland McGrath  <roland@hack.frob.com>
17913
17914         * sysdeps/nacl/fdopendir.c: New file.
17915
17916         * dirent/scandir-tail.c: New file.
17917         * dirent/scandir64-tail.c: New file.
17918         * dirent/Makefile (routines): Add them.
17919         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
17920         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
17921         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
17922         [!SCANDIR] (SCANDIR_TAIL): New macro.
17923         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
17924         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
17925         (SCANDIRAT): Macro removed.
17926         (SCANDIR_TAIL): New macro.
17927         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
17928         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
17929         (SCANDIRAT): Just call __opendirat and __scandir_tail.
17930         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
17931         (READDIR): Macro removed.
17932         (SCANDIR_TAIL): New macro.
17933         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
17934         (SCANDIR_TAIL): New macro.
17935
17936         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
17937         * dirent/scandir-cancel.c: ... to this new file.
17938         * dirent/Makefile (routines): Add it.
17939         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
17940         * sysdeps/unix/sysv/linux/i386/scandir64.c
17941         (SKIP_SCANDIR_CANCEL): Macro removed.
17942         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
17943
17944         * dirent/tst-scandir.c: New file.
17945         * dirent/tst-scandir64.c: New file.
17946         * dirent/Makefile (tests): Add them.
17947
17948 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
17949
17950         [BZ #18409]
17951         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
17952
17953 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17954
17955         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
17956         list.
17957
17958 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
17959
17960         * benchtests/bench-strcoll.c: New benchmark.
17961         * benchtests/Makefile: Generate locales and run benchmark.
17962         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
17963         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
17964         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
17965         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
17966         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
17967         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
17968         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
17969         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
17970         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
17971         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
17972         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
17973         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
17974         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
17975         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
17976         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
17977         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
17978         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
17979         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
17980         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
17981         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
17982         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
17983         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
17984         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
17985         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
17986
17987 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
17988
17989         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
17990         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
17991
17992 2015-05-12  Roland McGrath  <roland@hack.frob.com>
17993
17994         * posix/uname-values.h: New file.
17995         * posix/uname.c: Include that instead of <config-name.h>.
17996         * sysdeps/nacl/uname-values.h: New file.
17997         * sysdeps/arm/nacl/uname-values.h: New file.
17998
17999 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
18000
18001         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
18002         splitting into fields.
18003
18004 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
18005
18006         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
18007         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
18008         * locale/localeinfo.h: Add enum collation_encoding_type.
18009         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
18010         * programs/ld-collate.c (collate_output): Add encoding type info.
18011         * string/strcoll_l.c (STRDIFF): New function.
18012         * (STRCOLL): Use STRDIFF to skip over equal prefix.
18013         * wcsmbs/wcscoll_l.c: Define STRDIFF.
18014
18015 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
18016
18017         [BZ #18397]
18018         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
18019         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
18020         <fpu_control.h> instead of <math/fpu_control.c>.
18021         * sysdeps/mips/mips32/fpu/Makefile: New file.
18022
18023 2015-05-11  Andreas Schwab  <schwab@suse.de>
18024
18025         [BZ #18007]
18026         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
18027         nss_endgrent.
18028         (_nss_compat_endgrent): Call nss_endgrent.
18029         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
18030         nss_endpwent.
18031         (_nss_compat_endpwent): Call nss_endpwent.
18032         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
18033         needent, call nss_setspent only if non-zero.
18034         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
18035         (internal_endspent): Don't call nss_endspent.
18036         (_nss_compat_endspent): Call nss_endspent.
18037         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
18038         Remove.  All uses removed.
18039         (internal_setent): Remove parameter stayopen, add parameter
18040         stream.  Use it instead of global variable.
18041         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
18042         (internal_endent, internal_getent): Add parameter stream.  Use it
18043         instead of global variable.
18044         (CONCAT(_nss_files_end,ENTNAME))
18045         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
18046         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
18047         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
18048         uses removed.
18049         (internal_setent, internal_endent): Add parameter stream.  Use it
18050         instead of global variable.
18051         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
18052         stream.
18053         (get_next_alias): Add parameter stream.
18054         (_nss_files_getaliasent_r): Pass global stream.
18055         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
18056         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
18057         (_nss_files_gethostbyname4_r): Pass local stream to
18058         internal_setent, internal_getent and internal_endent.  Remove
18059         locking.
18060
18061 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
18062
18063         * tst-strfmon1.c (tests): Update expected currency symbol.
18064
18065 2015-05-08  Roland McGrath  <roland@hack.frob.com>
18066
18067         * sysdeps/nacl/gethostname.c: New file.
18068
18069 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
18070
18071         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
18072         and sinh.
18073         * math/auto-libm-test-out: Regenerated.
18074         * sysdeps/i386/fpu/libm-test-ulps: Update.
18075         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18076
18077 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
18078
18079         [BZ #18125]
18080         * stdlib/tst-setcontext3.c: New file.
18081         * stdlib/tst-setcontext3.sh: New file.
18082         * stdlib/Makefile (tests): Add tst-setcontext3.
18083         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
18084         to verify test program created output file.
18085         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
18086         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
18087         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
18088         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
18089
18090 2015-05-06  Roland McGrath  <roland@hack.frob.com>
18091
18092         [BZ #18383]
18093         * elf/tst-tlsalign.c: New file.
18094         * elf/tst-tlsalign-static.c: New file.
18095         * elf/tst-tlsalign-lib.c: New file.
18096         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
18097         (tests-static): Add tst-tlsalign-static.
18098         (modules-names): Add tst-tlsalign-lib.
18099         (test-xfail-tst-tlsalign): New variable.
18100         (test-xfail-tst-tlsalign-static): New variable.
18101
18102         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
18103         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
18104
18105 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
18106
18107         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
18108         csqrt, erfc, sin and sincos.
18109         * math/auto-libm-test-out: Regenerated.
18110         * sysdeps/i386/fpu/libm-test-ulps: Update.
18111         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18112
18113 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18114
18115         * sysdeps/aarch64/libm-test-ulps: Update.
18116
18117 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
18118
18119         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
18120         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
18121         * math/auto-libm-test-out: Regenerated.
18122         * sysdeps/i386/fpu/libm-test-ulps: Update.
18123         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18124
18125 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
18126
18127         [BZ #18265]
18128         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
18129         (wcsncpy): Likewise.
18130
18131 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18132
18133         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
18134         Assume __ASSUME_FALLOCATE is always true.
18135         * sysdeps/unix/sysv/linux/posix_fallocate64.c
18136         (__posix_fallocate64_l64): Likweise.
18137         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
18138         (posix_fallocate): Likewise.
18139         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
18140         (__posix_fallocate64_l64): Likewise.
18141         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
18142         [!__ASSUME_FALLOCATE]: Add comment.
18143
18144 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18145
18146         * sysdeps/unix/sysv/linux/i386/Makefile
18147         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
18148         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
18149         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
18150         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18151         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18152         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
18153         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
18154
18155 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
18156
18157         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
18158         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
18159         tgamma.
18160         * math/auto-libm-test-out: Regenerated.
18161         * sysdeps/i386/fpu/libm-test-ulps: Update.
18162         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18163
18164 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18165
18166         * math/auto-libm-test-in: Add more tests of tgamma.
18167         * math/auto-libm-test-out: Regenerated.
18168         * sysdeps/i386/fpu/libm-test-ulps: Update.
18169         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18170
18171         * math/auto-libm-test-in: Add more tests of tanh.
18172         * math/auto-libm-test-out: Regenerated.
18173         * sysdeps/i386/fpu/libm-test-ulps: Update.
18174         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18175
18176         * math/auto-libm-test-in: Add more tests of tan.
18177         * math/auto-libm-test-out: Regenerated.
18178         * sysdeps/i386/fpu/libm-test-ulps: Update.
18179         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18180
18181         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
18182         * math/auto-libm-test-out: Regenerated.
18183         * sysdeps/i386/fpu/libm-test-ulps: Update.
18184         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18185
18186         * math/auto-libm-test-in: Add another test of pow.
18187         * math/auto-libm-test-out: Regenerated.
18188         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18189
18190         * math/auto-libm-test-in: Add more tests of lgamma.
18191         * math/auto-libm-test-out: Regenerated.
18192         * sysdeps/i386/fpu/libm-test-ulps: Update.
18193         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18194
18195         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
18196         log1p.
18197         * math/auto-libm-test-out: Regenerated.
18198         * sysdeps/i386/fpu/libm-test-ulps: Update.
18199         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18200
18201 2015-05-01  Mark Wielaard  <mjw@redhat.com>
18202
18203         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
18204         Elf64_Chdr structs and ELFCOMPRESS constants.
18205
18206 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18207
18208         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
18209         expm1.
18210         * math/auto-libm-test-out: Regenerated.
18211         * sysdeps/i386/fpu/libm-test-ulps: Update.
18212         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18213
18214         * math/auto-libm-test-in: Add more tests of erf and erfc.
18215         * math/auto-libm-test-out: Regenerated.
18216         * sysdeps/i386/fpu/libm-test-ulps: Update.
18217         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18218
18219 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18220
18221         * config.h.in (HAVE_AARCH64_BE): Add.
18222
18223 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
18224
18225         * math/auto-libm-test-in: Add more tests of csqrt.
18226         * math/auto-libm-test-out: Regenerated.
18227         * sysdeps/i386/fpu/libm-test-ulps: Update.
18228         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18229
18230         * math/auto-libm-test-in: Add more tests of cosh and sinh.
18231         * math/auto-libm-test-out: Regenerated.
18232         * sysdeps/i386/fpu/libm-test-ulps: Update.
18233         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18234
18235         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
18236
18237 2015-04-29  Roland McGrath  <roland@hack.frob.com>
18238
18239         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
18240         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
18241
18242         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
18243         (euidaccess, eaccess): Define as weak aliases.
18244
18245         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
18246         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
18247         but __suseconds_t is often 'long int' so some sources assume that
18248         type is being used (e.g. they use %ld to print tv_usec).
18249
18250 2015-04-29  Florian Weimer  <fweimer@redhat.com>
18251
18252         [BZ #18007]
18253         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
18254         (CVE-2014-8121)
18255         * nss/tst-nss-getpwent.c: New file.
18256         * nss/Makefile (tests): Add new test.
18257
18258 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
18259
18260         [BZ #18346]
18261         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
18262         exponents less than 48 as cases where high part of mantissa needs
18263         examining to determine whether argument is integral.
18264         * math/libm-test.inc (round_test_data): Add more tests.
18265
18266 2015-04-28  Mark Wielaard  <mjw@redhat.com>
18267
18268         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
18269
18270 2015-04-27  David S. Miller  <davem@davemloft.net>
18271
18272         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
18273         __tls_get_addr.
18274         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
18275
18276 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
18277
18278         [BZ#18333]
18279         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
18280
18281 2015-04-27  Florian Weimer  <fweimer@redhat.com>
18282
18283         [BZ#18333]
18284         * time/tzset.c (parse_tzname): Return error on memory allocation
18285         failure.
18286         * test-skeleton.c (struct temp_name_list): Change type of name
18287         member to non-const.
18288         (add_temp_file): Create a copy of the file name.
18289         (delete_temp_files): Deallocate memory.
18290         (create_temp_file): Add comment.
18291
18292 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18293
18294         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
18295         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
18296
18297 2015-04-24  Roland McGrath  <roland@hack.frob.com>
18298
18299         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
18300         * sysdeps/arm/configure: Regenerated.
18301
18302 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18303
18304         [BZ #17715]
18305         * time/tzfile.c (__tzfile_read): Check for large values of
18306         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
18307         * time/tzset.c (__tzstring_len): New function, based on the old
18308         __tzstring function.
18309         (__tzstring): Call __tzstring_len.
18310         (parse_tzname): New helper function extracted from
18311         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
18312         the input string.
18313         (parse_offset): New helper function extracted from
18314         __tzset_parse_tz.  Replace switch with fallthrough with
18315         initialization before sscanf.
18316         (parse_rule): Likewise.
18317         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
18318         new-style function definition.
18319         * timezone/Makefile (tests): Add tst-tzset.
18320         (tst-tzset.out): Dependencies on time zone files.
18321         (tst-tzset-ENV): Set TZDIR.
18322         (testdata/XT%): Copy crafted time zone files.
18323         * timezone/README: Mention crafted time zone files.
18324         * timezone/testdata/XT1, timezone/testdata/XT2,
18325         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
18326         files.
18327         * timezone/tst-tzset.c: New test.
18328
18329 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18330
18331         * Makeconfig (+gccwarn): Remove -Winline.
18332
18333 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18334
18335         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
18336
18337 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18338
18339         * NEWS: Mention sysconf() cache information support for s390.
18340         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
18341
18342 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
18343
18344         * math/k_casinh.c (__kernel_casinh): Use __copysign.
18345         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
18346         (__nearbyint): Likewise.
18347         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
18348         (copysignl): Likewise.
18349
18350 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
18351
18352         [BZ #18287]
18353         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
18354         based on padding.  (CVE-2015-1781)
18355
18356 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18357
18358         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
18359         libc-vdso.h.
18360         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
18361         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
18362         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
18363         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
18364         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
18365         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
18366         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
18367         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
18368         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
18369         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
18370         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
18371         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
18372         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
18373         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
18374         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
18375         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
18376         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
18377         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
18378         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
18379         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
18380         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
18381         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
18382         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
18383
18384 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
18385
18386         * stdlib/setenv.c (__add_to_environ):
18387         Dump core quickly if setenv (..., NULL, ...) is called.
18388         This time, do it the right way, and pacify GCC with a pragma.
18389
18390 2015-04-17  Roland McGrath  <roland@hack.frob.com>
18391
18392         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
18393         IMAP->l_prev cannot be null, and #if out the code for the contrary
18394         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
18395         believe that NS (&_dl_ns[NSID]) could point outside the array.
18396
18397         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
18398         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
18399         before using NSID as an index.
18400
18401 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
18402
18403         [BZ #17825]
18404         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
18405         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
18406         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
18407
18408 2015-04-17  Roland McGrath  <roland@hack.frob.com>
18409
18410         Add preliminary port to Google Native Client on ARM.
18411         * abi-tags (.*-.*-nacl.*): New entry.
18412         * sysdeps/arm/nacl: New directory.
18413         * sysdeps/nacl: New directory.
18414
18415 2015-04-16  David S. Miller  <davem@davemloft.net>
18416
18417         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
18418         lowlevellock-futex.h
18419
18420 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
18421
18422         * sysdeps/tile/configure.ac: New file.
18423         * sysdeps/tile/configure: Regenerated.
18424
18425 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18426
18427         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
18428         conditionals for weak_alias and libc_hidden_weak.
18429         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
18430         libc_hidden_weak and weak_alias.
18431         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
18432         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
18433         and weak_alias for static one.
18434
18435 2015-04-15  David S. Miller  <davem@davemloft.net>
18436
18437         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
18438
18439 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
18440
18441         [BZ #18206]
18442         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
18443           Use signed comparision instead of substraction to avoid
18444           overflow bug.
18445         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
18446           Take the sign of ret.
18447         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
18448           Do not expect precise return values. Only the sign matters.
18449         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
18450         * wcsmbs/test-wcsncmp.c: New File.
18451         * string/test-strncmp.c: Add wcsncmp support.
18452
18453 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
18454
18455         [BZ #6792]
18456         * math/w_log1p.c: New file.
18457         * math/w_log1pf.c: Likewise.
18458         * math/w_log1pl.c: Likewise.
18459         * math/Makefile (libm-calls): Add w_log1p.
18460         * math/s_log1pl.c (log1pl): Remove weak_alias.
18461         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
18462         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
18463         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
18464         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
18465         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
18466         [NO_LONG_DOUBLE] (log1pl): Likewise.
18467         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
18468         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
18469         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
18470         (log1p): Remove long_double_symbol.
18471         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
18472         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
18473         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
18474         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
18475         remove weak_alias for corresponding log1p function.
18476         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
18477         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
18478         * sysdeps/ia64/fpu/w_log1p.c: New file.
18479         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
18480         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
18481         * math/libm-test.inc (log1p_test_data): Add errno expectations.
18482
18483 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
18484
18485         [BZ #18247]
18486         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
18487         decimal exponent by 1.
18488         * stdlib/tst-strtod-round-data: Add more tests.
18489         * stdlib/tst-strtod-round.c (tests): Regenerated.
18490
18491 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
18492
18493         * math/auto-libm-test-in: Add more tests of clog and clog10.
18494         * math/auto-libm-test-out: Regenerated.
18495         * sysdeps/i386/fpu/libm-test-ulps: Update.
18496         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18497
18498 2015-04-09  Roland McGrath  <roland@hack.frob.com>
18499
18500         * Makeconfig (module-cppflags): Exclude all .v.i files.
18501         (skip-module-cppflags): Variable removed.
18502
18503         * configure.ac (libc_config_ok): Initialize before reading
18504         preconfigure scripts, not after.
18505         * configure: Regenerated.
18506
18507         * test-skeleton.c (TIMEOUT): Move #define to top level.
18508         (main): Grok environment variable TEST_DIRECT.  If set, print
18509         test expectation details into that file and then behave as if
18510         given --direct.
18511
18512 2015-04-09  Florian Weimer  <fweimer@redhat.com>
18513
18514         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
18515         warning on 32-bit.
18516
18517 2015-04-08  David S. Miller  <davem@davemloft.net>
18518
18519         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18520
18521 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
18522
18523         * math/auto-libm-test-in: Add more tests of atanh.
18524         * math/auto-libm-test-out: Regenerated.
18525         * sysdeps/i386/fpu/libm-test-ulps: Update.
18526         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18527
18528         * math/auto-libm-test-in: Add more tests of atan.
18529         * math/auto-libm-test-out: Regenerated.
18530         * sysdeps/i386/fpu/libm-test-ulps: Update.
18531         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18532
18533 2015-04-08  Florian Weimer  <fweimer@redhat.com>
18534
18535         * elf/pldd.c (main): Rewrite to use struct
18536         scratch_buffer instead of extend_alloca.
18537         * elf/pldd-xx.c (find_maps): Likewise.
18538         * grp/initgroups.c: Include <scratch_buffer.h> instead of
18539         <alloca.h>.
18540         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
18541         scratch_buffer instead of extend_alloca.
18542         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
18543         grp/compat-initgroups.c.
18544         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
18545         Rewrite to use struct scratch_buffer instead of extend_alloca.
18546         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
18547         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
18548
18549 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
18550
18551         * math/auto-libm-test-in: Add more tests of cbrt.
18552         * math/auto-libm-test-out: Regenerated.
18553         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18554
18555         * math/auto-libm-test-in: Add more tests of cabs.
18556         * math/auto-libm-test-out: Regenerated.
18557         * sysdeps/i386/fpu/libm-test-ulps: Update.
18558         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18559
18560         [BZ #18210]
18561         [BZ #18211]
18562         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
18563         (__ieee754_atan2): Set FE_TONEAREST mode for internal
18564         computations.
18565         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
18566         clog10.
18567         * math/auto-libm-test-out: Regenerated.
18568         * sysdeps/i386/fpu/libm-test-ulps: Update.
18569         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18570
18571         [BZ #18197]
18572         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
18573         (atan): Set FE_TONEAREST mode for internal computations.
18574         * math/auto-libm-test-in: Add more tests of atan.
18575         * math/auto-libm-test-out: Regenerated.
18576
18577 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
18578
18579         [BZ #17930]
18580         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
18581
18582 2015-04-07  Florian Weimer  <fweimer@redhat.com>
18583
18584         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
18585
18586 2015-04-07  Florian Weimer  <fweimer@redhat.com>
18587
18588         * include/scratch_buffer.h: New file.
18589         * malloc/scratch_buffer_grow.c: Likewise.
18590         * malloc/scratch_buffer_grow_preserve.c: Likewise.
18591         * malloc/scratch_buffer_set_array_size.c: Likewise.
18592         * malloc/tst-scratch_buffer.c: Likewise.
18593         * malloc/Makefile (routines): Add scratch_buffer_grow.
18594         (tests): Add test case.
18595         * malloc/Versions (GLIBC_PRIVATE): Export
18596         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
18597         __libc_scratch_buffer_set_array_size.
18598
18599 2015-04-06  Richard Henderson  <rth@redhat.com>
18600
18601         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
18602         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18603
18604         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
18605         unsigned int before printing.
18606
18607 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18608
18609         [BZ #17596]
18610         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
18611         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
18612
18613 2015-04-02  Florian Weimer  <fweimer@redhat.com>
18614
18615         * include/libc-internal.h (libc_max_align_t): Define.
18616
18617 2015-04-02  Andreas Schwab  <schwab@suse.de>
18618
18619         [BZ #16850]
18620         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
18621
18622 2015-04-02  Mel Gorman  <mgorman@suse.de>
18623
18624         [BZ #17195]
18625         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
18626         as well as the main arena.
18627
18628 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18629
18630         [BZ #18185]
18631         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
18632         sharing L2 cache to 2 for Silvermont/Knights Landing.
18633
18634 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18635
18636         [BZ #17711]
18637         * config.make.in (have-protected-data): New.
18638         * configure.ac: Check linker support for protected data symbol.
18639         * configure: Regenerated.
18640         * elf/Makefile (modules-names): Add tst-protected1moda and
18641         tst-protected1modb if $(have-protected-data) is yes.
18642         (tests): Add tst-protected1a and tst-protected1b if
18643         $(have-protected-data) is yes.
18644         ($(objpfx)tst-protected1a): New.
18645         ($(objpfx)tst-protected1b): Likewise.
18646         (tst-protected1modb.so-no-z-defs): Likewise.
18647         * elf/tst-protected1a.c: New file.
18648         * elf/tst-protected1b.c: Likewise.
18649         * elf/tst-protected1mod.h: Likewise.
18650         * elf/tst-protected1moda.c: Likewise.
18651         * elf/tst-protected1modb.c: Likewise.
18652
18653 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18654
18655         [BZ #17711]
18656         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
18657         indicates it is called from do_lookup_x on relocation against
18658         protected data, skip the data definion in the executable from
18659         copy reloc.
18660         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
18661         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
18662         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
18663         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
18664         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
18665         otherwise to 0.
18666         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
18667         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
18668         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
18669         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
18670         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
18671         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
18672
18673 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
18674
18675         * sysdeps/nptl/pthread.h: Remove duplicate definition of
18676         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
18677
18678 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
18679
18680         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
18681         THREAD_SETMEM_NC.
18682         * sysdeps/x86_64/nptl/tls.h: Ditto.
18683
18684 2015-03-27  Roland McGrath  <roland@hack.frob.com>
18685
18686         * dlfcn/tststatic.c (main): Converted to ...
18687         (do_test): ... this.
18688         (TEST_FUNCTION): New macro.
18689         Include test-skeleton.c.
18690
18691 2015-03-26  Alan Modra  <amodra@gmail.com>
18692
18693         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
18694         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
18695         zero for undefined weak.
18696         (elf_machine_plt_conflict): Similarly.
18697
18698 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
18699
18700         * math/auto-libm-test-in: Add more tests of acosh, asinh and
18701         atanh.
18702         * math/auto-libm-test-out: Regenerated.
18703         * sysdeps/i386/fpu/libm-test-ulps: Update.
18704         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18705
18706         * math/auto-libm-test-in: Add another test of asin.
18707         * math/auto-libm-test-out: Regenerated.
18708         * sysdeps/i386/fpu/libm-test-ulps: Update.
18709         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18710
18711         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
18712         Remove macro.
18713         (LLL_EBX_REG): Likewise.
18714         (LLL_ENTER_KERNEL): Likewise.
18715
18716         * math/auto-libm-test-in: Add more tests of asin.
18717         * math/auto-libm-test-out: Regenerated.
18718         * sysdeps/i386/fpu/libm-test-ulps: Update.
18719         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18720
18721         [BZ #18138]
18722         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
18723         libc_do_syscall_args): New structure.
18724         (INTERNAL_SYSCALL_MAIN_0): New macro.
18725         (INTERNAL_SYSCALL_MAIN_1): Likewise.
18726         (INTERNAL_SYSCALL_MAIN_2): Likewise.
18727         (INTERNAL_SYSCALL_MAIN_3): Likewise.
18728         (INTERNAL_SYSCALL_MAIN_4): Likewise.
18729         (INTERNAL_SYSCALL_MAIN_5): Likewise.
18730         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
18731         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
18732         Replace conditional definitions by conditional definitions of ....
18733         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
18734         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
18735         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
18736         (libpthread-sysdep_routines): Add libc-do-syscall.
18737         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
18738         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
18739         to __NR_futex not 240.
18740
18741 2015-03-25  Alan Modra  <amodra@gmail.com>
18742
18743         * NEWS: Advertise TLS optimization.
18744         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
18745         (DT_PPC_NUM): Increment.
18746         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
18747         (CHECK_STATIC_TLS): Use here.
18748         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
18749         TLS descriptors.
18750         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
18751         * sysdeps/powerpc/dl-tls.c: New file.
18752         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
18753         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
18754         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
18755         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
18756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
18757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
18758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
18759
18760 2015-03-25  Alan Modra  <amodra@gmail.com>
18761
18762         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
18763         for overlapping .opd entries" to "support...".
18764         * sysdeps/powerpc/powerpc64/configure: Regenerate
18765
18766 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
18767
18768         * math/auto-libm-test-in: Add more tests of acos.
18769         * math/auto-libm-test-out: Regenerated.
18770         * sysdeps/i386/fpu/libm-test-ulps: Update.
18771         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18772
18773         * math/auto-libm-test-in: Add more tests of expm1.
18774         * math/auto-libm-test-out: Regenerated.
18775         * sysdeps/i386/fpu/libm-test-ulps: Update.
18776         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18777
18778 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
18779
18780         * math/auto-libm-test-in: Add more tests of cosh and sinh.
18781         * math/auto-libm-test-out: Regenerated.
18782         * sysdeps/i386/fpu/libm-test-ulps: Update.
18783         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18784
18785         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
18786         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18787
18788         * math/auto-libm-test-in: Add more tests of log2.
18789         * math/auto-libm-test-out: Regenerated.
18790         * sysdeps/i386/fpu/libm-test-ulps: Update.
18791         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18792
18793 2015-03-23  Roland McGrath  <roland@hack.frob.com>
18794
18795         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
18796         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
18797         _IO_IS_APPENDING bit in READ_WRITE instead.
18798
18799 2015-03-23  Florian Weimer  <fweimer@redhat.com>
18800
18801         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
18802         (__determine_cpumask_size): Replace extend_alloca with a
18803         variable-length array.  Do not treat res == 0 as an error.
18804
18805 2015-03-23  Florian Weimer  <fweimer@redhat.com>
18806
18807         [BZ #18100]
18808         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
18809         and integer overflow.
18810         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
18811         (main): Add integer overflow tests.
18812         * manual/pattern.texi (Calling Wordexp): Document additional use
18813         for WRDE_SYNTAX.
18814
18815 2015-03-23  Alan Modra  <amodra@gmail.com>
18816
18817         * config.h.in: Remove HAVE_ASM_PPC_REL16.
18818         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
18819         and false branch of conditional.
18820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
18821         Likewise.
18822
18823 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
18824
18825         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
18826         libc-modules.h
18827         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
18828         unused declaration of _hurd_intr_rpc_msg_in_trap.
18829         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
18830         defined instead of whether it is non-zero.
18831         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
18832         input constraint instead of both input and output constraint.  Use ecx
18833         clobber instead of %ecx.
18834         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
18835         mutex_unlock): Use a statement expression instead of an expression list.
18836         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
18837         type to vm_size_t instead of vm_address_t.
18838         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
18839         defined instead of whether it is non-zero.
18840         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
18841         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
18842         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
18843         comparisons with mapaddr.
18844         * nscd/nscd-client.h: Include <time.h>.
18845         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
18846         9th parameter to __vm_region instead of int.
18847         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
18848         * scripts/check-local-headers.sh (exclude): Add device/,
18849         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
18850         cthreads.h.
18851
18852 2015-03-19  Roland McGrath  <roland@hack.frob.com>
18853
18854         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
18855         to account for alignment padding.
18856         * sysdeps/arm/memmove.S: Likewise.
18857
18858 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
18859
18860         * sysdeps/unix/sysv/linux/generic/README: New file.
18861
18862 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
18863
18864         [BZ #18138]
18865         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
18866         (futex_abstimed_wait)
18867         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
18868         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
18869         of lll_futex_timed_wait.
18870
18871 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
18872
18873         [BZ #17542]
18874         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
18875
18876 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
18877
18878         [BZ #17090]
18879         [BZ #17620]
18880         [BZ #17621]
18881         [BZ #17628]
18882         * NEWS: Update.
18883         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
18884         entries with Static TLS too.  Skip entries past the end of the
18885         allocated DTV, from Alan Modra.
18886         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
18887         Static TLS DTV entry set up from...
18888         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
18889         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
18890         * nptl/allocatestack.c (init_one_static_tls): ... and here...
18891         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
18892         for Static TLS.
18893         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
18894         that the slot we find is associated with the given map before
18895         using its generation count.
18896         * nptl_db/db_info.c: Include ldsodefs.h.
18897         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
18898         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
18899         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
18900         (link_map::l_tls_offset): New struct field.
18901         (dtv_t::counter): Likewise.
18902         (rtld_global): New struct.
18903         (_rtld_global): New rtld variable.
18904         (dl_tls_dtv_slotinfo_list): New rtld global field.
18905         (dtv_slotinfo_list): New struct.
18906         (dtv_slotinfo): Likewise.
18907         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
18908         (td_lookup): Rename to...
18909         (td_mod_lookup): ... this.  Use new mod parameter instead of
18910         LIBPTHREAD_SO.
18911         * nptl_db/td_thr_tlsbase.c: Include link.h.
18912         (dtv_slotinfo_list, dtv_slotinfo): New functions.
18913         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
18914         addresses even if the DTV is out of date or missing them.
18915         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
18916         index zero-length arrays.
18917         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
18918         (td_lookup): Make it a macro implemented in terms of...
18919         (td_mod_lookup): ... this declaration.
18920         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
18921         (DB_MAIN_VARIABLE): Likewise.
18922
18923 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18924
18925         [BZ #18134]
18926         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
18927
18928 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
18929
18930         * stdlib/setenv.c (__add_to_environ): Revert previous change.
18931
18932 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
18933
18934         [BZ #18128]
18935         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
18936         (atomic_add, atomic_increment_and_test)
18937         (atomic_decrement_and_test): Fix 64-bit arithmetic.
18938
18939 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
18940
18941         * stdlib/setenv.c (__add_to_environ):
18942         Dump core quickly if setenv (..., NULL, ...) is called.
18943
18944 2015-03-13  Roland McGrath  <roland@hack.frob.com>
18945
18946         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
18947         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
18948         all the necessary asm magic in one place.
18949         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
18950         using those.
18951
18952 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
18953
18954         [BZ #14906]
18955         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
18956         traced file mtime. Use consistent log message.
18957         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
18958         (register_traced_file): Call install_watches. Always set mtime.
18959         (invalidate_cache): Iterate over all trace files. Call install_watches.
18960         (inotify_check_files): Don't inline. Handle watching parent
18961         directories and configuration file movement in and out.
18962         (handle_inotify_events): New function.
18963         (main_loop_poll): Call handle_inotify_events.
18964         (main_loop_epoll): Likewise.
18965         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
18966         (struct traced_file): Use array of inotify fds. Add parent directory,
18967         and basename.
18968         (struct database_dyn): Remove unused file_mtime.
18969         (init_traced_file): New inline function.
18970         (define_traced_file): New macro.
18971         * nss/nss_db/db-init.c: Use define_traced_file.
18972         (_nss_db_init): Use init_traced_file.
18973         * nss/nss_files/files-init.c: Use define_traced_file.
18974         (_nss_files_init): Use init_traced_file.
18975
18976 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
18977
18978         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
18979         [_LIBC]: Do not include <stdlib.h>.
18980         [!_LIBC] (abort): Remove declaration.
18981         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
18982         _FP_STATIC_ASSERT instead of conditionally calling abort.
18983         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
18984         (_FP_EXTEND_CNAN): Likewise.
18985         (FP_TRUNC): Likewise.
18986         (__FP_CLZ): Likewise.
18987         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
18988
18989 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
18990
18991         * manual/string.texi (XPG basename): Fix prototype.
18992
18993 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
18994
18995         [BZ #18080]
18996         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
18997         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
18998         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
18999         (__setcontext): Likewise.
19000         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
19001         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19002         Call rt_sigprocmask syscall one time to set new signal mask
19003         and retrieve the current signal mask instead of two calls.
19004         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
19005         (__swapcontext): Likewise.
19006         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
19007         * stdlib/tst-setcontext2.c: New file.
19008
19009 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19010
19011         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
19012
19013 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
19014
19015         [BZ #18093]
19016         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
19017         the wrong size.
19018
19019 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
19020
19021         [BZ #18043]
19022         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
19023
19024 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19025
19026         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
19027         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
19028         Remove define.
19029         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
19030         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
19031         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
19032         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
19033         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
19034         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
19035         define.
19036         * nptl_db/td_symbol_list.c (td_lookup): Remove
19037         HAVE_ASM_GLOBAL_DOT_NAME code.
19038         * sysdeps/powerpc/powerpc64/configure.ac: Remove
19039         HAVE_ASM_GLOBAL_DOT_NAME check.
19040         * sysdeps/powerpc/powerpc64/configure: Regenerate.
19041         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
19042         (DOT_LABEL): Remove define.
19043         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
19044         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
19045         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
19046         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
19047         (__TLS_GET_ADDR): Likewise.
19048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
19049         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
19050
19051 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
19052
19053         [BZ #18111]
19054         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
19055         (_FPU_SETCW): Initialize cw from fpsr before storing.
19056         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
19057         (fesetexceptflag): Rewrite using fpu_control.h.
19058         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
19059
19060 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
19061
19062         [BZ #18110]
19063         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
19064         asms.
19065         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
19066
19067 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
19068
19069         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
19070         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
19071         abort.
19072         (_FP_FMA): Likewise.
19073         (_FP_DIV): Likewise.
19074
19075 2015-03-10  Roland McGrath  <roland@hack.frob.com>
19076
19077         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
19078         with 0 in that case.
19079         * Makefile (summarize-tests): New canned sequence, factored out of
19080         commands for targets tests and xtests.  Display summary lines that
19081         don't start with PASS: or XFAIL: rather than ones that do start with
19082         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
19083         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
19084         do start with ERROR: or FAIL:.
19085         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
19086         (except for [$(build-shared) = yes]).
19087         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
19088         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
19089         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
19090         * nptl/Makefile: Revert 2015-03-04 changes.
19091         [$(CXX) empty] (tests-unsupported): New variable.
19092         * debug/Makefile: Likewise.
19093
19094         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
19095         gnulib file.  Replace __attribute with __attribute__ throughout.
19096
19097 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
19098
19099         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19100
19101 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19102
19103         [BZ #18104]
19104         * math/auto-libm-test-in: Add another test of pow.
19105         * math/auto-libm-test-out: Regenerated.
19106
19107 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19108
19109         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
19110         $(config-cflags-nofma).
19111
19112 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19113
19114         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
19115         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
19116         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
19117         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
19118         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
19119         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
19120         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
19121         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
19122         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
19123         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
19124         Add comment on closing #endif.
19125
19126 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19127
19128         * posix/wordexp.c (CHAR_IN_SET): New macro.
19129         (parse_param): Use it.
19130
19131 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19132
19133         * sysdeps/powerpc/fpu/libm-test-ulps: update.
19134
19135 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19136
19137         [BZ #18043]
19138         * posix/wordexp.c (parse_param): Fix buffer overflow.
19139         * posix/wordexp-test.c (test_case): Add test case.
19140
19141 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19142
19143         [BZ #18042]
19144         * posix/wordexp.c (parse_backtick): Fix off-by-one.
19145         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
19146
19147 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19148
19149         [BZ #18043]
19150         * posix/wordexp-test.c (test_case): Add test for BZ #18043
19151         (do_bz18043): Delete.
19152         (at_page_end): New.
19153         (testit): Refactor to have words at the edge of unreadable page.
19154
19155 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
19156
19157         [BZ #16734]
19158         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
19159         Cleanup read-only streams as well.
19160         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
19161
19162 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19163
19164         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
19165         <bits/libc-lockP.h>
19166
19167 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
19168
19169         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
19170         on [__KERNEL__].
19171         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
19172         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
19173         * soft-fp/op-common.h (_FP_DECL): Likewise.
19174
19175 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
19176
19177         * elf/ifuncdep2.c (global): Replace
19178         __attribute__((visibility("protected"))) with
19179         asm (".protected global").
19180         * elf/ifuncmod1.c (global): Likewise.
19181         * elf/ifuncmod5.c (global): Likewise.
19182
19183 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
19184
19185         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
19186         <asm/sfp-machine.h> instead of <sfp-machine.h>.
19187
19188 2015-03-06  Roland McGrath  <roland@hack.frob.com>
19189
19190         * manual/install.texi (Configuring and compiling):
19191         Document test-wrapper-env-only.
19192         * INSTALL: Regenerated.
19193
19194 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19195
19196         [BZ #18043]
19197         * posix/wordexp.c (parse_param): Fix buffer overflow.
19198         * posix/wordexp-test.c (do_bz18043): Add test case.
19199
19200 2015-03-06  Vincent Bernat  <vincent@bernat.im>
19201
19202         * time/tst-strptime2.c (do_test): Ensure failing tests are
19203         reported correctly.
19204         * time/tst-strptime3.c (do_test): Likewise.
19205
19206 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
19207
19208         Fix aio_error thread-safety.
19209         * sysdeps/pthread/aio_error.c: New file
19210         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
19211         synchronization.
19212
19213 2015-03-06  Florian Weimer  <fweimer@redhat.com>
19214
19215         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
19216         (group_number, vfprintf): Use it.
19217         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
19218         (JUMP, REF): Use it.
19219         (WORK_BUFFER_SIZE): New enum constant.
19220         (process_arg, vfprintf): Use it.
19221
19222 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
19223
19224         * manual/errno.texi (Error Messages): Complete example function
19225         by adding missing #define.
19226         (program_invocation_name): Add statement indicating GNU
19227         extension and reference which header file declares the variable.
19228         (program_invocation_short_name): Likewise.
19229
19230 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
19231
19232         * manual/errno.texi (Error Messages): Delete strerror ISO C89
19233         compatibility note.
19234
19235 2015-03-05  Roland McGrath  <roland@hack.frob.com>
19236
19237         * Makeconfig (test-wrapper-env-only): New variable.
19238         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
19239         then use that with $(test-wrapper-env-only) rather than using
19240         $(test-wrapper-env) $(run-program-env) $($*-ENV).
19241
19242 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19243
19244         [BZ #18082]
19245         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
19246         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
19247         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
19248         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
19249         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
19250         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
19251         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
19252         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
19253         Likewise.
19254         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
19255         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
19256         Likewise.
19257         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
19258         Likewise.
19259         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
19260         Likewise.
19261         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
19262         Likewise.
19263         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
19264         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
19265         Likewise.
19266         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
19267         Likewise.
19268         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
19269         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
19270
19271 2015-03-04  Roland McGrath  <roland@hack.frob.com>
19272
19273         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
19274         (ETH_ALEN): New macro.
19275         (struct ether_addr): Use it for length of ether_addr_octet.
19276
19277         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
19278         (setdb): Don't call __nss_configure_lookup for "rpc".
19279         (do_test): Don't call test_rpc.
19280         (output_rpcent, test_rpc): Functions moved ...
19281         * sunrpc/test-rpcent.c: ... to this new file.
19282         * sunrpc/Makefile (tests): Add it.
19283
19284         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
19285         __xpg_sigpause.
19286         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
19287         * nptl/tst-signal6.c: Likewise.
19288         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
19289         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
19290
19291         * configure.ac (libc_cv_cxx_link_ok): New check.
19292         Reset CXX to empty if it fails to link.
19293         * configure: Regenerated.
19294         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
19295         bug-atexit3-lib only if $(CXX) is nonempty.
19296         * nptl/Makefile (tests): Likewise for tst-cancel24.
19297         (tests, tests-static): Likewise for tst-cancel24-static.
19298         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
19299         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
19300         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
19301         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
19302
19303 2015-03-04  Andreas Schwab  <schwab@suse.de>
19304
19305         [BZ #17631]
19306         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
19307         for non-GCC compilers.
19308         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
19309         Likewise.
19310
19311 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19312
19313         [BZ #17776]
19314         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
19315         integer before bitwise and assembly operations.
19316         (feclearexcept): Likewise.
19317         * math/test-fenvinline.c: New file.
19318         * math/Makefile: Add test-fenvinline test.
19319
19320 2015-03-03  Alan Modra  <amodra@gmail.com>
19321
19322         [BZ #16512]
19323         * scripts/localplt.awk: Strip off symbol version.
19324         * NEWS: Mention bug fix.
19325
19326 2015-03-02  Roland McGrath  <roland@hack.frob.com>
19327
19328         * sysdeps/pthread/timer_routines.c
19329         (timer_free_list, thread_free_list, thread_active_list): Make static.
19330
19331 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
19332
19333         [BZ #17779]
19334         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
19335         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19336         Undefine.
19337         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19338         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19339         Likewise.
19340         * sysdeps/unix/sysv/linux/sh/kernel-features.h
19341         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19342         Likewise.
19343
19344 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
19345
19346         [BZ #18036]
19347         * posix/fnmatch_loop.c (END): Detect invalid pattern.
19348         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
19349
19350 2015-03-02  Andreas Schwab  <schwab@suse.de>
19351
19352         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
19353         variable name.
19354
19355 2015-03-02  Florian Weimer  <fweimer@redhat.com>
19356
19357         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
19358         Return error status.
19359
19360 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
19361
19362         [BZ #15969]
19363         * locale/findlocale.c (_nl_find_locale): Introduce const
19364         version of loc_name and drop unsafe type casts.
19365
19366 2015-02-27  Roland McGrath  <roland@hack.frob.com>
19367
19368         * dlfcn/tststatic2.c (main): Converted to ...
19369         (do_test): ... this.
19370         (TEST_FUNCTION): New macro.
19371         Include test-skeleton.c.
19372
19373 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
19374
19375         [BZ #17711]
19376         * elf/Makefile (tests): Add vismain only if PIE is enabled.
19377         (tests-pie): Add vismain.
19378         (CFLAGS-vismain.c): New.
19379         * elf/vismain.c: Add comments for PIE requirement.
19380
19381 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
19382
19383         [BZ #18046]
19384         [BZ #18047]
19385         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
19386         0x1p-56L as threshold for just returning the argument.
19387         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
19388         0x1p-32L as threshold for just returning the argument.
19389         * math/auto-libm-test-in: Add more tests of atanh.
19390         * math/auto-libm-test-out: Regenerated.
19391         * sysdeps/i386/fpu/libm-test-ulps: Update.
19392         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
19393
19394 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
19395
19396         * string/bcopy.c (bcopy): Call memmove for performance.
19397
19398 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
19399
19400         * string/bzero.c (__bzero): Call memset for performance.
19401
19402 2015-02-27  John David Anglin  <dave.anglin@bell.net>
19403
19404         [BZ #18068]
19405         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
19406         to 00100000.
19407
19408 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
19409
19410         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
19411
19412 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
19413
19414         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
19415         (__kernel_standard): Use CSTR macro when setting exc.name.
19416         * sysdeps/ieee754/Makefile [$(subdir) = math]
19417         (CFLAGS-k_standard.c): Remove variable.
19418
19419         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
19420         setting p and q from "else if" to "else".
19421         (qzero): Likewise.
19422         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
19423         (qone): Likewise.
19424         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
19425         (qzerof): Likewise.
19426         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
19427         (qonef): Likewise.
19428         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
19429         (qzero): Likewise.
19430         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
19431         (qone): Likewise.
19432
19433         [BZ #18038]
19434         [BZ #18039]
19435         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
19436         return pi/2 for arguments below 0x1p-113L.
19437         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
19438         return pi/2 for arguments below 0x1p-106L.
19439         * math/auto-libm-test-in: Add more tests of acos.
19440         * math/auto-libm-test-out: Regenerated.
19441
19442         [BZ #16351]
19443         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
19444         (MO): New macro.
19445         (__ieee754_asin): Force underflow exception for results with small
19446         absolute value.
19447         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
19448         (MO): New macro.
19449         (__ieee754_asinf): Force underflow exception for results with
19450         small absolute value.
19451         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
19452         (__ieee754_asin): Force underflow exception for results with small
19453         absolute value.
19454         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
19455         (__ieee754_asinf): Force underflow exception for results with
19456         small absolute value.
19457         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
19458         (__ieee754_asinl): Force underflow exception for results with
19459         small absolute value.
19460         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
19461         (__ieee754_asinl): Force underflow exception for results with
19462         small absolute value.
19463         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
19464         (__ieee754_asinl): Force underflow exception for results with
19465         small absolute value.
19466         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
19467         Include <math.h>.
19468         * math/auto-libm-test-in: Do not mark underflow exceptions as
19469         possibly missing for bug 16351.
19470         * math/auto-libm-test-out: Regenerated.
19471
19472         [BZ #18030]
19473         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
19474         of power of 2 down when low part has opposite sign.
19475         * math/libm-test.inc (logb_test_data): Add more tests.
19476
19477 2015-02-26  Andreas Schwab  <schwab@suse.de>
19478
19479         [BZ #18032]
19480         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
19481         over collating symbol inside a bracket expression.  Minor cleanup.
19482         * posix/tst-fnmatch3.c (do_test): Add test case.
19483
19484 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
19485
19486         [BZ #18029]
19487         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
19488         Adjust exponent of power of 2 down when low part has opposite
19489         sign.
19490         * math/libm-test.inc (ilogb_test_data): Add more tests.
19491
19492 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
19493
19494         [BZ #15969]
19495         * locale/findlocale.c (_nl_find_locale): Fix constness error in
19496         the previous change.
19497
19498         [BZ #15969]
19499         * locale/findlocale.c (_nl_find_locale): Retry archive search
19500         after alias expansion.
19501
19502 2015-02-25  Roland McGrath  <roland@hack.frob.com>
19503
19504         * iconv/tst-iconv3.c (main): Converted to ...
19505         (do_test): ... this.
19506         (TEST_FUNCTION): New macro.
19507         Include test-skeleton.c.
19508
19509         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
19510         (convert): Make function static.
19511         (test_unalign): Likewise.  Add const to argument pointee types.
19512         (main): Replace with static function do_test.
19513         Print "Succeeded." only if RET is zero.
19514         (TEST_FUNCTION): New macro.
19515         Include test-skeleton.c.
19516
19517         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
19518         returns a null pointer.
19519
19520 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19521
19522         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
19523         to __memcpy_ppc only for static builds.
19524
19525 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
19526
19527         [BZ #18020]
19528         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
19529         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
19530         * math/auto-libm-test-in: Add more tests of asinh.
19531         * math/auto-libm-test-out: Regenerated.
19532         * sysdeps/i386/fpu/libm-test-ulps: Update.
19533         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19534
19535 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
19536
19537         [BZ #15850]
19538         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
19539         and ip6_mtuinfo definitions here.
19540         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
19541         in this define too.  Update comment.
19542
19543 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
19544
19545         * elf/sprof.c (load_shobj): Tweak error message to match others.
19546
19547 2015-02-24  Kevin Easton  <kevin@guarana.org>
19548
19549         [BZ #16145] (partial fix)
19550         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
19551         to reduce lock contention.
19552
19553 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
19554
19555         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
19556         (struct timex): Update time comment.
19557         (ADJ_SETOFFSET): Define.
19558
19559 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
19560
19561         [BZ #18019]
19562         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
19563         2**56 not 2**28 as threshold for log (2x) formula.
19564         * math/auto-libm-test-in: Add more tests of acosh.
19565         * math/auto-libm-test-out: Regenerated.
19566         * sysdeps/i386/fpu/libm-test-ulps: Update.
19567         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19568
19569 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
19570
19571         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
19572         parenthesis around the buf assignment.
19573         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
19574
19575 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
19576
19577         [BZ #16783]
19578         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
19579         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
19580         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
19581         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
19582         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
19583         * math/libm-test.inc (scalb_test_data): Add more tests.
19584
19585 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
19586
19587         [BZ #17916]
19588         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
19589         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
19590
19591 2015-02-24  Eric Rannaud  <e@nanocritical.com>
19592
19593         [BZ #17523]
19594         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
19595         * io/bits/fcntl2.h (open): Use it.
19596         (openat): Likewise.
19597         * io/open.c (__libc_open): Likewise.
19598         * io/open64.c (__libc_open64): Likewise.
19599         * io/open64_2.c (__open64_2): Likewise.
19600         * io/open_2.c (__open_2): Likewise.
19601         * io/openat.c (__openat): Likewise.
19602         * io/openat64.c (__openat64): Likewise.
19603         * io/openat64_2.c (__openat64_2): Likewise.
19604         * io/openat_2.c (__openat_2): Likewise.
19605         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
19606         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
19607         * sysdeps/posix/open64.c (__libc_open64): Likewise.
19608         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
19609         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
19610         (__open_nocancel): Likewise.
19611         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
19612         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
19613         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
19614
19615 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19616
19617         [BZ #14841]
19618         * resolv/gethnamaddr.c (getanswer): Skip logging if
19619         RES_USE_DNSSEC is set.
19620         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
19621
19622 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
19623
19624         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
19625
19626 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
19627
19628         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
19629         201304L, for Unicode 7.
19630
19631 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
19632
19633         [BZ #17836]
19634         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
19635         shared library.  Add gmon-start.os otherwise.
19636         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
19637         $(objpfx)gmon-start.os if builing shared library.
19638         ($(objpfx)g$(static-start-installed-name)): Likewise.
19639
19640 2015-02-23  Andreas Schwab  <schwab@suse.de>
19641
19642         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
19643
19644 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
19645
19646         [BZ #17269]
19647         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
19648         (enlarge_userbuf): Likewise.
19649
19650 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
19651
19652         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
19653         * math/atest-exp.c (TIMEOUT): Adjust to 200.
19654         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
19655         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
19656
19657 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
19658
19659         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
19660         expression inside statement expression.
19661
19662 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
19663
19664         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
19665         <sysdeps/nptl/lowlevellock.h> and remove macros and
19666         functions that are now defined there.
19667         (SYS_futex): Remove.
19668         (lll_compare_and_swap): Remove.
19669         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
19670
19671 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
19672
19673         [BZ #17999]
19674         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
19675         instead of scandirat.
19676         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
19677         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
19678         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
19679         __scandirat.
19680         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
19681         (__scandirat): Declare.  Use libc_hidden_proto.
19682         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
19683         Remove variable.
19684         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
19685
19686 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
19687
19688         [BZ #15319]
19689         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
19690         (MO): New macro.
19691         (__ieee754_atan2): For results with small absolute value, force
19692         underflow exception and remove excess range and precision from
19693         return value.
19694         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
19695         (MO): New macro.
19696         (__ieee754_atan2f): For results with small absolute value, force
19697         underflow exception and remove excess range and precision from
19698         return value.
19699         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
19700         (MO): New macro.
19701         (__atan): For results with small absolute value, force underflow
19702         exception and remove excess range and precision from return value.
19703         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
19704         (MO): New macro.
19705         (__atanf): For results with small absolute value, force underflow
19706         exception and remove excess range and precision from return value.
19707         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
19708         <math.h>.
19709         (__ieee754_atan2): Force underflow exception for results with
19710         small absolute value.
19711         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
19712         <math_private.h>.
19713         (atan): Force underflow exception for results with small absolute
19714         value.
19715         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
19716         (__atanf): Force underflow exception for results with small
19717         absolute value.
19718         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
19719         <math.h>.
19720         (__atanl): Force underflow exception for results with small
19721         absolute value.
19722         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
19723         (__atanl): Force underflow exception for results with small
19724         absolute value.
19725         * sysdeps/x86/fpu/bits/mathinline.h
19726         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
19727         (__ieee754_atan2): Only define inline for long double.
19728         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
19729         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
19730         * math/auto-libm-test-in: Do not mark underflow exceptions as
19731         possibly missing for bug 15319.  Add more tests of atan2.
19732         * math/auto-libm-test-out: Regenerated.
19733         * math/libm-test.inc (casin_test_data): Do not mark underflow
19734         exceptions as possibly missing for bug 15319.
19735         (casinh_test_data): Likewise.
19736         * sysdeps/i386/fpu/libm-test-ulps: Update.
19737
19738 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
19739
19740         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
19741         * sysdeps/mips/bits/endian.h: Fix comments.
19742
19743 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
19744
19745         [BZ #17996]
19746         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
19747         (hdestroy_r): Likewise.
19748         (hsearch_r): Likewise.
19749         (__hcreate_r): Declare and use libc_hidden_proto.
19750         (__hdestroy_r): Likewise.
19751         (__hsearch_r): Likewise.
19752         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
19753         (hcreate): Call __hcreate_r instead of hcreate_r.
19754         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
19755         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
19756         as weak alias of __hcreate_r.
19757         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
19758         __hdestroy_r.
19759         (hsearch_r): Rename to __hsearch_r and define as weak alias of
19760         __hsearch_r.
19761         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
19762         Remove variable.
19763         (test-xfail-XPG4/search.h/linknamespace): Likewise.
19764         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
19765         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
19766         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
19767
19768 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
19769
19770         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
19771         arena_lock into a single arena_get.
19772
19773 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
19774
19775         * dl-reloc.c: Inlucde libc-internal.h.
19776         (_dl_try_allocate_static_tls): Call ALIGN_UP.
19777         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
19778         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
19779         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
19780         (grow_heap): Likewise.
19781         * malloc/malloc.c: Include libc-internal.h.
19782         (do_check_malloc): Call powerof2.
19783         (sysmalloc): Use pagesize. Call ALIGN_UP.
19784         (systrim): Use pagesize.
19785         (mremap_chunk): Use pagesize. Call ALIGN_UP.
19786         (__libc_valloc): Use pagesize.
19787         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
19788
19789 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
19790
19791         [BZ #17991]
19792         * include/sys/resource.h (__getrlimit64): Declare.  Use
19793         libc_hidden_proto.
19794         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
19795         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
19796         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
19797         getrlimit64.
19798         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
19799         __getrlimit64.
19800         [!getrlimit64] (getrlimit64): Define as weak alias of
19801         __getrlimit64.  Use libc_hidden_weak.
19802         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
19803         using __getrlimit64 not __new_getrlimit64.
19804         (__GI_getrlimit64): Likewise.
19805         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
19806         Likewise.
19807         (__GI_getrlimit64): Likewise.
19808         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
19809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
19810         (getrlimit): Add __getrlimit64 alias.
19811         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
19812         Likewise.
19813         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
19814         Remove variable.
19815         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
19816         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
19817
19818 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
19819
19820         * libio/fileops.c: Add missing sys/mman.h
19821         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
19822
19823 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
19824
19825         * manual/math.texi (Errors in Math Functions): Clarify goals
19826         regarding inexact and underflow exceptions.
19827
19828 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
19829
19830         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
19831         * sysdeps/mips/memset.S: Ditto.
19832
19833 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
19834
19835         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
19836
19837 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
19838
19839         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
19840         (__v1longjmp): Remove versioned symbol.
19841         (__v1siglongjmp): Remove alias and versioned symbol.
19842         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
19843         (__v2siglongjmp): Likewise.
19844
19845 2015-02-16  Torvald Riegel  <triegel@redhat.com>
19846
19847         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
19848
19849 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
19850
19851         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
19852
19853 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
19854
19855         [BZ #17987]
19856         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
19857         zero result does not depend on the sign resulting from
19858         subtraction.
19859         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
19860         Likewise.
19861         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
19862         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
19863         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
19864         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
19865         * math/libm-test.inc (remquo_test_data): Add more tests.
19866
19867 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19868
19869         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
19870         Problem reported by J William Piggott.
19871
19872 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
19873
19874         [BZ #17978]
19875         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
19876         products 4 * y and 2 * y where those would overflow.
19877         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
19878         Likewise.
19879         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
19880         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
19881         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
19882         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
19883         * math/libm-test.inc (remquo_test_data): Add more tests.
19884
19885         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
19886
19887         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
19888         [defined _COMPILING_NEWLIB].
19889         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
19890         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
19891
19892         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
19893         [!defined __mips_isa_rev || __mips_isa_rev < 6].
19894
19895 2015-02-16  Torvald Riegel  <triegel@redhat.com>
19896
19897         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
19898         acquired.
19899
19900 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
19901
19902         [BZ #17792]
19903         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
19904         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
19905         HOST_STACK_END_ADDR): Likewise.
19906
19907 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
19908
19909         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
19910         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
19911         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
19912
19913 2015-02-13  Roland McGrath  <roland@hack.frob.com>
19914
19915         * sysdeps/generic/c++-types.data: New file.
19916         * sysdeps/generic/ld.abilist: New file.
19917         * sysdeps/generic/libBrokenLocale.abilist: New file.
19918         * sysdeps/generic/libanl.abilist: New file.
19919         * sysdeps/generic/libc.abilist: New file.
19920         * sysdeps/generic/libcrypt.abilist: New file.
19921         * sysdeps/generic/libdl.abilist: New file.
19922         * sysdeps/generic/libm.abilist: New file.
19923         * sysdeps/generic/libpthread.abilist: New file.
19924         * sysdeps/generic/libresolv.abilist: New file.
19925         * sysdeps/generic/librt.abilist: New file.
19926
19927 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
19928
19929         [BZ #17569]
19930         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
19931         Compute absolute value of x as modified by fmod, not original
19932         value of x.
19933         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
19934         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
19935         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
19936         RUN_TEST_ffI_f1_mod8.
19937         (remquo_test_data): Add more tests.
19938
19939 2015-02-13  Roland McGrath  <roland@hack.frob.com>
19940
19941         * sysdeps/init_array/pt-crti.S: New file.
19942
19943 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
19944
19945         [BZ #17967]
19946         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
19947         __builtin_fmaf instead of relying on contraction of a * b + c.
19948
19949 2015-02-12  J William Piggott  <elseifthen@gmx.com>
19950
19951         [BZ #17969]
19952         * manual/time.texi: correct the zoneinfo path in the TZ Variable
19953         node.
19954
19955 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
19956
19957         [BZ #17964]
19958         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
19959         __builtin_fma instead of relying on contraction of a * b + c.
19960
19961 2015-02-12  Roland McGrath  <roland@hack.frob.com>
19962
19963         * Makeconfig (ASFLAGS): Add -Werror=undef.
19964         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
19965         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
19966         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
19967
19968         * Makeconfig (after-link): New variable.
19969         (+link-pie, +link-pie-tests): Use it.
19970         (+link-static, +link-static-tests): Likewise.
19971         (+link, +link-tests): Likewise.
19972         * Makerules (build-module, build-module-asneeded): Likewise.
19973         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
19974         Likewise.
19975         * elf/Makefile ($(objpfx)ld.so): Likewise.
19976
19977 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
19978
19979         [BZ #17965]
19980         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
19981         both struct timeval and struct timespec.
19982
19983 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
19984
19985         [BZ #16560]
19986         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19987         and redefine.
19988         (__ieee754_exp2l): Do not multiply small fractional parts by
19989         M_LN2l.
19990         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
19991         small argument.
19992         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
19993         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
19994         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
19995         * math/auto-libm-test-in: Add more tests of exp2.
19996         * math/auto-libm-test-out: Regenerated.
19997
19998 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19999
20000         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
20001         unaligned path.
20002
20003 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20004
20005         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
20006         little endian.
20007
20008 2015-02-12  Andreas Schwab  <schwab@suse.de>
20009
20010         [BZ #15790]
20011         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
20012         Filter out elision flags from value returned in kind.
20013         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
20014         * nptl/tst-pthread-mutexattr.c: New file.
20015
20016 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20017
20018         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
20019         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
20020         into gnu-gnu, and update comment to refer to abi-tags.
20021
20022 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
20023
20024         [BZ #15467]
20025         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
20026         (__sincos): Set errno to EDOM for infinite argument.
20027         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
20028         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
20029         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
20030         (__sincosl): Set errno to EDOM for infinite argument.
20031         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
20032         (__sincosl): Set errno to EDOM for infinite argument.
20033         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
20034         (__sincosl): Set errno to EDOM for infinite argument.
20035         * math/libm-test.inc (sincos_test_data): Test errno setting.
20036
20037 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
20038
20039         * string/strxfrm_l.c: Remove #define STRCMP.
20040         * string/strcoll_l.c: Remove #define STRLEN.
20041         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
20042         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
20043
20044 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
20045
20046         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
20047         * sysdeps/mips/mips32/sfp-machine.h: ... here.
20048         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
20049         * sysdeps/mips/mips64/Makefile: ... here.
20050         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
20051         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
20052         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
20053         * sysdeps/mips/mips64/sfp-machine.h: ... here.
20054         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
20055         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
20056         * sysdeps/mips/mips64/n64/Implies: Likewise.
20057
20058 2015-02-10  Roland McGrath  <roland@hack.frob.com>
20059
20060         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
20061         <sys/time.h>, <string.h>, and <errno.h>.
20062         (dest_offset, dest_address, value, zero): Remove unused variables.
20063         (ldouble): Remove typedef.
20064         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
20065         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
20066         1).  Fix code style.
20067         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
20068         (check): Function removed.
20069         (CHECK): New macro.
20070         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
20071         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
20072         Don't call set_sigaction_FP and remove_sigaction_FP here.
20073         (ldouble_test): Just use 'long double' as macro argument, no need for
20074         the 'ldouble' typedef.
20075         (do_test): Set up SIGFPE handler at start, using plain signal rather
20076         than sigaction.  Fix code style.
20077
20078 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
20079
20080         [BZ #17949]
20081         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
20082         jump label.
20083
20084 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20085
20086         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
20087         * sysdeps/powerpc/powerpc32/configure: Regenerated.
20088
20089         * sysdeps/powerpc/configure.ac: Remove file.
20090         * sysdeps/powerpc/configure: Likewise.
20091
20092         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20093         [sysdep_routines]: Remove wordcopy-power6 object.
20094         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
20095         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
20096         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
20097         (__memmove_ppc32): Likewise.
20098         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
20099         file.
20100         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
20101         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
20102         Remove preprocessor.
20103
20104         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20105         [sysdep_routines]: Remove wide chars objects.
20106         [wcsmbs]: New rule for wide char objects.
20107
20108         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20109         Remove wordcopy-power6 obejct.
20110         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
20111         Use local call for wordcopy and memcpy symbols.
20112         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
20113         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
20114         implementation for loader.
20115         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
20116
20117         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20118         Remove wordcopy-power7 object.
20119         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
20120         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
20121         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
20122         (_wordcopy_fwd_dest_aligned): Likewise.
20123         (_wordcopy_bwd_aligned): Likewise.
20124         (_wordcopy_bwd_dest_aligned): Likewise.
20125
20126         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
20127         Rewrite to call __memmove_ppc instead of include default
20128         implementation.
20129
20130         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20131         Remove wide chars objects.
20132         [wcsmbs]: New rule for wide char objects.
20133
20134 2015-02-09  Andreas Schwab  <schwab@suse.de>
20135
20136         [BZ #17912]
20137         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
20138         in terms of __O_DIRECTORY.
20139
20140 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20141
20142         * time/getdate.c: Include <stdbool.h>.
20143         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
20144         call PTR_MANGLE.
20145         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
20146         PTR_DEMANGLE.
20147
20148 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20149
20150         Add ersatz _Static_assert on older C hosts
20151         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
20152         pre-C11 C platform that is not known to support _Static_assert.
20153
20154 2015-02-07  Richard Braun  <rbraun@sceen.net>
20155
20156         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
20157         sigstate.
20158         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
20159
20160 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20161
20162         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
20163         priority against unexistent AIO_PRIO_DELTA_MAX.
20164         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
20165         instead of int.
20166         * misc/fchflags.c (fchflags): Likewise.
20167         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
20168         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
20169         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
20170         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
20171         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
20172         Declare macros.
20173         [__USE_MISC] (chflags, fchflags): Declare functions.
20174         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
20175         EINVAL when nfds is greater than FD_SETSIZE.
20176         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
20177         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
20178         45.
20179         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
20180         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
20181         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
20182         MACH_RCV_TIMED_OUT.
20183         * hurd/hurd/signal.h (_hurd_self_sigstate,
20184         _hurd_critical_section_lock, _hurd_critical_section_unlock):
20185         Explicit casts from void *.
20186         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
20187         * abi-tags: Rename gnu-gnu os into gnu.
20188
20189         [BZ #4719]
20190         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
20191         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
20192         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
20193         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
20194         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
20195         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
20196
20197         [BZ #17944]
20198         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
20199         duplicates ADDR->sun_path with sockaddr LEN limitation.
20200         * sysdeps/mach/hurd/connect.c: Include <string.h>
20201         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
20202         * sysdeps/mach/hurd/sendmsg.c: Likewise.
20203         * sysdeps/mach/hurd/sendto.c: Likewise.
20204         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
20205         implementing it by hand.
20206
20207 2015-02-06  Roland McGrath  <roland@hack.frob.com>
20208
20209         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
20210         Use sfi_breg on ldr.
20211         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
20212         Likewise.
20213
20214         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
20215         it's defined.
20216         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
20217         Test SIGSETXID only if it's defined.
20218
20219         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
20220
20221         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
20222         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
20223
20224         * nptl/tst-align2.c: Moved ...
20225         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
20226         * nptl/Makefile (tests): Remove tst-align2.
20227         * sysdeps/unix/sysv/linux/Makefile
20228         [$(subdir) = nptl] (tests): Add tst-align-clone.
20229         * nptl/tst-getpid1.c: Moved ...
20230         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
20231         * nptl/tst-getpid2.c: Moved ...
20232         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
20233         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
20234         * sysdeps/unix/sysv/linux/Makefile
20235         [$(subdir) = nptl] (tests): ... here.
20236         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
20237         * sysdeps/unix/sysv/linux/Makefile
20238         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
20239
20240         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
20241         Drop trailing \n from perror argument.  Use return rather than exit.
20242
20243         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
20244         on [SA_SIGINFO].
20245         * nptl/tst-cancel21.c (do_test): Likewise.
20246         * debug/tst-backtrace6.c: Include <signal.h> first thing.
20247         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
20248         [!SA_SIGINFO]: Make it a stub test.
20249
20250         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
20251         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
20252
20253         * posix/tst-getlogin.c: Move to ...
20254         * login/tst-getlogin.c: ... here.
20255         * posix/Makefile (tests): Move tst-getlogin to ...
20256         * login/Makefile (tests): ... here.
20257
20258         * libio/tst-atime.c (do_test): Move local variables SV and E
20259         inside [ST_NOATIME] conditional.
20260
20261         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
20262
20263         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
20264
20265         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
20266         (wait_code): New function replaces macro.
20267         Call nanosleep rather than syscall.
20268
20269         * nptl/pt-system.c: Rewritten.  Put everything under
20270         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20271         Use IFUNC to redirect when possible.
20272
20273         * nptl/pt-longjmp.c: Rewritten.  Put everything under
20274         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20275         Use IFUNC to redirect when possible.
20276
20277         * nptl/pt-fork.c: Rewritten.  Put everything under
20278         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20279         Use IFUNC to redirect when possible.
20280         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
20281
20282         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
20283         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
20284         unconditionally nowadays.  This included the only reference to
20285         __vdso_clock_gettime that appears outside libc proper.
20286         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
20287         Remove version set (containing only __vdso_clock_gettime).
20288         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
20289         Add attribute_hidden.
20290         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
20291         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
20292         libc_hidden_data_def.
20293         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
20294         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
20295
20296         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
20297         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
20298         setrpcent, and getrpcport to ...
20299         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
20300         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
20301         getrpcbynumber_r, and getrpcent_r to ...
20302         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
20303         * inet/getrpcbyname.c: Moved ...
20304         * sunrpc/getrpcbyname.c: ... here.
20305         * inet/getrpcbyname_r.c: Moved ...
20306         * sunrpc/getrpcbyname_r.c: ... here.
20307         * inet/getrpcbynumber.c: Moved ...
20308         * sunrpc/getrpcbynumber.c: ... here.
20309         * inet/getrpcbynumber_r.c: Moved ...
20310         * sunrpc/getrpcbynumber_r.c: ... here.
20311         * inet/getrpcent.c: Moved ...
20312         * sunrpc/getrpcent.c: ... here.
20313         * inet/getrpcent_r.c: Moved ...
20314         * sunrpc/getrpcent_r.c: ... here.
20315         * inet/Makefile (routines): Move those to ...
20316         * sunrpc/Makefile (routines): ... here.
20317         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
20318         the $(subdirs) list.
20319         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
20320         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
20321         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
20322         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
20323
20324         * elf/Makefile (routines): Include $(all-dl-routines), not just
20325         $(dl-routines).
20326         (rtld-routines): Likewise.  Use = rather than :=.
20327         * sysdeps/aarch64/Makefile [$(subdir) = elf]
20328         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
20329         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
20330         * sysdeps/arm/Makefile: Likewise.
20331         * sysdeps/i386/Makefile: Likewise.
20332         * sysdeps/x86_64/Makefile: Likewise.
20333         * sysdeps/hppa/Makefile [$(subdir) = elf]
20334         (sysdep_routines, sysdep-rtld-routines): Don't add
20335         $(sysdep-dl-routines) to these.
20336         * sysdeps/ia64/Makefile: Likewise.
20337         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
20338         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
20339         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
20340         Don't add dl-static to these; sysdep-dl-routines alone is enough.
20341         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
20342         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
20343         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
20344         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
20345         * sysdeps/powerpc/Makefile [$(subdir) = elf]
20346         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
20347         these; sysdep-dl-routines alone is enough.
20348
20349 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
20350
20351         [BZ #17932]
20352         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
20353         where multiplication results in zero and third argument is finite
20354         and nonzero.
20355         * math/auto-libm-test-in: Add more tests of fma.
20356         * math/auto-libm-test-out: Regenerated.
20357
20358         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
20359         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
20360         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
20361         (_FP_CMP_EQ): Likewise.
20362         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
20363
20364         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
20365         extra argument CHECK_NAN.  Redefine as wrapper around
20366         _FP_EXTEND_CNAN.
20367
20368 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
20369
20370         * version.h (RELEASE): Set to "stable".
20371         (VERSION): Set to "2.21"
20372         * include/features.h (__GLIBC_MINOR__): Set to 21.
20373
20374         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
20375
20376 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20377             Paul Eggert  <eggert@cs.ucla.edu>
20378
20379         [BZ #16618]
20380         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
20381         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
20382         size in bytes. Store needed elements in wpmax. Use needed size
20383         in bytes for extend_alloca.
20384
20385 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
20386
20387         * manual/install.texi: Latest tested versions are GCC 4.9.2,
20388         binutls 2.25, and texinfo 5.2.
20389         * INSTALL: Regenerate.
20390         * sysdeps/nios2/configure: Regenerate.
20391         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
20392         * manual/contrib.texi: Update.
20393         * po/be.po: Update.
20394         * po/bg.po: Update.
20395         * po/ca.po: Update.
20396         * po/cs.po: Update.
20397         * po/da.po: Update.
20398         * po/de.po: Update.
20399         * po/el.po: Update.
20400         * po/eo.po: Update.
20401         * po/es.po: Update.
20402         * po/fi.po: Update.
20403         * po/fr.po: Update.
20404         * po/gl.po: Update.
20405         * po/hr.po: Update.
20406         * po/hu.po: Update.
20407         * po/ia.po: Update.
20408         * po/id.po: Update.
20409         * po/it.po: Update.
20410         * po/ja.po: Update.
20411         * po/ko.po: Update.
20412         * po/lt.po: Update.
20413         * po/nb.po: Update.
20414         * po/nl.po: Update.
20415         * po/pl.po: Update.
20416         * po/pt_BR.po: Update.
20417         * po/ru.po: Update.
20418         * po/rw.po: Update.
20419         * po/sk.po: Update.
20420         * po/sl.po: Update.
20421         * po/sv.po: Update.
20422         * po/tr.po: Update.
20423         * po/uk.po: Update.
20424         * po/vi.po: Update.
20425         * po/zh_CN.po: Update.
20426         * po/zh_TW.po: Update.
20427
20428         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
20429         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
20430         * sysdeps/hppa/dl-irel.h: Remove #warning.
20431         * sysdeps/hppa/entry.h: Provide prototype for
20432         __canonicalize_funcptr_for_compare and cast argument.
20433         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
20434         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
20435         * sysdeps/hppa/sotruss-lib.c: New file.
20436         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
20437         (atomic_compare_and_exchange_val_acq): Use __typeof__.
20438         (atomic_compare_and_exchange_bool_acq): Likewise.
20439         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
20440         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
20441
20442         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
20443         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
20444         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
20445
20446 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
20447
20448         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
20449         called function in non-PIC case.
20450
20451 2015-01-31  David S. Miller  <davem@davemloft.net>
20452
20453         * sysdeps/sparc/sparc32/bits/atomic.h
20454         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
20455         unlock not after it.
20456         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
20457         volatile register usage warnings from the compiler.
20458
20459         * sysdeps/sparc/nptl/sem_init.c: Delete.
20460         * sysdeps/sparc/nptl/sem_post.c: Delete.
20461         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
20462         * sysdeps/sparc/nptl/sem_wait.c: Delete.
20463         * sysdeps/sparc/sparc32/sem_init.c: New file.
20464         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
20465         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
20466         padding explicitly initialized.
20467         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
20468         padding for in-semaphore spinlock.
20469         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
20470         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
20471         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
20472         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
20473         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
20474         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
20475         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
20476         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
20477         version.
20478         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
20479         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
20480
20481 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
20482
20483         [BZ #17801]
20484         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20485         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
20486         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
20487         New.
20488         (index_AVX_Fast_Unaligned_Load): Likewise.
20489         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
20490         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
20491         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
20492         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
20493         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
20494         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
20495         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
20496         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
20497         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
20498
20499 2015-01-29  Andreas Schwab  <schwab@suse.de>
20500
20501         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
20502
20503 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
20504
20505         [BZ #17892]
20506         * nscd/nscd_stat.c (send_stats): Initialize DATA.
20507
20508 2015-01-28  Martin Sebor  <msebor@redhat.com>
20509
20510         * math/README.libm-test: Clarify. Add "How to read the test output."
20511
20512 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
20513
20514         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
20515         Define to 0.
20516
20517 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
20518
20519         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
20520         (__HAVE_64B_ATOMICS): Define to 0.
20521
20522 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20523
20524         [BZ #17885]
20525         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
20526         value to set as new flag.
20527
20528         [BZ #16576]
20529         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
20530         and use _ARCH_PPCSQ instead.
20531         (__ieee754_sqrt): Likewise.
20532         (__ieee754_sqrtf): Likewise.
20533         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
20534         _ARCH_PPCSQ is defined.
20535         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
20536         fsqrt instruction.
20537         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
20538         _ARCH_PPCSQ is defined.
20539         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
20540         fsqrts instruction.
20541         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
20542
20543 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20544
20545         * iconv/loop.c: Suppress array out of bound warning caused by GCC
20546         bug (GCC BZ #64739).
20547
20548 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
20549
20550         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
20551         Mark _retval as used.
20552         (lll_futex_wake_unlock): Likewise.
20553         (lll_futex_timed_wait_requeue_pi): Likewise.
20554
20555         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
20556         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
20557         register variables.
20558
20559         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
20560         libm_hidden_def.
20561
20562         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
20563         (__bswap_64): Mark as __always_inline.
20564
20565 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
20566
20567         [BZ #15378]
20568         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
20569         when none of the search directories exist.
20570
20571 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20572
20573         [BZ #17869]
20574         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
20575         power8 in .machine directive.
20576
20577         [BZ #17868]
20578         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
20579         set dependency from opd value.
20580
20581 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
20582
20583         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20584         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
20585         architecture.
20586
20587 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
20588
20589         [BZ #17870]
20590         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
20591         with uint64_t.
20592         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
20593         (uint64_t) 1.
20594         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
20595         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
20596         Replace 1UL with (uint64_t) 1.
20597         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
20598         int with uint64_t.
20599
20600 2015-01-23  Roland McGrath  <roland@hack.frob.com>
20601
20602         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
20603         (if_freenameindex): Likewise.
20604
20605         * resource/getrlimit64.c: Add missing libc_hidden_def.
20606
20607 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
20608
20609         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
20610         __label__.
20611         (_FP_FMA): Likewise.
20612         (_FP_TO_INT_ROUND): Likewise.
20613         (_FP_FROM_INT): Likewise.
20614
20615 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20616
20617         [BZ #16418]
20618         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
20619         Make code racy and cancel safe.
20620
20621 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
20622
20623         * sysdeps/arm/unwind-resume.h: Fix copyright year.
20624         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
20625         attribution.
20626
20627         * pwd/tst-getpw.c: Rewrite.
20628
20629         [BZ #17702]
20630         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
20631         (modules-names): Add moddummy1 and moddummy2.
20632         ($(objpfx)tst-rec-dlopen): Define.
20633         * dlfcn/moddummy1.c: New file.
20634         * dlfcn/moddummy2.c: New file.
20635         * dlfcn/tst-rec-dlopen.c: New file.
20636         * elf/dl-cache.c (_dl_load_cache_lookup):
20637         Return char*. Copy result with alloca/strcpy/strdup.
20638         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
20639         returns char*. Free cached. If not saving realname
20640         free cached.
20641         * elf/dl-open.c (dl_open_worker): Do not assert that
20642         _r_debug->r_state is RT_CONSISTENT.
20643         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
20644         returns char*.
20645
20646 2015-01-21  Torvald Riegel  <triegel@redhat.com>
20647             Carlos O'Donell  <carlos@redhat.com>
20648
20649         [BZ #12674]
20650         * nptl/sem_waitcommon.c: New file.
20651         * nptl/sem_wait.c: Include sem_waitcommon.c.
20652         (__sem_wait_cleanup, do_futex_wait): Remove.
20653         (__new_sem_wait): Adapt.
20654         (__new_sem_trywait): New function.
20655         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
20656         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
20657         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
20658         (sem_timedwait): Adapt.
20659         * nptl/sem_post.c (__new_sem_post): Adapt.
20660         (futex_wake): New function.
20661         (__old_sem_post): Add release MO fence.
20662         * nptl/sem_open.c (sem_open): Adapt.
20663         * nptl/sem_init.c (__new_sem_init): Adapt.
20664         (futex_private_if_supported): New function.
20665         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
20666         (__old_sem_getvalue): Add using previous code.
20667         * sysdeps/nptl/internaltypes.h: Adapt.
20668         * nptl/tst-sem13.c (do_test): Adapt.
20669         * nptl/tst-sem11.c (main): Adapt.
20670         * nptl/sem_trywait.c: Remove.
20671         * nptl/DESIGN-sem.txt: Remove.
20672         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
20673         (gen-as-const-headers): Remove structsem.sym.
20674         * nptl/structsem.sym: Remove.
20675         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
20676         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
20677         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
20678         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
20679         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
20680         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
20681         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
20682         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
20683         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
20684         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
20685         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
20686         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
20687         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
20688         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
20689         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
20690         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
20691         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
20692         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
20693         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
20694         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
20695         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
20696         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
20697
20698 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
20699
20700         * INSTALL: Regenerated.
20701
20702         * po/libc.pot: Regenerated.
20703
20704 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
20705             Sandra Loosemore  <sandra@codesourcery.com>
20706             Andrew Jenner  <andrew@codesourcery.com>
20707             Joseph Myers  <joseph@codesourcery.com>
20708             Nathan Sidwell  <nathan@codesourcery.com>
20709
20710         * NEWS: Mention new Nios II port.
20711         * sysdeps/nios2/Implies: New file.
20712         * sysdeps/nios2/Makefile: New file.
20713         * sysdeps/nios2/Subdirs: New file.
20714         * sysdeps/nios2/Versions: New file.
20715         * sysdeps/nios2/__longjmp.S: New file.
20716         * sysdeps/nios2/abort-instr.h: New file.
20717         * sysdeps/nios2/backtrace.c: New file.
20718         * sysdeps/nios2/bits/endian.h: New file.
20719         * sysdeps/nios2/bits/fenv.h: New file.
20720         * sysdeps/nios2/bits/link.h: New file.
20721         * sysdeps/nios2/bits/setjmp.h: New file.
20722         * sysdeps/nios2/bsd-_setjmp.S: New file.
20723         * sysdeps/nios2/bsd-setjmp.S: New file.
20724         * sysdeps/nios2/configure: New generated file.
20725         * sysdeps/nios2/configure.ac: New file.
20726         * sysdeps/nios2/crti.S: New file.
20727         * sysdeps/nios2/crtn.S: New file.
20728         * sysdeps/nios2/dl-init.c: New file.
20729         * sysdeps/nios2/dl-machine.h: New file.
20730         * sysdeps/nios2/dl-sysdep.h: New file.
20731         * sysdeps/nios2/dl-tls.h: New file.
20732         * sysdeps/nios2/dl-trampoline.S: New file.
20733         * sysdeps/nios2/gccframe.h: New file.
20734         * sysdeps/nios2/gmp-mparam.h: New file.
20735         * sysdeps/nios2/jmpbuf-offsets.h: New file.
20736         * sysdeps/nios2/jmpbuf-unwind.h: New file.
20737         * sysdeps/nios2/ldsodefs.h: New file.
20738         * sysdeps/nios2/libc-tls.c: New file.
20739         * sysdeps/nios2/libm-test-ulps: New file.
20740         * sysdeps/nios2/machine-gmon.h: New file.
20741         * sysdeps/nios2/math-tests.h: New file.
20742         * sysdeps/nios2/math_private.h: New file.
20743         * sysdeps/nios2/memusage.h: New file.
20744         * sysdeps/nios2/nptl/Makefile: New file.
20745         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
20746         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
20747         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
20748         * sysdeps/nios2/nptl/pthreaddef.h: New file.
20749         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
20750         * sysdeps/nios2/nptl/tls.h: New file.
20751         * sysdeps/nios2/preconfigure: New file.
20752         * sysdeps/nios2/s_fma.c: New file.
20753         * sysdeps/nios2/s_fmaf.c: New file.
20754         * sysdeps/nios2/setjmp.S: New file.
20755         * sysdeps/nios2/sfp-machine.h: New file.
20756         * sysdeps/nios2/sotruss-lib.c: New file.
20757         * sysdeps/nios2/stackguard-macros.h: New file.
20758         * sysdeps/nios2/stackinfo.h: New file.
20759         * sysdeps/nios2/start.S: New file.
20760         * sysdeps/nios2/sysdep.h: New file.
20761         * sysdeps/nios2/tls-macros.h: New file.
20762         * sysdeps/nios2/tst-audit.h: New file.
20763         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
20764         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
20765         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
20766         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
20767         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
20768         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
20769         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
20770         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
20771         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
20772         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
20773         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
20774         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
20775         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
20776         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
20777         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
20778         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
20779         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
20780         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
20781         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
20782         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
20783         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
20784         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
20785         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
20786         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
20787         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
20788         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
20789         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
20790         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
20791         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
20792         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
20793         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
20794         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
20795         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
20796         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
20797         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
20798         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
20799         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
20800         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
20801         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
20802         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
20803         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
20804         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
20805         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
20806         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
20807
20808 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
20809
20810         [BZ #17844]
20811         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
20812         (getutent): Use weak_alias in non SHARED case
20813         and default_symbol_version in SHARED case.
20814         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
20815         (getutent_r, pututline): Likewise.
20816         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
20817         (getutid): Likewise.
20818         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
20819         (getutid_r): Likewise.
20820         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
20821         (getutline): Likewise.
20822         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
20823         (getutline_r): Likewise.
20824         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
20825         (updwtmp): Likewise.
20826
20827 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
20828
20829         [BZ #17848]
20830         * sysdeps/s390/s390-32/memcmp.S
20831         (memcmp_g5): Rename to __memcmp_g5.
20832         * sysdeps/s390/s390-32/memcpy.S
20833         (memcpy_g5): Rename to __memcpy_g5.
20834         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20835         (memcpy_mvcle) Rename to __memcpy_mvcle.
20836         * sysdeps/s390/s390-32/memset.S
20837         (memset_g5): Rename to __memset_g5.
20838         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
20839         (IFUNC_RESOLVE): Prefix ifunc-resolve function
20840         and use prefixed functions.
20841         * sysdeps/s390/s390-32/multiarch/memcmp.S
20842         (memcmp_z196): Rename to __memcmp_z196.
20843         (memcmp_z10): Rename to __memcmp_z10.
20844         (memcmp): Set alias to __memcmp_g5.
20845         (bcmp): Set alias to __memcmp_g5.
20846         * sysdeps/s390/s390-32/multiarch/memcpy.S
20847         (memcpy_z196): Rename to __memcpy_z196.
20848         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20849         (memcpy_z10): Rename to __memcpy_z10.
20850         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20851         (memcpy): Set alias to __memcpy_g5.
20852         * sysdeps/s390/s390-32/multiarch/memset.S
20853         (memset_z196): Rename to __memset_z196.
20854         Jump to __memset_mvcle instead of memset_mvcle.
20855         (memset_z10): Rename to __memset_z10.
20856         Jump to __memset_mvcle instead of memset_mvcle.
20857         (memset_mvcle) Rename to __memset_mvcle.
20858         (memset): Set alias to __memset_g5.
20859         * sysdeps/s390/s390-64/memcmp.S
20860         (memcmp_z900): Rename to __memcmp_z900.
20861         * sysdeps/s390/s390-64/memcpy.S
20862         (memcpy_z900): Rename to __memcpy_z900.
20863         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20864         (memcpy_mvcle) Rename to __memcpy_mvcle.
20865         * sysdeps/s390/s390-64/memset.S
20866         (memset_z900): Rename to __memset_z900.
20867         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
20868         (IFUNC_RESOLVE): Prefix ifunc-resolve function
20869         and use prefixed functions.
20870         * sysdeps/s390/s390-64/multiarch/memcmp.S
20871         (memcmp_z196): Rename to __memcmp_z196.
20872         (memcmp_z10): Rename to __memcmp_z10.
20873         (memcmp): Set alias to __memcmp_z900.
20874         (bcmp): Set alias to __memcmp_z900.
20875         * sysdeps/s390/s390-64/multiarch/memcpy.S
20876         (memcpy_z196): Rename to __memcpy_z196.
20877         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20878         (memcpy_z10): Rename to __memcpy_z10.
20879         Jump to __memcpy_mvcle instead of memcpy_mvcle.
20880         (memcpy): Set alias to __memcpy_z900.
20881         * sysdeps/s390/s390-64/multiarch/memset.S
20882         (memset_z196): Rename to __memset_z196.
20883         Jump to __memset_mvcle instead of memset_mvcle.
20884         (memset_z10): Rename to __memset_z10.
20885         Jump to __memset_mvcle instead of memset_mvcle.
20886         (memset_mvcle) Rename to __memset_mvcle.
20887         (memset): Set alias to __memset_z900.
20888
20889 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
20890
20891         [BZ #17748]
20892         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
20893         __fesetenv instead of fesetenv.
20894
20895 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20896
20897         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
20898         macro.
20899
20900 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20901
20902         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
20903         regression on LE.
20904
20905         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
20906         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
20907         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
20908         strncmp-power8 object.
20909         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
20910         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
20911         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
20912         * NEWS: Update.
20913
20914 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20915             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20916
20917         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
20918         trailing byte check.
20919
20920 2015-01-13  David S. Miller  <davem@davemloft.net>
20921
20922         * include/signal.h (__sigreturn): Guard with __USE_MISC.
20923
20924 2015-01-13  Roland McGrath  <roland@hack.frob.com>
20925
20926         * login/logout.c (logout): Use memset rather than bzero.
20927         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
20928         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
20929         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
20930         (_gethtbyaddr): Likewise.
20931         * locale/programs/simple-hash.c (bcopy): Macro removed.
20932
20933 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20934
20935         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20936         Add strcmp-power8 object.
20937         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
20938         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
20939         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
20940         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
20941         __strcmp_power8 implementation.
20942         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
20943         * NEWS: Update.
20944
20945         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20946         Add strncpy-power8 and stpncpy-power8 objects.
20947         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
20948         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
20949         implementations.
20950         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
20951         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
20952         __stpncpy_power8 implementation.
20953         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
20954         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
20955         __strncpy_power8 implementation.
20956         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
20957         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
20958         * NEWS: Update.
20959
20960         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
20961         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
20962         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
20963
20964         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
20965         strncat-power8 object.
20966         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
20967         __strcat_power8 implementation.
20968         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
20969         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
20970         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
20971         optimized strcat for power8.
20972
20973         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
20974         strcpy-power8 and stpcpy-power8 objects.
20975         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
20976         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
20977         implementations.
20978         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
20979         multiarch stpcpy implementation for POWER8.
20980         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
20981         multiarch strcpy implementation for POWER8.
20982         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
20983         __strcpy_power8 function.
20984         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
20985         stpcpy for POWER8.
20986         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
20987         strcpy for POWER8.
20988         * NEWS: Update.
20989
20990 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
20991
20992         [BZ #16009]
20993         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
20994         weights and rules. Use do_xfrm_cached if data fits in cache,
20995         do_xfrm otherwise.  Moved former main loop to...
20996         * (do_xfrm_cached): New function.
20997         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
20998         find_idx, find_position and stack_push.
20999         * (find_idx): New function.
21000         * (find_position): Likewise.
21001         * localedata/sort-test.sh: Added test run for do_xfrm.
21002         * localedata/xfrm-test.c (main): Added command line option
21003         -nocache to run the test with strings that are too large for
21004         the STRXFRM cache.
21005
21006 2015-01-13  Torvald Riegel  <triegel@redhat.com>
21007
21008         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
21009         variable to lll_futex_wake call, not the value itself.
21010
21011 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
21012
21013         [BZ #17803]
21014         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
21015         twom64.  Adjust value to 0x1p-64L.
21016         (__scalblnl): Only return standard underflowing result for K <=
21017         -64 not K <= -63; adjust exponent for underflowing result by 64
21018         not 63.
21019         * math/libm-test.inc (scalbn_test_data): Add more tests.
21020         (scalbln_test_data): Likewise.
21021
21022         [BZ #17834]
21023         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
21024         0x1p63L.
21025         (__scalblnl): Get new exponent of adjusted subnormal value from ES
21026         not HX.
21027         * math/libm-test.inc (scalbn_test_data): Add more tests.
21028         (scalbln_test_data): Likewise.
21029
21030 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21031             Stefani Seibold  <stefani@seibold.net>
21032
21033         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
21034         (sysdep_routines): Add dl-vdso here, ...
21035         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
21036         (sysdep_routines): ... not here.
21037         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
21038         fallback when vDSO is not presented.
21039         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
21040         Define with libc_hidden_proto/libc_hidden_data_def definitions.
21041         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
21042         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
21043         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
21044         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
21045         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
21046         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
21047         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
21048         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
21049         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
21050         fallback configurable symbol when vDSO is not available.
21051         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
21052         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
21053         be able to redefine fallback symbol when vDSO is not available.
21054         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
21055         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
21056
21057 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21058
21059         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
21060         (TLS_INIT_TP): Add tm_capable initialization.
21061         (TLS_DEFINE_INIT_TP): Likewise.
21062         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
21063         TCB.
21064         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
21065         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
21066         calculation.
21067         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
21068         transactoion is lock elision is built and TCB tm_capable is set.
21069         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
21070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
21071         (INTERNAL_SYSCALL_NCS): Likewise.
21072         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
21073         (INTERNAL_SYSCALL_NCS): Likewise.
21074         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
21075
21076         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
21077         for powerpc.
21078         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21079         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
21080         and remove it for 32 bits case.
21081         [pthread_rwlock_t] (__rwelision): New field for lock elision.
21082         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
21083         initialization.
21084         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
21085         Disable lock elision with rdlocks if elision is not available.
21086
21087         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
21088         (sysdep_routines): Add lock elision objects.
21089         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21090         [pthread_mutex_t] (__spins): Rework to add lock elision field.
21091         [pthread_mutex_t] (__elision): Add field.
21092         [__PTHREAD_SPINS]: Adjust to init lock elision field.
21093         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
21094         elision definitions for powerpc.
21095         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
21096         implementation of lock elision for powerpc.
21097         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
21098         implementation of timed lock elision for powerpc.
21099         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
21100         implementation of trylock with lock elision for powerpc.
21101         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
21102         implementaion of unlock for lock elision for powerpc.
21103         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
21104         automatic enable lock elision for mutexes.
21105         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
21106         transaction execution definitions for powerpc.
21107         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
21108         definitions.
21109         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
21110         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
21111         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
21112         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
21113         * NEWS: Update.
21114
21115 2015-01-09  Roland McGrath  <roland@hack.frob.com>
21116
21117         * sysdeps/posix/shm-directory.c: Use <> rather than ""
21118         for #include of <shm-directory.h>.
21119
21120 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
21121
21122         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
21123         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
21124
21125 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
21126
21127         [BZ #17791]
21128         * NEWS: Mention bug fix.
21129         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
21130         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
21131         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
21132
21133 2015-01-09  Torvald Riegel <triegel@redhat.com>
21134
21135         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
21136
21137 2015-01-09  Torvald Riegel <triegel@redhat.com>
21138
21139         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
21140
21141 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21142
21143         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
21144         pointer and cast to uintptr_t.
21145
21146 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21147
21148         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
21149         removed.
21150         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
21151
21152 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21153
21154         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
21155         of 0.
21156
21157 2015-01-08  Roland McGrath  <roland@hack.frob.com>
21158
21159         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
21160         <nptl/pthreadP.h> instead.
21161         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
21162
21163         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
21164         already defined.
21165         [__SIGRTMIN] (init): Function removed.
21166         [__SIGRTMIN] (initialized): Variable removed.
21167         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
21168         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
21169         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
21170         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
21171         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
21172         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
21173         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
21174         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
21175         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
21176         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
21177         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
21178         * sysdeps/nptl/allocrtsig.c: New file.
21179         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
21180         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
21181         * sysdeps/generic/testrtsig.h: File removed.
21182
21183         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
21184         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
21185
21186         * nptl/nptl-init.c (pthread_functions): Conditionalize
21187         .ptr__nptl_setxid initialization on [SIGSETXID].
21188
21189         * sysdeps/nptl/sys/procfs.h: New file.
21190         * nptl_db/Makefile (headers): Add it.
21191         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
21192
21193         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
21194         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
21195         * nptl/pthread_attr_setaffinity.c: Include it.
21196         * nptl/pthread_setattr_default_np.c: Likewise.
21197         * nptl/check-cpuset.h: New file.
21198
21199 2015-01-08  Richard Henderson  <rth@redhat.com>
21200
21201         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
21202         (CFLAGS-tst-execstack-prog.c): Likewise.
21203         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
21204
21205 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
21206             Sandra Loosemore  <sandra@codesourcery.com>
21207             Andrew Jenner  <andrew@codesourcery.com>
21208             Joseph Myers  <joseph@codesourcery.com>
21209             Nathan Sidwell  <nathan@codesourcery.com>
21210
21211         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
21212         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
21213         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
21214         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
21215         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
21216         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
21217         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
21218         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
21219         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
21220         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
21221         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
21222         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
21223         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
21224         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
21225         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
21226         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
21227         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
21228
21229 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21230
21231         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
21232         timespec struct member in syscall macro.
21233         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
21234         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
21235         first timeval struct member in syscall macro.
21236         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
21237
21238 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
21239
21240         [BZ #17748]
21241         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
21242         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
21243         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
21244         __feupdateenv and define as weak alias of __feupdateenv.  Use
21245         libm_hidden_weak.
21246         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
21247         libm_hidden_def.
21248         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
21249         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
21250         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21251         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
21252         libm_hidden_def.
21253         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
21254         __feupdateenv and define as weak alias of __feupdateenv.  Use
21255         libm_hidden_weak.
21256         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
21257         libm_hidden_def.
21258         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
21259         __feupdateenv and define as weak alias of __feupdateenv.  Use
21260         libm_hidden_weak.
21261         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
21262         libm_hidden_def.
21263         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21264         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21265         (__feupdateenv): Likewise.
21266         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
21267         __feupdateenv and define as weak alias of __feupdateenv.  Use
21268         libm_hidden_weak.
21269         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21270         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
21271         libm_hidden_def.
21272         * sysdeps/tile/math_private.h (__feupdateenv): New inline
21273         function.
21274         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
21275         libm_hidden_def.
21276         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
21277         __feupdateenv instead of feupdateenv.
21278         (default_libc_feupdateenv_test): Likewise.
21279         (libc_feresetround_ctx): Likewise.
21280
21281 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21282
21283         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
21284         prototype.
21285
21286 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
21287
21288         * posix/regcomp.c (parse_bracket_exp): Initialize type to
21289         COLL_SYM in a couple of places to avoid uninitialized variable
21290         wanings on tilegx gcc 4.8.2.
21291
21292 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21293
21294         * sysdeps/aarch64/strcpy.S: New file.
21295         * sysdeps/aarch64/stpcpy.S: New file.
21296         * NEWS: Updated.
21297
21298 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21299
21300         * sysdeps/aarch64/strrchr.S: New file.
21301         * NEWS: Updated.
21302
21303 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
21304
21305         [BZ #17658]
21306         * stdlib/setenv.c: Fix memory leak when setting large,
21307         duplicate string.
21308
21309 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
21310
21311         [BZ #17273]
21312         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
21313         and tabs from buffer before parsing fstab entry.
21314         * misc/tst-mntent.c (main): Add test for mount entry with
21315         trailing spaces and tabs.
21316
21317 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
21318
21319         [BZ #17748]
21320         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
21321         * math/fesetround.c (fesetround): Rename to __fesetround and
21322         define as weak alias of __fesetround.  Use libm_hidden_weak.
21323         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
21324         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
21325         * sysdeps/arm/fesetround.c (fesetround): Likewise.
21326         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
21327         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
21328         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
21329         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
21330         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
21331         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
21332         __fesetround_inline.
21333         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
21334         __fesetround_inline instead of __fesetround.
21335         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
21336         __fesetround and define as weak alias of __fesetround.  Use
21337         libm_hidden_weak.  Call __fesetround_inline instead of
21338         __fesetround.
21339         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
21340         __fesetround and define as weak alias of __fesetround.  Use
21341         libm_hidden_weak.
21342         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
21343         Likewise.
21344         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
21345         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
21346         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
21347         * sysdeps/tile/math_private.h (__fesetround): New inline function.
21348         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
21349         __fesetround and define as weak alias of __fesetround.  Use
21350         libm_hidden_weak.
21351         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
21352         __fesetround instead of fesetround.
21353         (default_libc_feholdexcept_setround): Likewise.
21354         (libc_feholdsetround_ctx): Likewise.
21355         (libc_feholdsetround_noex_ctx): Likewise.
21356
21357         [BZ #17748]
21358         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
21359         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
21360         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21361         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21362         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21363         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
21364         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21365         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
21366         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21367         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21368         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21369         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21370         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21371         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21372         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
21373         libm_hidden_def.
21374         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
21375         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
21376         Likewise.
21377         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21378         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21379         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
21380         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21381         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
21382         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21383         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21384         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
21385         __fesetenv instead of fesetenv.
21386         (libc_feresetround_noex_ctx): Likewise.
21387         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
21388         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21389         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
21390         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
21391         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
21392         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
21393         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21394         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21395         (__feupdateenv): Likewise.
21396         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21397         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21398         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
21399         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
21400
21401 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
21402
21403         [BZ #17806]
21404         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
21405         addresses have been freed.
21406
21407 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
21408
21409         * resolv/res_init.c (__res_vinit): Improve comments about nserv
21410         and nservall.
21411
21412 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
21413
21414         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
21415         Clean up check_pf allocation pattern. addresses
21416
21417 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21418
21419         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
21420         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
21421         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
21422         * nptl/pthread_exit.c (__pthread_exit): Likewise.
21423         * nptl/pthread_join.c (pthread_join): Likewise.
21424         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
21425         * sysdeps/posix/waitid.c (__waitid): Likewise.
21426         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
21427         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
21428         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
21429         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
21430         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
21431         Likewise.
21432         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
21433         (__libc_pread64): Likewise.
21434         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
21435         (__libc_pwrite): Likewise.
21436         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
21437         (__libc_pwrite64): Likewsie.
21438         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
21439         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
21440         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
21441         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
21442         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
21443         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
21444         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
21445         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
21446         Likewise.
21447         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
21448         (__libc_pread64): Likewise.
21449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
21450         Likewise.
21451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
21452         (__libc_pwrite64): Likewise.
21453         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
21454         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
21455         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
21456         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
21457         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
21458         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
21459         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
21460         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
21461         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
21462         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
21463         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
21464         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
21465         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
21466         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
21467         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
21468         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
21469         Likewise.
21470
21471 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
21472
21473         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
21474         (CFLAGS-test-double.c): Likewise.
21475         (CFLAGS-test-ldouble.c): Likewise.
21476         (CPPFLAGS-test-ifloat.c): Likewise.
21477         (CPPFLAGS-test-idouble.c): Likewise.
21478         (CPPFLAGS-test-ildoubl.c): Likewise.
21479         (CFLAGS-test-test-fenv.c): Remove variable.
21480         (CFLAGS-test-misc.c): Likewise.
21481
21482 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
21483
21484         [BZ #17797]
21485         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
21486         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
21487         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
21488         CLOCKS_PER_SEC == 1000000.
21489         * time/clocktest.c (main): Replace %ld with %jd and cast to
21490         intmax_t.
21491
21492 2015-01-05  Roland McGrath  <roland@hack.frob.com>
21493
21494         * sysdeps/generic/unwind-resume.h: New file.
21495         * sysdeps/gnu/unwind-resume.c: Include it.
21496         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
21497         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
21498         argument list.
21499         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
21500         global rather than static.
21501         (_Unwind_Resume): Update user.
21502         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
21503         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
21504         rather than static.  Add __attribute__ ((cold)).
21505         (_Unwind_Resume, __gcc_personality_v0): Update callers.
21506         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
21507         * sysdeps/arm/arm-unwind-resume.S: New file.
21508         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
21509         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
21510         * sysdeps/arm/Makefile [$(subdir) = csu]
21511         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
21512         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
21513         Add rt-arm-unwind-resume.
21514         [$(subdir) = nptl]
21515         (libpthread-sysdep_routines, libpthread-shared-only-routines):
21516         Add pt-arm-unwind-resume.
21517         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
21518         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
21519
21520 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21521
21522         [BZ #17748]
21523         * include/fenv.h (__feholdexcept): Declare.  Use
21524         libm_hidden_proto.
21525         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
21526         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
21527         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21528         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
21529         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
21530         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
21531         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
21532         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21533         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
21534         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
21535         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
21536         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
21537         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
21538         (feholdexcept): Likewise.
21539         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
21540         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
21541         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
21542         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21543         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
21544         __feholdexcept instead of feholdexcept.
21545         (default_libc_feholdexcept_setround): Likewise.
21546
21547 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21548
21549         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
21550         to avoid using stl/str to align destination.
21551
21552 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21553
21554         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
21555
21556 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21557
21558         [BZ #17796]
21559         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
21560         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
21561         Define as weak alias not strong alias.
21562
21563 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
21564
21565         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
21566         bltzal with addiupc.
21567         (RTLD_START): Ditto.
21568
21569 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
21570
21571         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
21572         for __vdso_* functions in declarations.
21573         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
21574         definitions.
21575         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
21576         INTERNAL_VSYSCALL): Use struct return types to check for error.
21577
21578         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
21579         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
21580         function with cast from llround().
21581         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
21582         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
21583         Define.
21584
21585 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
21586
21587         [BZ #17793]
21588         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
21589         Define as weak alias not strong alias.
21590
21591         [BZ #17635]
21592         * ctype/ctype-c99.c: New file.  isblank implementation moved from
21593         ...
21594         * ctype/ctype-extn.c: ... here.
21595         (__isblank_l): Move to ...
21596         * ctype/ctype-c99_l.c: ... here.  New file.
21597         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
21598         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
21599         Remove variable.
21600         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
21601         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
21602         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
21603         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
21604         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
21605
21606         [BZ #17777]
21607         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
21608         (posix_fadvise64): Define as weak alias not strong alias.
21609         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
21610         (posix_fallocate64): Likewise.
21611         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
21612         Remove variable.
21613         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
21614         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
21615         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
21616         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
21617         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
21618
21619 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
21620
21621         [BZ #16191]
21622         * NEWS: Mention bug fix.
21623         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
21624         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
21625         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
21626         (HOST_STACK_END_ADDR): Likewise.
21627
21628 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
21629
21630         [BZ #17748]
21631         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
21632         * math/fegetround.c (fegetround): Rename to __fegetround and
21633         define as weak alias of __fegetround.  Use libm_hidden_weak.
21634         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
21635         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
21636         * sysdeps/arm/fegetround.c (fegetround): Likewise.
21637         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
21638         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
21639         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
21640         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
21641         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
21642         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
21643         Undefine after rather than before function definition; use
21644         parentheses around function name in definition.
21645         (__fegetround): Also undefine macro after function definition.
21646         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
21647         __fegetround and define as weak alias of __fegetround.  Use
21648         libm_hidden_weak.  Do not undefine as macro.
21649         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
21650         Likewise.
21651         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
21652         __fegetround and define as weak alias of __fegetround.  Use
21653         libm_hidden_weak.
21654         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
21655         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
21656         * sysdeps/tile/math_private.h (__fegetround): New inline function.
21657         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
21658         __fegetround and define as weak alias of __fegetround.  Use
21659         libm_hidden_weak.
21660         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
21661         __fegetround instead of fegetround.
21662
21663         [BZ #17782]
21664         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
21665         Condition macro definition on [__USE_MISC].
21666
21667         [BZ #17781]
21668         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
21669         (struct sigaction): Change type of sa_flags field to int.
21670
21671         [BZ #17780]
21672         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
21673         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
21674         __glibc_reserved0.
21675
21676         * nptl/version.c (banner): Use single year in copyright notice.
21677
21678         * NEWS: Update copyright dates.
21679         * catgets/gencat.c (print_version): Likewise.
21680         * csu/version.c (banner): Likewise.
21681         * debug/catchsegv.sh: Likewise.
21682         * debug/pcprofiledump.c (print_version): Likewise.
21683         * debug/xtrace.sh (do_version): Likewise.
21684         * elf/ldconfig.c (print_version): Likewise.
21685         * elf/ldd.bash.in: Likewise.
21686         * elf/pldd.c (print_version): Likewise.
21687         * elf/sotruss.sh: Likewise.
21688         * elf/sprof.c (print_version): Likewise.
21689         * iconv/iconv_prog.c (print_version): Likewise.
21690         * iconv/iconvconfig.c (print_version): Likewise.
21691         * locale/programs/locale.c (print_version): Likewise.
21692         * locale/programs/localedef.c (print_version): Likewise.
21693         * login/programs/pt_chown.c (print_version): Likewise.
21694         * malloc/memusage.sh (do_version): Likewise.
21695         * malloc/memusagestat.c (print_version): Likewise.
21696         * malloc/mtrace.pl: Likewise.
21697         * manual/libc.texinfo: Likewise.
21698         * nptl/version.c (banner): Likewise.
21699         * nscd/nscd.c (print_version): Likewise.
21700         * nss/getent.c (print_version): Likewise.
21701         * nss/makedb.c (print_version): Likewise.
21702         * posix/getconf.c (main): Likewise.
21703         * scripts/test-installation.pl: Likewise.
21704         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
21705
21706 2015-01-02  Will Newton  <will.newton@linaro.org>
21707
21708         * sysdeps/arm/armv7/configure: Removed.
21709         * sysdeps/arm/armv7/configure.ac: Likewise.
21710
21711 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
21712
21713         * All files with FSF copyright notices: Update copyright dates
21714         using scripts/update-copyrights.
21715         * intl/plural.c: Regenerated.
21716         * locale/programs/charmap-kw.h: Likewise.
21717         * locale/programs/locfile-kw.h: Likewise.
21718
21719 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
21720
21721         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
21722
21723 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
21724
21725         [BZ #17748]
21726         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
21727         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
21728         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
21729         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
21730         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21731         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
21732         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21733         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
21734         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21735         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
21736         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21737         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21738         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
21739         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21740         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
21741         libm_hidden_def.
21742         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
21743         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
21744         Likewise.
21745         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
21746         define as weak alias of __fegetenv.  Use libm_hidden_weak.
21747         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
21748         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
21749         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
21750         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
21751         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
21752         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
21753         __fegetenv instead of fegetenv.
21754         (libc_feholdsetround_noex_ctx): Likewise.
21755
21756 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
21757
21758         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
21759         (Elf_MIPS_ABIFlags_v0): New structure.
21760         (EF_MIPS_FP64): Define.
21761         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
21762         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
21763         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
21764         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
21765         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
21766         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
21767         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
21768         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
21769         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
21770         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
21771         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
21772         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
21773         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
21774         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
21775         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
21776         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
21777         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
21778         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
21779         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
21780         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
21781         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
21782         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
21783         field.
21784         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
21785         EF_MIPS_FP64.
21786         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
21787         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
21788         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
21789         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
21790         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
21791         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
21792         * sysdeps/mips/tst-abi-interlink.c: Likewise.
21793         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
21794         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
21795         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
21796         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
21797         record the current FP ABI extension.
21798         (mips-mode-switch): Define to show if kernel headers support mode
21799         switching.
21800         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
21801         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
21802         supported SYSV ABI version to 3.
21803         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
21804         feature.
21805
21806 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21807             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21808
21809         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
21810         path.
21811         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
21812
21813 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
21814
21815         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
21816         __fegetround and redefine to call __fegetround.  Remove condition
21817         on [!__NO_MATH_INLINES].
21818         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
21819         function.
21820         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
21821         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
21822         Remove macro.
21823         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
21824         instead of <fenv_libc.h>.
21825         (__llrintl): Call fegetround instead of __fegetround.
21826         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
21827         instead of <fenv_libc.h>.
21828         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
21829         (__lrintl): Call fegetround instead of __fegetround.
21830         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
21831         instead of <fenv_libc.h>.
21832         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
21833         (__rintl): Call fegetround instead of __fegetround.
21834
21835 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
21836
21837         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
21838         arrays.
21839
21840 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
21841
21842         [BZ #17775]
21843         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
21844         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
21845         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
21846
21847 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
21848
21849         * sysdeps/i386/tls-macros.h: Include <features.h>.
21850         (TLS_LE): Use non-PIC version for GCC >= 5.0.
21851         (TLS_IE): Likewise.
21852         (TLS_LD): Likewise.
21853         (TLS_GD): Likewise.
21854         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
21855         define for GCC >= 5.0.
21856
21857 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
21858
21859         * math/test-fenv.c (test_single_exception, set_single_exc,
21860         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
21861         feexcp_mask_test, feenable_test, fe_single_test): Add
21862         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
21863         case where they are not used.
21864         * math/libm-test.inc: Likewise.
21865         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
21866         unused in the absence of FP rounding/exception support.
21867         * stdio-common/tst-printf-round.c: Likewise.
21868         * stdlib/tst-strtod-round.c: Likewise.
21869         * stdlib/tst-strtod-underflow.c: Likewise.
21870
21871 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
21872
21873         [BZ #17723]
21874         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
21875         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
21876         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21877         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21878         libm_hidden_weak.
21879         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
21880         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
21881         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
21882         libm_hidden_def.
21883         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21884         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21885         libm_hidden_weak.
21886         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
21887         Likewise.
21888         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
21889         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21890         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21891         libm_hidden_weak.
21892         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
21893         libm_hidden_def.
21894         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
21895         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
21896         (__feraiseexcept): Likewise.
21897         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
21898         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
21899         libm_hidden_weak.
21900         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
21901         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
21902         libm_hidden_def.
21903         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
21904         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
21905         Use libm_hidden_def.
21906         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
21907         libm_hidden_def.
21908         (feraiseexcept): Define as weak not strong alias.  Use
21909         libm_hidden_weak.
21910         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
21911         New inline function.  Factored out of ...
21912         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
21913         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
21914         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
21915         feraiseexcept.
21916         * math/w_acos.c (__acos): Likewise.
21917         * math/w_asin.c (__asin): Likewise.
21918         * math/w_ilogb.c (__ilogb): Likewise.
21919         * math/w_j0.c (y0): Likewise.
21920         * math/w_j1.c (y1): Likewise.
21921         * math/w_jn.c (yn): Likewise.
21922         * math/w_log.c (__log): Likewise.
21923         * math/w_log10.c (__log10): Likewise.
21924         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
21925         * sysdeps/aarch64/fpu/math_private.h
21926         (libc_feupdateenv_test_aarch64): Likewise.
21927         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
21928         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
21929         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
21930         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
21931         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
21932         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
21933         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
21934         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21935         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21936         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
21937
21938 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
21939
21940         [BZ #17732]
21941         * io/test-utime.c (main): Replace %ld with %jd and cast to
21942         intmax_t.
21943         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
21944         * nptl/tst-mutex5.c: Include <stdint.h>.
21945         (do_test): Replace %ld with %jd and cast to intmax_t.
21946         * posix/tst-regex.c (run_test): Likewise.
21947         (run_test_backwards): Likewise.
21948         * rt/tst-clock.c: Include <stdint.h>.
21949         (clock_test): Replace %ld with %jd and cast to intmax_t.
21950         * rt/tst-cpuclock1.c: Include <stdint.h>.
21951         (do_test): Replace %lu with %ju and cast to uintmax_t.
21952         * rt/tst-cpuclock2.c: Include <stdint.h>.
21953         (do_test): Replace %lu with %ju and cast to uintmax_t.
21954         * rt/tst-mqueue1.c: Include <stdint.h>.
21955         (check_attrs): Replace %ld with %jd and cast to intmax_t.
21956         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
21957         intmax_t.
21958         * rt/tst-mqueue4.c (do_test): Likewise.
21959         * rt/tst-timer4.c: Include <stdint.h>.
21960         (check_ts): Replace %ld with %jd and cast to intmax_t.
21961         (do_test): Likewise.
21962         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
21963         and cast to intmax_t.
21964         * sysdeps/pthread/tst-timer.c (main): Likewise.
21965         * time/clocktest.c (main): Likewise.
21966         * time/tst-posixtz.c (do_test): Likewise.
21967         * timezone/tst-timezone.c (main): Likewise.
21968
21969 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
21970             H.J. Lu  <hongjiu.lu@intel.com>
21971
21972         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
21973         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
21974         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
21975         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
21976         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
21977         version if bit_Fast_Unaligned_Load is set.
21978         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
21979         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
21980         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
21981         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
21982         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
21983         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
21984         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21985         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
21986         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
21987         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
21988         to 4.
21989         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
21990         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
21991         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
21992         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
21993
21994 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
21995
21996         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
21997         instead of #if to avoid a Wundef warning.
21998         * stdlib/tst-limits.c (do_test): Likewise.
21999
22000         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
22001         parallel other exception macros.
22002         (fegetenv): Convert from macro to extern inline so that it applies
22003         retroactively to inline functions already seen by the compiler.
22004         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
22005
22006         * posix/Makefile (before-compile): Use $(objpfx) for
22007         posix-conf-vars-def.h.
22008
22009 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
22010
22011         * posix/getconf.c (main): Use size_t for type of I.
22012         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
22013         NSPEC.
22014
22015         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
22016         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
22017         * posix/posix-envs.def: Likewise.
22018         * sysdeps/posix/sysconf.c: Likewise.
22019         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
22020         (specs): Remove array.
22021         * scripts/gen-posix-conf-vars.awk: Support generation of specs
22022         array.
22023
22024         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
22025         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
22026         (__sysconf): Use CONF_IS_* macros.
22027
22028         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
22029         ($(objpfx)posix-conf-vars-def.h): New target.
22030         * posix/posix-conf-vars.list: New file.
22031         * posix/posix-conf-vars.h: New file.
22032         * posix/confstr.c: Include posix-conf-vars.h.
22033         (confstr): Use CONF_IS_* macros.
22034         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
22035         CONF_IS_* macros.
22036         * scripts/gen-posix-conf-vars.awk: New file.
22037
22038 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
22039
22040         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
22041         fegetround): Add no-op macros to avoid linknamespace issues.
22042
22043         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
22044         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
22045
22046         * sysdeps/unix/sysv/linux/tile/sysdep.h
22047         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
22048         assembly-specific section to avoid a redefinition warning.
22049
22050         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
22051         long before casting to pointer to avoid a cast warning.
22052
22053 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
22054
22055         * sysdeps/tile/tilegx/Implies: New file.
22056
22057 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
22058
22059         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
22060
22061 2014-12-23  Florian Weimer  <fweimer@redhat.com>
22062
22063         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
22064
22065 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22066
22067         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
22068         not define.
22069         * sysdeps/unix/sysv/linux/utimes.c: Do not include
22070         <kernel-features.h>.
22071         (__utimes) [__NR_utimes]: Make code unconditional.
22072         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
22073         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
22074         (__ASSUME_UTIMES): Do not undefine.
22075         * sysdeps/unix/sysv/linux/tile/kernel-features.h
22076         (__ASSUME_UTIMES): Likewise.
22077         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
22078         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
22079         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
22080         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
22081
22082 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22083
22084         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
22085
22086 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
22087
22088         [BZ #17747]
22089         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
22090         alias to weak alias for j0l, y0l.
22091         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
22092         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
22093
22094         [BZ #17746]
22095         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
22096         conversion.
22097
22098 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22099
22100         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
22101         to zero if not already defined.
22102
22103 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22104
22105         [BZ #17724]
22106         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
22107         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
22108         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
22109         (char *) casts added.
22110         * sysdeps/ieee754/k_standardf.c: New file.
22111         * sysdeps/ieee754/k_standardl.c: Likewise.
22112         * math/Makefile (libm-support): Remove k_standard.
22113         (libm-calls): Add k_standard.
22114
22115 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22116
22117         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
22118         Optimize to avoid an unnecessary FPCR read.
22119
22120 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22121
22122         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
22123         Optimize to reduce FPCR/FPSR accesses.
22124
22125 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22126
22127         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
22128         Call libc_fetestexcept_aarch64.
22129
22130 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22131
22132         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
22133         Call libc_fesetround_aarch64.
22134
22135 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22136
22137         [BZ #17733]
22138         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
22139         (__bind): Do not define as weak alias.
22140         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
22141         define.
22142         (__getsockname): Do not define as weak alias.
22143
22144 2014-12-22  Will Newton  <will.newton@linaro.org>
22145
22146         * manual/install.texi: Document that we require bison 2.7
22147         or above.
22148         * INSTALL: Regenerate.
22149         * configure.ac: Use AC_CHECK_PROG_VER instead of
22150         AC_PATH_PROG when checking for bison and check for
22151         version 2.7 or above.
22152         * configure: Regenerate.
22153
22154 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
22155
22156         [BZ #17745]
22157         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
22158         * sysdeps/tile/ffsll.c (ffsll): To here.
22159
22160         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
22161
22162 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22163
22164         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
22165         if not defined.
22166         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
22167         definition.
22168         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22169         hidden ___tls_get_addr.
22170         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22171         hidden __tls_get_addr.
22172         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
22173         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
22174         Likewise.
22175
22176 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22177
22178         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
22179         _dl_init call.
22180
22181 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22182
22183         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
22184         from "call _dl_init@PLT".
22185         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
22186
22187 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
22188
22189         * manual/search.texi: (Array Sort Function): Clarify stable sorting
22190         guarantees.
22191
22192 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
22193
22194         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
22195
22196 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22197
22198         [BZ #17744]
22199         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
22200         strnlen.
22201
22202 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22203
22204         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
22205         of multu on MIPSr6.
22206         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
22207         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
22208         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
22209         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
22210         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
22211
22212 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22213
22214         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
22215         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
22216         (PTR_SUBU): Use subu for mips32r6/mips64r6.
22217         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
22218         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
22219         mips32r6/mips64r6.
22220         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
22221
22222 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
22223
22224         * string/strncat.c (STRNCAT): Simplify implementation.
22225
22226 2014-12-19  David S. Miller  <davem@davemloft.net>
22227
22228         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
22229         access the quad as both a long double and as a series of 4 words.
22230
22231         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
22232         link_map->l_info array access.
22233
22234 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22235
22236         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
22237
22238         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
22239         * math/atest-exp2.c (TIMEOUT): Likewise.
22240         * math/atest-sincos.c (TIMEOUT): Likewise.
22241
22242 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22243
22244         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
22245         -Wno-error with -fno-builtin-lround.
22246
22247 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22248
22249         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
22250         Contains futex constants and functions moved over from ...
22251         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
22252         <lowlevellock-futex.h>.
22253         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22254         (lll_timedwait_tid): Add comments and parentheses around macro
22255         arguments.
22256
22257 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22258
22259         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
22260         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
22261         (__lll_private_flag): Remove.
22262         (lll_futex_wait): Likewise.
22263         (lll_futex_timed_wait): Likewise.
22264         (lll_futex_wake): Likewise.
22265         (lll_futex_requeue): Likewise.
22266         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22267         (__lll_timedwait_tid): Spell out argument names.
22268         (lll_timedwait_tid): Add comments and parentheses around macro
22269         arguments.
22270         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
22271         LLL_SHARED and LLL_PRIVATE usable from assembly code.
22272
22273 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22274
22275         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
22276         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
22277         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
22278         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
22279         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
22280         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
22281         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
22282         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
22283         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
22284         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
22285         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
22286         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
22287         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
22288         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
22289         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
22290         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
22291         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
22292         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
22293         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
22294
22295 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22296
22297         * sysdeps/x86_64/x32/Makefile: New file.
22298
22299 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22300
22301         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
22302         1L with (mp_limb_t) 1.
22303
22304 2014-12-17  Roland McGrath  <roland@hack.frob.com>
22305
22306         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
22307         * nptl/libc_pthread_init.c: ... here.
22308         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
22309         * nptl/register-atfork.c: ... here.
22310
22311         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
22312         Use pthread_sigmask rather than INTERNAL_SYSCALL.
22313         Use assert_perror to check its return value.
22314         (__gai_create_helper_thread): Likewise.
22315
22316         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
22317
22318         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
22319
22320 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
22321
22322         [BZ #17725]
22323         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
22324         __profil_counter.
22325         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
22326         Likewise.
22327         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
22328         Likewise.
22329         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
22330         Likewise.
22331         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
22332         (profil_counter): Likewise.
22333         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
22334         (profil_counter): Likewise.
22335         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
22336         Likewise.
22337         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
22338         Likewise.
22339         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
22340         (profil_counter): Likewise.
22341         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
22342         Likewise.
22343         [!__profil_counter] (profil_counter): Define as weak alias of
22344         __profil_counter.
22345         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
22346         (profil_counter): Rename to __profil_counter.
22347         [!__profil_counter] (profil_counter): Define as weak alias of
22348         __profil_counter.
22349         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
22350         (profil_counter): Rename to __profil_counter.
22351         [!__profil_counter] (profil_counter): Define as weak alias of
22352         __profil_counter.
22353         * sysdeps/posix/profil.c: Update comment referring to
22354         profil_counter.
22355         (__profil): Use __profil_counter instead of profil_counter.
22356         * sysdeps/posix/sprofil.c (profil_counter): Rename to
22357         __profil_counter.  Use __profil_counter_ushort and
22358         __profil_counter_uint in definitions.
22359         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
22360         instead of profil_counter_uint and profil_counter_ushort.
22361
22362         [BZ #17722]
22363         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
22364         define as weak alias of __inet_makeaddr.
22365         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
22366         as weak alias of __inet_addr.
22367         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
22368         as weak alias of __inet_pton.  Use libc_hidden_weak.
22369         * include/arpa/inet.h (__inet_pton): Declare.  Use
22370         libc_hidden_proto.
22371         (inet_makeaddr): Don't use libc_hidden_proto.
22372         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
22373         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
22374         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
22375         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
22376         Remove variable.
22377         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
22378         (test-xfail-POSIX/time.h/linknamespace): Likewise.
22379
22380 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
22381
22382         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
22383
22384 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
22385
22386         * stdio-common/bug-vfprintf-nargs.c (do_test):
22387         Cast value to intptr_t to avoid format warning
22388         for usage with PRIdPTR printing macro.
22389
22390 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
22391
22392         * libio/tst-widetext.c (do_test):
22393         Use format type %td instead of %Zd for ptrdiff_t
22394         in order to avoid format warning.
22395
22396 2014-12-17  Andreas Schwab  <schwab@suse.de>
22397
22398         * nscd/mem.c (gc): Add size_t cast to match printf format.
22399
22400 2014-12-16  Roland McGrath  <roland@hack.frob.com>
22401
22402         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
22403         (init): Apply PTR_MANGLE to pointers before storing them.
22404         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
22405         before using them.
22406
22407 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
22408
22409         [BZ #17719]
22410         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
22411         define as weak alias of __memrchr.
22412         (__memrchr): Do not define as strong alias of memrchr.
22413         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
22414         Remove variable.
22415         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
22416         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
22417         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
22418
22419         [BZ #17717]
22420         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
22421         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
22422         (if_indextoname): Rename to __if_indextoname and define as weak
22423         alias of __if_indextoname.  Use libc_hidden_weak.
22424         (if_freenameindex): Rename to __if_freenameindex and define as
22425         weak alias of __if_freenameindex.
22426         (if_nameindex): Rename to __if_nameindex and define as weak alias
22427         of __if_nameindex.
22428         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
22429         __if_nametoindex and define as weak alias of __if_nametoindex.
22430         Use libc_hidden_weak.
22431         (if_freenameindex): Rename to __if_freenameindex and define as
22432         weak alias of __if_freenameindex.
22433         (if_nameindex): Rename to __if_nameindex and define as weak alias
22434         of __if_nameindex.
22435         (if_indextoname): Rename to __if_indextoname and define as weak
22436         alias of __if_indextoname.  Use libc_hidden_weak.
22437         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
22438         __if_nametoindex and define as weak alias of __if_nametoindex.
22439         Use libc_hidden_weak.
22440         (if_freenameindex): Rename to __if_freenameindex and define as
22441         weak alias of __if_freenameindex.  Use libc_hidden_weak.
22442         (if_nameindex_netlink): Use __if_freenameindex instead of
22443         if_freenameindex.
22444         (if_nameindex): Rename to __if_nameindex and define as weak alias
22445         of __if_nameindex.  Use libc_hidden_weak.
22446         (if_indextoname): Rename to __if_indextoname and define as weak
22447         alias of __if_indextoname.  Use libc_hidden_weak.
22448         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
22449         libc_hidden_proto.
22450         [!_ISOMAC] (__if_freenameindex): Likewise.
22451         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
22452         if_nametoindex.
22453         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
22454         variable.
22455         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
22456         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
22457         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
22458         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
22459         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
22460         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
22461         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
22462
22463         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
22464         Remove variable.
22465         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
22466         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
22467
22468 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22469
22470         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
22471         subscript above bounds'
22472
22473         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
22474         bounds.
22475
22476 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
22477
22478         * libio/tst-fopenloc.c: Use test-skeleton.c.
22479
22480         * stdlib/tst-bsearch.c: Use test-skeleton.c.
22481         (entry): Rename to ITEM.
22482         (do_test, comp): Adjust.
22483
22484         * stdio-common/tst-fseek.c: Use test-skeleton.c.
22485
22486 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22487
22488         * string/tester.c: Include <libc-internal.h>.
22489         (test_memset): Ignore -Wmemset-transposed-args.
22490
22491 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22492
22493         * misc/tst-mntent2.c (do_test): Fix warning.
22494
22495 2014-12-16  Torvald Riegel  <triegel@redhat.com>
22496
22497         * elf/tst-unique4lib.cc(a): Mark as used.
22498
22499 2014-12-16  Florian Weimer  <fweimer@redhat.com>
22500
22501         [BZ #17630]
22502         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
22503         names.
22504
22505 2014-12-16  Allan McRae  <allan@archlinux.org>
22506
22507         * stdio-common/Makefile (tests): Re-add bug26.
22508
22509 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
22510
22511         [BZ #17657]
22512         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
22513         static array.
22514
22515 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
22516
22517         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
22518         (__lll_lock_wait): Likewise.
22519         (__lll_timedlock_wait): Likewise.
22520         (__lll_timedwait_tid): Likewise.
22521         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
22522         (__lll_robust_timedlock_wait): Likewise.
22523         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
22524         (lll_cond_trylock): Likewise.
22525         (__lll_lock): Likewise.
22526         (__lll_robust_lock): Likewise.
22527         (__lll_cond_lock): Likewise.
22528         (lll_robust_cond_lock): Likewise.
22529         (__lll_timedlock): Likewise.
22530         (__lll_robust_timedlock): Likewise.
22531         (__lll_unlock): Likewise.
22532         (__lll_robust_unlock): Likewise.
22533         (lll_wait_tid): Likewise.
22534         (lll_timedwait_tid): Likewise.
22535
22536 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22537
22538         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
22539
22540 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22541
22542         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
22543
22544 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
22545
22546         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
22547         * stdio-common/tst-sprintf.c: Likewise.
22548
22549 2014-12-15  Torvald Riegel  <triegel@redhat.com>
22550
22551         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
22552
22553 2014-12-15  Jeff Law  <law@redhat.com>
22554
22555         [BZ #16617]
22556         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
22557         on the heap.  (CVE-2012-3406)
22558         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
22559         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
22560         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
22561
22562 2014-12-15  Will Newton  <will.newton@linaro.org>
22563
22564         * manual/install.texi: Bump required version of texinfo
22565         to 4.7 from 4.5.
22566         * INSTALL: Regenerated.
22567         * configure.ac: Check for makeinfo version 4.7 and above.
22568         * configure: Regenerated.
22569
22570 2014-12-12  Roland McGrath  <roland@hack.frob.com>
22571
22572         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
22573         PREFIX, string constant to insert between directory and name.
22574         * sysdeps/posix/shm_open.c: Update caller.
22575         * sysdeps/posix/shm_unlink.c: Likewise.
22576         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
22577         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
22578         (SEM_SHM_PREFIX): New macro.
22579         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
22580         [$(have-thread-library) = no].
22581         * nptl/Makefile (libpthread-routines): Add shm-directory.
22582         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
22583         * sysdeps/nptl/shm-directory.h: New file.
22584         * sysdeps/posix/shm-directory.c
22585         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
22586         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
22587         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
22588         INTERNAL_SYSCALL.
22589         (__where_is_shmfs): Function removed.
22590         (mountpoint, defaultmount, defaultdir, __namedsem_once):
22591         Variables removed.
22592         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
22593         Use SHM_GET_NAME.
22594         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
22595
22596         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
22597         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
22598         unconditional for use inside libpthread.
22599         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
22600
22601 2014-12-12  Roland McGrath  <roland@hack.frob.com>
22602
22603         * nptl/pthread_getaffinity.c: New file.
22604         * nptl/pthread_setaffinity.c: New file.
22605         * nptl/pthread_getname.c: New file.
22606         * nptl/pthread_setname.c: New file.
22607
22608         * nptl/pthread_create.c (START_THREAD_DEFN)
22609         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
22610
22611 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22612             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22613
22614         * resolv/res_send.c (send_vc): Disable warning resplen may
22615         be used uninitialized.
22616
22617 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
22618
22619         * nptl/tst-mutex6.c
22620         (ATTR_NULL): New define checks ATTR against NULL.
22621         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
22622         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
22623
22624 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
22625
22626         [BZ #17581]
22627         * malloc/hooks.c
22628         (mem2mem_check): Revert my previous change.
22629         (malloc_check_get_size): Revert my previous change.
22630         (mem2chunk_check): Revert my previous change.
22631
22632 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22633
22634         * sysdeps/posix/shm-directory.c: New file.
22635         * sysdeps/posix/shm-directory.h: New file.
22636         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
22637         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
22638         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
22639         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
22640         Transmute EPERM to EACCES.
22641         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
22642         from ...
22643         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
22644         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
22645
22646 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22647
22648         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
22649         pointer and cast to uintptr_t.
22650         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
22651         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
22652         Add cast to avoid warning.
22653         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
22654
22655 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
22656
22657         * nptl/semaphore.h: Move to ...
22658         * sysdeps/pthread/semaphore.h: ... here.
22659         * Makefile (installed-headers): Change nptl/semaphore.h to
22660         sysdeps/pthread/semaphore.h.
22661
22662 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22663
22664         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
22665         generated error format strings.
22666
22667         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
22668         -Wformat-extra-args warnings for scanf formats.
22669         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
22670         test of zero-length format (duh).
22671         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
22672         corner-case scanf format test.
22673         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
22674         generated fprintf format string.
22675         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
22676         corner-case sprintf format tests.
22677         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
22678         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
22679         -Wformat-extra-args warnings throughout.
22680         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
22681         (CFLAGS-scanf4.c): Likewise.
22682         (CFLAGS-scanf7.c): Likewise.
22683         (CFLAGS-tst-sprintf.c): Likewise.
22684         (CFLAGS-tst-printf.c): Likewise.
22685         (CFLAGS-tst-printfsz.c): Likewise.
22686
22687 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
22688
22689         * include/cpio.h: New file.
22690         * include/fmtmsg.h: Likewise.
22691
22692         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
22693         corresponding format argument to size_t.
22694         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
22695         arguments.
22696         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
22697         corresponding format argument to size_t.
22698         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
22699         arguments.
22700         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
22701         corresponding format argument to size_t.
22702         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
22703         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
22704         (CFLAGS-tst-mbswcs2.c): Likewise.
22705         (CFLAGS-tst-mbswcs3.c): Likewise.
22706         (CFLAGS-tst-mbswcs4.c): Likewise.
22707         (CFLAGS-tst-mbswcs5.c): Likewise.
22708         (CFLAGS-tst-trans.c): Likewise.
22709
22710 2014-12-11  Roland McGrath  <roland@hack.frob.com>
22711
22712         * posix/regexbug1.c (main): Use "%s" format with regerror results,
22713         rather than assuming they won't contain any '%'s.
22714
22715 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
22716
22717         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
22718         inhibit_loop_to_libcall to avoid recursive calls.
22719         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
22720         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
22721
22722 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
22723
22724         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
22725         prototype.
22726
22727 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
22728
22729         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
22730         integer value instead of boolean.
22731
22732 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
22733
22734         * malloc/malloc.c: Fix powerof2 check.
22735
22736 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
22737
22738         * locale/programs/locfile.h (maybe_swap_uint32):
22739         Remove inline and add unused attribute.
22740
22741 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
22742
22743         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
22744         Truncating assembler expression to a .long expression.
22745
22746 2014-12-11  Andreas Schwab  <schwab@suse.de>
22747
22748         * elf/rtld.c (struct map_args): Constify str member.
22749         (do_preload): Constify fname argument.
22750
22751 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22752
22753         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
22754         constants definition.
22755
22756 2014-12-11  Andreas Schwab  <schwab@suse.de>
22757
22758         [BZ #16657]
22759         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
22760         FORCE_ELISION instead of DO_ELISION.
22761         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
22762         Remove.
22763         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
22764         Likewise.
22765
22766         * iconvdata/gconv-modules: Remove duplicate entry.
22767
22768 2014-12-11  Will Newton  <will.newton@linaro.org>
22769
22770         Merge gettext 0.19.3 into intl/.
22771
22772         This involves a number of cosmetic changes to comments
22773         and ANSI function definitions and prototypes throughout
22774         all the files. The gettext copyright header is used but
22775         with the date ranges taken from the glibc copy.
22776
22777         * NEWS: Add gettext merge to 2.21.
22778         * intl/bindtextdom.c: Switch to gettext copyright.
22779         Use ANSI definitions and prototypes.
22780         Use gl_* locking primitives rather than __libc_* ones.
22781         Use __builtin_expect rather than __glibc_likely/unlikely.
22782         * intl/dcgettext.c: Switch to gettext copyright.
22783         Use ANSI definitions and prototypes.
22784         * intl/dcigettext.c: Switch to gettext copyright.
22785         Use ANSI definitions and prototypes.
22786         (INTDIV0_RAISES_SIGFPE): New define.
22787         Use gl_* locking primitives rather than __libc_* ones.
22788         Include eval-plural.h instead of plural-eval.c.
22789         Use __builtin_expect rather than __glibc_likely/unlikely.
22790         * intl/dcngettext.c: Switch to gettext copyright.
22791         Use ANSI definitions and prototypes.
22792         * intl/dgettext.c: Likewise.
22793         * intl/dngettext.c: Likewise.
22794         * intl/plural-eval.c: Renamed to...
22795         * intl/eval-plural.h: ...this.
22796         * intl/explodename.c: Switch to gettext copyright.
22797         Use ANSI definitions and prototypes.
22798         (_nl_explode_name): Use strchr instead of __rawmemchr.
22799         * intl/finddomain.c: Switch to gettext copyright.
22800         Use ANSI definitions and prototypes.
22801         Use gl_* locking primitives rather than __libc_* ones.
22802         (_nl_find_domain): Use malloc rather than alloca for
22803         allocation of temporary locale name.
22804         * intl/gettext.c: Switch to gettext copyright.
22805         Use ANSI definitions and prototypes.
22806         * intl/gettextP.h: Switch to gettext copyright.
22807         Use ANSI definitions and prototypes.
22808         Use gl_* locking primitives rather than __libc_* ones.
22809         * intl/gmo.h: Switch to gettext copyright.
22810         (struct sysdep_string): Move struct segment_pair outside of
22811         struct definition.
22812         * intl/hash-string.c: Use ANSI definitions and prototypes.
22813         * intl/hash-string.h: Switch to gettext copyright.
22814         Use ANSI definitions and prototypes.
22815         * intl/l10nflist.c: Switch to gettext copyright.
22816         Use ANSI definitions and prototypes.
22817         (_nl_normalize_codeset): Avoid integer overflow.
22818         * intl/loadinfo.h: Switch to gettext copyright.
22819         Use ANSI definitions and prototypes.
22820         (LIBINTL_DLL_EXPORTED): New define.
22821         (PATH_SEPARATOR): New define.
22822         * intl/loadmsgcat.c: Switch to gettext copyright.
22823         * intl/localealias.c: Switch to gettext copyright.
22824         Use ANSI definitions and prototypes.
22825         (_nl_expand_alias): Use PATH_SEPARATOR.
22826         * intl/ngettext.c: Switch to gettext copyright.
22827         Use ANSI definitions and prototypes.
22828         * intl/plural-exp.c: Likewise.
22829         * intl/plural-exp.h: Switch to gettext copyright.
22830         Use ANSI definitions and prototypes.
22831         (struct expression): Move definition of enum operator outside
22832         of struct definition.
22833         * intl/plural.c: Regenerate.
22834         * intl/plural.y: Switch to gettext copyright.
22835         Use ANSI definitions and prototypes.
22836         Port to bison 3.0.
22837         * intl/textdomain.c: Switch to gettext copyright.
22838         Use ANSI definitions and prototypes.
22839         Use gl_* locking primitives rather than __libc_* ones.
22840
22841 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
22842
22843         * debug/warning-nop.c: Add used atrribute.
22844
22845 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
22846
22847         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
22848
22849         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
22850         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
22851         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
22852
22853 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
22854             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22855
22856         [BZ #17634]
22857         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
22858         Undefine after defining function.  Define as weak alias of
22859         __wcschr.  Use libc_hidden_weak.
22860         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
22861         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
22862         (libc_hidden_def): Also define __GI___wcschr alias.
22863         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
22864         __wcschr and define as weak alias of __wcschr.
22865         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
22866         __wcschr.
22867         [!WCSCHR] (DEFAULT_WCSCHR): Define.
22868         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
22869         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
22870         libc_hidden_weak.  Do not use libc_hidden_def.
22871         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
22872         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
22873         __GI___wcschr alias.
22874         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
22875         [IS_IN (libc)] (wcschr): Define as macro expanding to
22876         __redirect_wcschr.
22877         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
22878         [IS_IN (libc)] (__wcschr_power6): Likewise.
22879         [IS_IN (libc)] (__wcschr_power7): Likewise.
22880         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
22881         instead of wcschr.
22882         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
22883         __libc_wcschr.
22884         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
22885         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
22886         __wcschr and define as weak alias of __wcschr.  Use
22887         libc_hidden_builtin_def.
22888         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
22889         as weak alias of __wcschr.  Use libc_hidden_weak.
22890         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
22891         wcschr.
22892         * time/era.c (_nl_init_era_entries): Likewise.
22893         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
22894         variable.
22895         (test-xfail-XPG3/time.h/linknamespace): Likewise.
22896         (test-xfail-XPG4/time.h/linknamespace): Likewise.
22897
22898 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
22899
22900         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
22901         format for long int variable.
22902
22903 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
22904
22905         [BZ #10672]
22906         * manual/search.texi: (Array Sort Function): Remove claim how to make
22907         qsort stable.
22908
22909 2014-12-10  Andreas Schwab  <schwab@suse.de>
22910
22911         [BZ #12847]
22912         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
22913         user-controlled locks.
22914
22915 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
22916
22917         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
22918         register.
22919
22920 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
22921
22922         * configure.ac (--disable-werror): New configure option.
22923         (enable_werror): New AC_SUBST.
22924         * configure: Regenerated.
22925         * config.make.in (enable-werror): New variable.
22926         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
22927         -Wno-error=undef.
22928         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
22929         * manual/install.texi (Configuring and compiling): Document
22930         --disable-werror.
22931         * INSTALL: Regenerated.
22932         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
22933         (CFLAGS-tst-chk2.c): Likewise.
22934         (CFLAGS-tst-chk3.c): Likewise.
22935         (CFLAGS-tst-chk4.cc): Likewise.
22936         (CFLAGS-tst-chk5.cc): Likewise.
22937         (CFLAGS-tst-chk6.cc): Likewise.
22938         (CFLAGS-tst-lfschk1.c): Likewise.
22939         (CFLAGS-tst-lfschk2.c): Likewise.
22940         (CFLAGS-tst-lfschk3.c): Likewise.
22941         (CFLAGS-tst-lfschk4.cc): Likewise.
22942         (CFLAGS-tst-lfschk5.cc): Likewise.
22943         (CFLAGS-tst-lfschk6.cc): Likewise.
22944
22945         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
22946         (main): Disable -Wdeprecated-declarations around calls to
22947         register_printf_function.
22948
22949         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
22950         (do_test): Disable -Wdiv-by-zero around some calls to
22951         fwrite_unlocked and fread_unlocked.
22952
22953         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
22954         (DIAG_POP_NEEDS_COMMENT): Likewise.
22955         (_DIAG_STR1): Likewise.
22956         (_DIAG_STR): Likewise.
22957         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
22958         * stdio-common/bug21.c: Include <libc-internal.h>.
22959         (do_test): Disable -Wformat around call to sscanf.
22960         * stdio-common/scanf14.c: Include <libc-internal.h>.
22961         (main): Disable -Wformat around some calls to scanf functions.
22962
22963 2014-12-09  Torvald Riegel  <triegel@redhat.com>
22964
22965         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
22966
22967 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22968
22969         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
22970         stack variable alignment.
22971
22972 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
22973
22974         [BZ #17682]
22975         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
22976         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
22977         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
22978         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
22979         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
22980         __getrlimit instead of getrlimit.
22981         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
22982         __gettimeofday instead of gettimeofday.
22983         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
22984         Likewise.
22985         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
22986         Likewise.
22987         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
22988         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
22989         Remove variable.
22990         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
22991         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
22992
22993 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22994
22995         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
22996         for wide-character tests.
22997
22998 2014-12-04  Roland McGrath  <roland@hack.frob.com>
22999
23000         * io/openat64.c: #include <libc-internal.h>
23001         (__openat64): Prototypify.  Use ignore_value on MODE.
23002         * io/openat.c: Likewise.
23003         * misc/reboot.c: #include <libc-internal.h>
23004         (reboot): Prototypify.  Use ignore_value on HOWTO.
23005         * misc/ptrace.c: #include <libc-internal.h>
23006         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
23007
23008 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
23009
23010         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
23011         XPG4, UNIX98 and XOPEN2K.
23012         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
23013         Remove variable.
23014         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
23015
23016 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23017
23018         * libio/fileops.c: Use ISO C style for function definitions.
23019         * libio/iofopen.c: Likewise.
23020         * libio/wfileops.c: Likewise.
23021
23022         [BZ #17653]
23023         * libio/fileops.c (_IO_new_file_underflow): Unset cached
23024         offset on EOF.
23025         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
23026         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
23027         (fgets_func): Function pointer to fgets and fgetws.
23028         (do_ftell_test): Add test to verify ftell value after read
23029         EOF.
23030         (do_test): Set fgets_func.
23031
23032         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
23033         O_TRUNC flag for w and w+ modes.
23034         (do_rewind_test): Likewise.
23035         (do_ftell_test): Likewise.
23036         (do_write_test): Likewise.
23037
23038         [BZ #17647]
23039         * libio/fileops.c (do_ftell): Seek only when there are
23040         unflushed writes.
23041         * libio/wfileops.c (do_ftell_wide): Likewise.
23042         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
23043         test case.
23044         (do_one_test): Call it.
23045
23046 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
23047
23048         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
23049         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
23050         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
23051         Remove variable.
23052         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
23053         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
23054         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
23055
23056 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23057
23058         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
23059         Remove variable.
23060         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
23061
23062         [BZ #17668]
23063         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
23064         as weak alias of __getifaddrs.  Use libc_hidden_weak.
23065         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23066         __freeifaddrs.  Use libc_hidden_weak.
23067         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
23068         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
23069         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23070         __freeifaddrs.  Use libc_hidden_weak.
23071         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
23072         __getifaddrs and define as weak alias of __getifaddrs.  Use
23073         libc_hidden_weak.
23074         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23075         __freeifaddrs.  Use libc_hidden_weak.
23076         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
23077         Remove variable.
23078         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
23079         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
23080
23081 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23082
23083         [BZ #17601]
23084         * sysdeps/mips/start.S (__start): Use indirect jump to call
23085         __libc_start_main.
23086
23087 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23088
23089         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
23090
23091         * nptl/tst-mutex1.c: Include <stdbool.h>.
23092         [!ATTR] (ATTR_NULL): New macro.
23093         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
23094         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
23095         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
23096
23097         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
23098         to char *.
23099
23100         [BZ #17665]
23101         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
23102         Change conditional to [__USE_MISC].
23103
23104         [BZ #17664]
23105         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
23106         fgets_unlocked.
23107         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
23108         __fgets_unlocked.
23109         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
23110         fgets_unlocked.
23111         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
23112         Remove variable.
23113         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
23114         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
23115         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
23116         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
23117         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
23118         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
23119         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
23120         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
23121         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
23122
23123         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
23124
23125 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23126
23127         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23128         Remove strpbrk objects.
23129         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23130         (__libc_ifunc_impl_list): Remove strpbrk implementation.
23131         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
23132         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
23133         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
23134         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
23135
23136         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23137         Remove strcspn objects.
23138         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23139         (__libc_ifunc_impl_list): Remove strcspn implementation.
23140         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
23141         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
23142         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
23143         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
23144
23145         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23146         Remove strspn objetcs.
23147         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23148         (__libc_ifunc_impl_list): Remove strspn implementation.
23149         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
23150         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23151         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
23152         * sysdeps/powerpc/powerpc64/strspn.S: New file.
23153
23154 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
23155
23156         [BZ #17581]
23157         * malloc/hooks.c
23158         (mem2mem_check): Add a terminator to the chain of checking blocks.
23159         (malloc_check_get_size): Use it here.
23160         (mem2chunk_check): Ditto.
23161
23162 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23163
23164         * sysdeps/powerpc/powerpc64/strtok.S: New file.
23165         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
23166
23167 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
23168
23169         * bits/ioctl-types.h: Indent preprocessor directives correctly.
23170
23171         * nptl/nptl-init.c: Include libc-internal.h.
23172         (__pthread_initialize_minimal_internal): Use ROUND_UP.
23173
23174         * elf/ldconfig.c (search_dir): Expand comment.
23175
23176 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
23177
23178         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
23179         variable.
23180         (linknamespace-symlist-stdlibs-tests): Likewise.
23181         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
23182         instead of $(objpfx)symlist-stdlibs.
23183         (linknamespace-libs-isoc): New variable.
23184         (linknamespace-libs): Use $(linknamespace-libs-isoc).
23185         (linknamespace-libs-ISO): New variable.
23186         (linknamespace-libs-ISO99): Likewise.
23187         (linknamespace-libs-ISO11): Likewise.
23188         (linknamespace-libs-XPG3): Likewise.
23189         (linknamespace-libs-XPG4): Likewise.
23190         (linknamespace-libs-POSIX): Likewise.
23191         (linknamespace-libs-UNIX98): Likewise.
23192         (linknamespace-libs-XOPEN2K): Likewise.
23193         (linknamespace-libs-POSIX2008): Likewise.
23194         (linknamespace-libs-XOPEN2K8): Likewise.
23195         ($(objpfx)symlist-stdlibs): Replace by
23196         $(linknamespace-symlist-stdlibs-tests).  Use
23197         $(linknamespace-libs-$*) as set of libraries.
23198         ($(linknamespace-header-tests)): Update dependencies.  Use
23199         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
23200         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
23201         * conform/linknamespace.pl: Remove comment about considering
23202         definitions of symbols from irrelevant libraries.
23203
23204 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
23205
23206         [BZ #13862]
23207         * elf/dl-tls.c: Include <atomic.h>.
23208         (oom): Remove #ifdef SHARED/#endif.
23209         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
23210         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
23211         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
23212         big enough.
23213         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
23214         * nptl/Makefile (tests): Add tst-stack4.
23215         (modules-names): Add tst-stack4mod.
23216         ($(objpfx)tst-stack4): New.
23217         (tst-stack4mod.sos): Likewise.
23218         ($(objpfx)tst-stack4.out): Likewise.
23219         ($(tst-stack4mod.sos)): Likewise.
23220         (clean): Likewise.
23221         * nptl/tst-stack4.c: New file.
23222         * nptl/tst-stack4mod.c: Likewise.
23223
23224 2014-11-27  J. Brown  <jb999@gmx.de>
23225
23226         * sysdeps/x86/bits/string.h: Add recent CPUs.
23227
23228 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23229
23230         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
23231         sigblock.
23232
23233         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
23234         feof.
23235
23236         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
23237         variable.
23238
23239 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
23240
23241         * nscd/connections.c: Include libc-internal.h because of macro
23242         usage ignore_value.
23243
23244 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23245
23246         * string/bits/string3.h (__warn_memset_zero_len): Don't
23247         declare for gcc newer than 5.0.
23248         (memset): Don't test for zero-length __LEN for gcc newer than
23249         5.0.
23250
23251 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23252
23253         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
23254         size_t for %zu format.
23255
23256         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
23257         difference, not %ju.
23258
23259 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23260
23261         * include/libc-internal.h (ignore_value): New macro.
23262         * nscd/connections.c (restart): Wrap calls to setuid and setgid
23263         with ignore_value.
23264
23265         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
23266         definition.
23267
23268         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
23269         pthread_cleanup_push to void *.
23270
23271         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
23272         Undefine.
23273
23274         [BZ #16619]
23275         [BZ #16740]
23276         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
23277         instead of 1L << 52.
23278
23279         * libio/bug-rewind.c (do_test): Check fwscanf return values.
23280         * libio/bug-rewind2.c (do_test): Likewise.
23281
23282         * debug/test-stpcpy_chk-ifunc.c: Remove file.
23283         * debug/test-strcpy_chk-ifunc.c: Likewise.
23284         * wcsmbs/test-wcschr-ifunc.c: Likewise.
23285         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
23286         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
23287         * wcsmbs/test-wcslen-ifunc.c: Likewise.
23288         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
23289         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
23290         * Rules [$(multi-arch) = no] (tests): Do not filter out
23291         $(tests-ifunc).
23292         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
23293         * debug/Makefile (tests-ifunc): Remove variable.
23294         (tests): Do not add $(tests-ifunc).
23295         * wcsmbs/Makefile (tests-ifunc): Remove variable.
23296         (tests): Do not add $(tests-ifunc).
23297         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
23298         [TEST_IFUNC]: Remove conditionals.
23299         * string/test-string.h (TEST_IFUNC): Remove macro.
23300         [TEST_IFUNC]: Remove conditionals.
23301
23302         * string/test-strchr.c [!WIDE] (L): New macro.
23303         [WIDE] (L): Likewise.
23304         (check1): Use CHAR instead of char.  Use L on string and character
23305         constants.
23306
23307 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
23308
23309         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
23310         tests.
23311         * sysdeps/powerpc/bits/atomic.h
23312         (__arch_atomic_exchange_and_add_32_acq): Add definition.
23313         (__arch_atomic_exchange_and_add_32_rel): Likewise.
23314         (atomic_exchange_and_add_acq): Likewise.
23315         (atomic_exchange_and_add_rel): Likewise.
23316         * sysdeps/powerpc/powerpc32/bits/atomic.h
23317         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23318         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23319         * sysdeps/powerpc/powerpc64/bits/atomic.h
23320         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23321         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23322
23323 2014-11-26  Torvald Riegel  <triegel@redhat.com>
23324
23325         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
23326         Change synchronization of __sched_fifo_min_prio and
23327         __sched_fifo_max_prio.
23328         * nptl/pthread_mutexattr_getprioceiling.c
23329         (pthread_mutexattr_getprioceiling): Likewise.
23330         * nptl/pthread_mutexattr_setprioceiling.c
23331         (pthread_mutexattr_setprioceiling): Likewise.
23332         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23333         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
23334         Likewise.
23335
23336 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23337
23338         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
23339         void.
23340
23341 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23342
23343         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
23344         third argument const.
23345
23346 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23347
23348         fnmatch: work around GCC compiler warning bug with uninit var
23349         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
23350         This works around a bug with x86-64 GCC 4.9.2 and earlier
23351         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
23352         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
23353         used uninitialized in this function [-Wmaybe-uninitialized]".
23354
23355 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23356
23357         * posix/bug-regex31.c (main): Return RES not 0.
23358
23359 2014-11-25  Anton Blanchard <anton@samba.org>
23360
23361         * sysdeps/powerpc/bits/atomic.h
23362         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
23363
23364 2014-11-24  Sterling Augustine  <saugustine@google.com>
23365
23366         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
23367
23368 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
23369
23370         [BZ #17608]
23371         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
23372
23373 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
23374
23375         [BZ #17633]
23376         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
23377         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
23378         variable.
23379         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
23380         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
23381
23382 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23383
23384         * string/strncpy.c (strncpy): Improve performance by using memset.
23385
23386 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23387
23388         * string/strcpy.c (strcpy):
23389         Improve performance by using strlen and memcpy.
23390
23391 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
23392
23393         * string/strcoll_l.c (get_next_seq): __always_inline.
23394         * string/strcoll_l.c (do_compare): __always_inline.
23395
23396 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
23397
23398         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
23399         defined.
23400         * include/mqueue.h: Likewise.
23401         * include/stdlib.h: Likewise.
23402
23403         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
23404         (get_null_defines): Adjust.
23405         * sunrpc/Makefile: Adjust comment.
23406         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
23407         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
23408         (CFLAGS-interp.c): Likewise.
23409         (CFLAGS-ldconfig.c): Likewise.
23410         (CPPFLAGS-.os): Likewise.
23411         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
23412         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
23413         * extra-modules.mk (extra-modules.mk): Likewise.
23414         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
23415         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
23416         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
23417         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
23418         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
23419         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
23420         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
23421         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
23422         * iconvdata/Makefile (CPPFLAGS): Likewise.
23423         (cpp-srcs-left): Add libof for all iconvdata routines.
23424         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
23425         * include/assert.h: Likewise.
23426         * include/ctype.h: Likewise.
23427         * include/errno.h: Likewise.
23428         * include/libc-symbols.h: Likewise.
23429         * include/math.h: Likewise.
23430         * include/netdb.h: Likewise.
23431         * include/resolv.h: Likewise.
23432         * include/stdio.h: Likewise.
23433         * include/stdlib.h: Likewise.
23434         * include/string.h: Likewise.
23435         * include/sys/stat.h: Likewise.
23436         * include/wctype.h: Likewise.
23437         * intl/l10nflist.c: Likewise.
23438         * libidn/idn-stub.c: Likewise.
23439         * libio/libioP.h: Likewise.
23440         * nptl/libc_multiple_threads.c: Likewise.
23441         * nptl/pthreadP.h: Likewise.
23442         * posix/regex_internal.h: Likewise.
23443         * resolv/res_hconf.c: Likewise.
23444         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
23445         * sysdeps/arm/memmove.S: Likewise.
23446         * sysdeps/arm/sysdep.h: Likewise.
23447         * sysdeps/generic/_itoa.h: Likewise.
23448         * sysdeps/generic/symbol-hacks.h: Likewise.
23449         * sysdeps/gnu/errlist.awk: Likewise.
23450         * sysdeps/gnu/errlist.c: Likewise.
23451         * sysdeps/i386/i586/memcpy.S: Likewise.
23452         * sysdeps/i386/i586/memset.S: Likewise.
23453         * sysdeps/i386/i686/memcpy.S: Likewise.
23454         * sysdeps/i386/i686/memmove.S: Likewise.
23455         * sysdeps/i386/i686/mempcpy.S: Likewise.
23456         * sysdeps/i386/i686/memset.S: Likewise.
23457         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
23458         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
23459         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
23460         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
23461         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
23462         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
23463         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
23464         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
23465         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
23466         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
23467         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
23468         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
23469         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
23470         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
23471         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
23472         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
23473         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
23474         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
23475         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
23476         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
23477         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
23478         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
23479         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
23480         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
23481         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
23482         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
23483         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
23484         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
23485         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
23486         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
23487         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
23488         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
23489         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
23490         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
23491         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
23492         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
23493         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
23494         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
23495         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
23496         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
23497         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
23498         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
23499         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
23500         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
23501         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
23502         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
23503         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
23504         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
23505         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
23506         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
23507         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
23508         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
23509         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
23510         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
23511         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
23512         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
23513         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
23514         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
23515         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
23516         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
23517         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
23518         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
23519         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
23520         * sysdeps/nptl/bits/libc-lock.h: Likewise.
23521         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
23522         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
23523         * sysdeps/posix/closedir.c: Likewise.
23524         * sysdeps/posix/opendir.c: Likewise.
23525         * sysdeps/posix/readdir.c: Likewise.
23526         * sysdeps/posix/rewinddir.c: Likewise.
23527         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
23528         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
23529         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
23530         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
23531         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
23532         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
23533         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
23534         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
23535         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
23536         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
23537         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
23538         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
23539         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
23540         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
23541         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
23542         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
23543         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
23544         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
23545         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
23546         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
23547         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
23548         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
23549         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
23550         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
23551         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
23552         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
23553         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
23554         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
23555         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
23556         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
23557         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
23558         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
23559         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
23560         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
23561         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
23562         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
23563         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
23564         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
23565         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
23566         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
23567         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
23568         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
23569         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
23570         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23571         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
23572         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
23573         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
23574         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
23575         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
23576         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
23577         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
23578         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
23579         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
23580         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
23581         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
23582         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
23583         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
23584         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
23585         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
23586         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
23587         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23588         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
23589         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
23590         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
23591         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
23592         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23593         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
23594         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
23595         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
23596         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
23597         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23598         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
23599         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
23600         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
23601         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
23602         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
23603         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
23604         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
23605         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23606         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
23607         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
23608         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
23609         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
23610         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
23611         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
23612         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
23613         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
23614         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
23615         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
23616         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
23617         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
23618         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
23619         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
23620         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
23621         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
23622         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
23623         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
23624         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
23625         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
23626         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
23627         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23628         * sysdeps/unix/alpha/sysdep.S: Likewise.
23629         * sysdeps/unix/alpha/sysdep.h: Likewise.
23630         * sysdeps/unix/make-syscalls.sh: Likewise.
23631         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
23632         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
23633         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
23634         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
23635         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
23636         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
23637         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
23638         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
23639         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
23640         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
23641         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
23642         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
23643         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23644         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
23645         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
23646         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
23647         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23648         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
23649         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
23650         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
23651         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
23652         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
23653         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
23654         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
23655         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
23656         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
23657         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
23658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
23659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
23660         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
23661         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
23662         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
23663         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
23664         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23665         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
23666         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
23667         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
23668         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23669         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
23670         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
23671         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
23672         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
23673         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23674         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
23675         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
23676         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
23677         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
23678         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
23679         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
23680         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
23681         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
23682         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
23683         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
23684         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
23685         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
23686         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
23687         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
23688         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
23689         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
23690         * sysdeps/x86_64/memcpy.S: Likewise.
23691         * sysdeps/x86_64/memmove.c: Likewise.
23692         * sysdeps/x86_64/memset.S: Likewise.
23693         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
23694         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
23695         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
23696         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
23697         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
23698         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
23699         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
23700         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
23701         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
23702         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
23703         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
23704         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
23705         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
23706         * sysdeps/x86_64/multiarch/memset.S: Likewise.
23707         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
23708         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
23709         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
23710         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
23711         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
23712         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
23713         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
23714         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
23715         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
23716         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
23717         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
23718         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
23719         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
23720         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
23721         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
23722         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
23723         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
23724         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
23725         * sysdeps/x86_64/strcmp.S: Likewise.
23726
23727         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
23728
23729         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
23730         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
23731         * elf/rtld-Rules: Likewise.
23732         * elf/setup-vdso.h: Likewise.
23733         * include/assert.h: Likewise.
23734         * include/bits/stdlib-float.h: Likewise.
23735         * include/errno.h: Likewise.
23736         * include/sys/stat.h: Likewise.
23737         * include/unistd.h: Likewise.
23738         * sysdeps/aarch64/setjmp.S: Likewise.
23739         * sysdeps/alpha/setjmp.S: Likewise.
23740         * sysdeps/arm/__longjmp.S: Likewise.
23741         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
23742         * sysdeps/arm/setjmp.S: Likewise.
23743         * sysdeps/arm/sysdep.h: Likewise.
23744         * sysdeps/generic/_itoa.h: Likewise.
23745         * sysdeps/generic/dl-sysdep.h: Likewise.
23746         * sysdeps/generic/ldsodefs.h: Likewise.
23747         * sysdeps/i386/dl-tls.h: Likewise.
23748         * sysdeps/i386/setjmp.S: Likewise.
23749         * sysdeps/m68k/setjmp.c: Likewise.
23750         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
23751         * sysdeps/mach/hurd/opendir.c: Likewise.
23752         * sysdeps/posix/getcwd.c: Likewise.
23753         * sysdeps/posix/opendir.c: Likewise.
23754         * sysdeps/posix/profil.c: Likewise.
23755         * sysdeps/powerpc/dl-procinfo.h: Likewise.
23756         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
23757         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
23758         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
23759         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
23760         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
23761         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
23762         * sysdeps/s390/dl-tls.h: Likewise.
23763         * sysdeps/s390/s390-32/setjmp.S: Likewise.
23764         * sysdeps/s390/s390-64/setjmp.S: Likewise.
23765         * sysdeps/sh/sh3/setjmp.S: Likewise.
23766         * sysdeps/sh/sh4/setjmp.S: Likewise.
23767         * sysdeps/unix/alpha/sysdep.h: Likewise.
23768         * sysdeps/unix/arm/sysdep.S: Likewise.
23769         * sysdeps/unix/i386/sysdep.S: Likewise.
23770         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
23771         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
23772         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
23773         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
23774         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23775         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
23776         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
23777         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23778         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
23779         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
23780         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
23781         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
23782         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
23783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
23784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23785         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
23786         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
23787         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
23788         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
23789         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
23790         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
23791         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
23792         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
23793         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
23794         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
23795         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
23796         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
23797         * sysdeps/unix/x86_64/sysdep.S: Likewise.
23798         * sysdeps/x86_64/setjmp.S: Likewise.
23799
23800         * include/math.h: Use IS_IN instead of IS_IN_libm.
23801         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
23802         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
23803         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
23804         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
23805         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
23806         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
23807         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
23808         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
23809         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
23810         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
23811         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
23812         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
23813         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
23814         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
23815         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
23816         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
23817         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
23818         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
23819         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
23820         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
23821         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
23822         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
23823         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
23824         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
23825         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
23826         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
23827         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
23828         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
23829         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
23830         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
23831         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
23832         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
23833         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
23834         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
23835         Likewise.
23836         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
23837         Likewise.
23838         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
23839         Likewise.
23840         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
23841         Likewise.
23842         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
23843         Likewise.
23844         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
23845         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
23846         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
23847         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
23848         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
23849         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
23850         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
23851         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
23852         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
23853         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
23854         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
23855         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
23856         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
23857         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
23858         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
23859         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
23860         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
23861         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
23862         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
23863         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
23864         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
23865         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
23866         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
23867         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
23868         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
23869         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
23870         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
23871
23872         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
23873         * nptl/pthreadP.h: Likewise.
23874         * nptl_db/structs.def: Likewise.
23875         * sysdeps/arm/sysdep.h: Likewise.
23876         * sysdeps/nptl/bits/libc-lock.h: Likewise.
23877         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
23878         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
23879         * sysdeps/unix/alpha/sysdep.h: Likewise.
23880         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
23881         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
23882         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
23883         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
23884         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
23885         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
23886         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
23887         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
23888         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23889         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
23890         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
23891         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
23892         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
23893         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
23894         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
23895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
23896         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
23897         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
23898         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
23899         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
23900         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
23901         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
23902         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
23903         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
23904         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
23905         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
23906
23907         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
23908         * nptl/pthreadP.h: Likewise.
23909         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
23910         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
23911         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
23912         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
23913         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
23914         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
23915         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
23916         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
23917         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
23918         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
23919         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
23920         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
23921         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
23922         Likewise.
23923         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
23924         Likewise.
23925         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
23926         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
23927         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
23928         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
23929         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
23930         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
23931         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
23932         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
23933
23934         * dlfcn/dladdr.c: Use IS_IN.
23935         * dlfcn/dladdr1.c: Likewise.
23936         * dlfcn/dlclose.c: Likewise.
23937         * dlfcn/dlerror.c: Likewise.
23938         * dlfcn/dlinfo.c: Likewise.
23939         * dlfcn/dlmopen.c: Likewise.
23940         * dlfcn/dlopen.c: Likewise.
23941         * dlfcn/dlsym.c: Likewise.
23942         * dlfcn/dlvsym.c: Likewise.
23943
23944         * include/ifaddrs.h: Use IS_IN.
23945         * inet/check_pf.c: Likewise.
23946         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
23947         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
23948
23949         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
23950         IS_IN_ldconfig.
23951         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
23952         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
23953
23954         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
23955         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
23956         IS_IN (libc).
23957
23958         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
23959
23960         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
23961         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
23962         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
23963         * include/libc-symbols.h (IS_IN_LIB): New macro.
23964         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
23965         * include/netdb.h: Likewise.
23966         * include/stap-probe.h: Remove all uses of IN_LIB.
23967
23968         * Makeconfig (module-cppflags-real): Define MODULE_NAME
23969         instead of IN_MODULE.
23970         * include/libc-symbols.h (IN_MODULE): Define using
23971         MODULE_NAME.
23972         (PASTE_NAME, PASTE_NAME1): New macros.
23973         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
23974         of IN_LIB.
23975         (STAP_PROBE_ASM): Likewise.
23976
23977 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23978
23979         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
23980         __mach_init in dlopened libc.
23981
23982 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
23983
23984         * sysdeps/arm/preconfigure.ac: Delete EABI check.
23985         * sysdeps/arm/preconfigure: Regenerate.
23986
23987 2014-11-21  Roland McGrath  <roland@hack.frob.com>
23988
23989         * nptl/pthread_create.c (__pthread_create_2_1): Set
23990         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
23991         when copying values from IATTR into PD.
23992
23993 2014-11-21  Will Newton  <will.newton@linaro.org>
23994             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
23995
23996         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
23997         Refactor inline-asm.  Also add comment.
23998
23999         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
24000         ElfW macro instead of hardcoded Elf64 types.
24001         (la_aarch64_gnu_pltenter): Likewise.
24002         * sysdeps/aarch64/dl-machine.h
24003         (elf_machine_runtime_setup): Use ElfW(Addr).
24004
24005         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
24006         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
24007         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
24008         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
24009         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
24010         (R_AARCH64_TLS_DTPMOD64): Rename to ..
24011         (R_AARCH64_TLS_DTPMOD): This.
24012         (R_AARCH64_TLS_DTPREL64): Rename to ...
24013         (R_AARCH64_TLS_DTPREL): This.
24014         (R_AARCH64_TLS_TPREL64): Rename to ...
24015         (R_AARCH64_TLS_TPREL): This.
24016         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
24017         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
24018         R_AARCH64_TLS_TPREL64.
24019         (elf_machine_rela): Likewise.
24020
24021 2014-11-21  Torvald Riegel  <triegel@redhat.com>
24022
24023         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
24024         by setting it to 0.  64b atomics are not supported currently.
24025
24026 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24027
24028         [BZ #16469]
24029         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
24030         search domain names.
24031
24032 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24033
24034         [BZ #16469]
24035         * NEWS: Update.
24036         * resolv/res_query.c (__libc_res_nquerydomain): Retain
24037         trailing dot.
24038         * posix/tst-getaddrinfo5.c: New.
24039         * posix/Makefile (tests): Add it.
24040
24041 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24042
24043         [BZ #14498]
24044         * NEWS: Fixed.
24045         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
24046         after parsing line but before break_if_match.
24047         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
24048         if there is a protocol mismatch.
24049
24050 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
24051
24052         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
24053         because the potential race is on the user-supplied stream.
24054
24055 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24056
24057         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
24058         string literal if not passed a buffer.
24059         * manual/job.texi (ctermid): Update reasoning, note deviation
24060         from posix, suggest mtasurace when not passed a buffer, for
24061         future non-preliminary safety notes.
24062
24063 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24064
24065         * manual/users.texi (cuserid): Fix MT-Safety note for the case
24066         of not passing it a buffer.
24067         Reported by Peng Haitao.
24068
24069 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24070
24071         * manual/Makefile ($(objpfx)stamp-summary): Require
24072         check-safety.sh to pass.
24073         * manual/check-safety.sh: Wish for verification that every
24074         @deftypefn and @deftypefun is followed by a @safety remark.
24075
24076 2014-11-20  Roland McGrath  <roland@hack.frob.com>
24077
24078         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
24079
24080         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
24081         PTHREAD_CANCEL_ASYNCHRONOUS.
24082         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
24083         send SIGCANCEL.
24084
24085         * nptl/default-sched.h: New file.
24086         * sysdeps/unix/sysv/linux/default-sched.h: New file.
24087         * nptl/pthread_create.c: Include it.
24088         (__pthread_create_2_1): Use collect_default_sched instead of making
24089         Linux syscalls here directly.
24090
24091 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24092
24093         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
24094         __pthread_once): Use C11 atomics.
24095
24096 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24097
24098         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
24099
24100 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24101
24102         * include/atomic.h (__atomic_link_error, __atomic_check_size,
24103         atomic_thread_fence_acquire, atomic_thread_fence_release,
24104         atomic_thread_fence_seq_cst, atomic_load_relaxed,
24105         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
24106         atomic_compare_exchange_weak_relaxed,
24107         atomic_compare_exchange_weak_acquire,
24108         atomic_compare_exchange_weak_release,
24109         atomic_exchange_acquire, atomic_exchange_release,
24110         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
24111         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
24112         atomic_fetch_and_acquire,
24113         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
24114
24115 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24116
24117         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
24118         USE_ATOMIC_COMPILER_BUILTINS): Define.
24119         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
24120         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24121         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
24122         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24123         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
24124         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24125         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
24126         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24127         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
24128         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24129         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
24130         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24131         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
24132         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24133         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
24134         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24135         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24136         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24137         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24138         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24139         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
24140         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24141         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24142         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24143         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
24144         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24145         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24146         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24147         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
24148         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24149         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
24150         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24151         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
24152         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24153         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
24154         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24155         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
24156         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24157         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
24158         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24159
24160 2014-11-19  Roland McGrath  <roland@hack.frob.com>
24161
24162         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
24163         the sched_priority value here.  It was already checked when the user
24164         called pthread_attr_setschedparam.
24165
24166         * nptl/tst-bad-schedattr.c: New file.
24167         * nptl/Makefile (tests): Add it.
24168
24169 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
24170             Florian Weimer  <fweimer@redhat.com>
24171             Joseph Myers  <joseph@codesourcery.com>
24172             Adam Conrad  <adconrad@0c3.net>
24173             Andreas Schwab  <schwab@suse.de>
24174             Brooks  <bmoses@google.com>
24175
24176         [BZ #17625]
24177         * wordexp-test.c (__dso_handle): Add prototype.
24178         (__register_atfork): Likewise.
24179         (__app_register_atfork): New function.
24180         (registered_forks): New global.
24181         (register_fork): New function.
24182         (test_case): Add 3 new tests for WRDE_CMDSUB.
24183         (main): Call __app_register_atfork.
24184         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
24185         fork count is non-zero fail the test.
24186         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
24187         is set.
24188         (parse_dollars): Remove check for WRDE_NOCMD.
24189         (parse_dquote): Likewise.
24190
24191 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24192
24193         * Makeconfig (built-modules): List non-library modules to be
24194         built.
24195         (module-cppflags): Include libc-modules.h for
24196         everything except shlib-versions.v.i.
24197         (CPPFLAGS): Use it.
24198         (before-compile): Add libc-modules.h.
24199         ($(common-objpfx)libc-modules.h,
24200         $(common-objpfx)libc-modules.stmp): New targets.
24201         (common-generated): Add libc-modules.h and libc-modules.stmp.
24202         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
24203         * include/libc-symbols.h: Don't include libc-modules.h.
24204         * include/libc-modules.h: Remove file.
24205         * scripts/gen-libc-modules.awk: New script to generate
24206         libc-modules.h.
24207         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
24208         Depend on libc-modules.stmp.
24209
24210         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
24211
24212         * Makeconfig (in-module): Get value of libof set for the
24213         translation unit.
24214         (CPPFLAGS): Use $(in-module).
24215         * Makerules: Don't suffix routine names for nonlib.
24216         * include/libc-modules.h: New file.
24217         * include/libc-symbols.h: Include libc-modules.h
24218         (IS_IN): New macro to replace IS_IN_* macros.
24219         * elf/Makefile: Set libof-* for each routine.
24220         * elf/rtld-Rules: Likewise.
24221         * extra-modules.mk: Likewise.
24222         * iconv/Makefile: Likewise.
24223         * iconvdata/Makefile: Likewise.
24224         * locale/Makefile: Likewise.
24225         * malloc/Makefile: Likewise.
24226         * nss/Makefile: Likewise.
24227         * sysdeps/gnu/Makefile: Likewise.
24228         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
24229         * sysdeps/unix/sysv/linux/Makefile: Likewise.
24230         * sysdeps/s390/s390-64/Makefile: Likewise.
24231         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
24232         CPPFLAGS for nscd instead of nonlib.
24233
24234 2014-11-18  Roland McGrath  <roland@hack.frob.com>
24235
24236         * nptl/createthread.c: New file.
24237
24238         * nptl/createthread.c: Moved ...
24239         * sysdeps/unix/sysv/linux/createthread.c: ... here.
24240
24241         * nptl/createthread.c: Add proper top-line comment.
24242         (do_clone): Folded into ...
24243         (create_thread): ... here.  Take new arguments STOPPED_START and
24244         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
24245         increment __nptl_threads, do event-reporting logic, do
24246         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
24247         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
24248         resource cleanup if sched_setaffinity or sched_setscheduler fails,
24249         just send SIGCANCEL.
24250         * nptl/pthread_create.c: Forward-declare create_thread before
24251         including createthread.c.
24252         (start_thread): Use new macro START_THREAD_DEFN to replace defining
24253         declaration, and new macro START_THREAD_SELF to replace argument.
24254         Remove return statement.
24255         (report_thread_creation): New function.
24256         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
24257         synchronization logic, and __nptl_nthreads increment here, around
24258         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
24259         PD->parent_cancelhandling here, before create_thread.  When
24260         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
24261         __deallocate_stack, and ENOMEM translation here.
24262
24263 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
24264
24265         [BZ #17616]
24266         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
24267         (mptwo): Rename to __mptwo.
24268         (__inv): Use __mptwo instead of mptwo.
24269         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
24270         (mptwo): Rename to __mptwo.
24271         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
24272         of mpone and __mptwo instead of mptwo.
24273         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
24274         instead of mpone.
24275         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
24276         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
24277         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
24278         of mpone and __mptwo instead of mptwo.
24279         (__mpranred): Use __mpone instead of mpone.
24280         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
24281         variable.
24282         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24283         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24284         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24285         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24286         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24287         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24288         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24289         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24290         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24291         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24292         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24293         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24294         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24295         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24296         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24297         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
24298         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
24299         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
24300         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
24301
24302 2014-11-18  Tom de Vries  <tom@codesoucery.com>
24303
24304         * manual/signal.texi (Primitives Interrupted by Signals): In section,
24305         replace BSD Handler xref with BSD Signal Handling.
24306
24307 2014-11-17  Richard Henderson  <rth@redhat.com>
24308
24309         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
24310         (_FP_PACK_RAW_2): Remove.
24311         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
24312         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
24313         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
24314         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
24315         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
24316         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
24317         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
24318         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
24319         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
24320         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
24321         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
24322         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
24323         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
24324         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
24325         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
24326         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
24327
24328 2014-11-14  Roland McGrath  <roland@hack.frob.com>
24329
24330         * signal/signal.h [__USE_MISC]
24331         (struct sigvec): Remove type.
24332         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
24333         (sigvec): Remove declaration.
24334         * sysdeps/posix/sigvec.c: Moved ...
24335         * signal/sigvec.c: ... here, replacing old file.
24336         (struct sigvec): New type, copied from old signal.h definition.
24337         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
24338         (__sigvec): Convert definition to prototype.
24339         (sigvec): Replace weak_alias with compat_symbol.
24340         * signal/Versions (libc: GLIBC_2.21): New version set.
24341         * include/signal.h: Remove __sigvec declaration.
24342         * sysdeps/unix/bsd/sigvec.c: Remove file.
24343         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
24344         * manual/signal.texi (BSD Handler): Remove subsection.
24345         Move siginterrupt up to ...
24346         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
24347         (Blocking in BSD): Fold subsection into its parent.
24348         * NEWS: Mention sigvec removal.
24349
24350 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24351
24352         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
24353         (DLA_FMS): Make definition conditional only on [__FMA4__].
24354         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
24355         definition.
24356
24357         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
24358         Make definition conditional only on [PROF].
24359         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
24360         definition.
24361         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
24362         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
24363
24364         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
24365         !__GNUC__].
24366         * include/signal.h (__sigpause): Move declaration above call to
24367         libc_hidden_proto.
24368         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
24369         variable.
24370         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
24371         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
24372
24373 2014-11-14  David S. Miller  <davem@davemloft.net>
24374
24375         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
24376         Define before including <string/memcpy.c> and <string/mempcpy.c>.
24377
24378 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24379
24380         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
24381         * configure: Regenerated.
24382         * manual/install.texi (Tools for Compilation): Document a
24383         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
24384         compiler verified to work.
24385         * INSTALL: Regenerated.
24386
24387         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
24388         redeclare with asm name.
24389         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
24390         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
24391         including <string.h>.
24392         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24393         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
24394         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24395         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
24396         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24397         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
24398         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
24399
24400 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
24401
24402         * stdlib/strtol.c (__strtol): Use prototype definition.
24403
24404         [BZ #17594]
24405         * stdlib/strtol.c (SYM__): New macro.
24406         (SYM__1): Likewise.
24407         (__strtol): Likewise.
24408         (strtol): Rename to __strtol and define as weak alias of
24409         __strtol.  Use libc_hidden_weak.
24410
24411 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24412
24413         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
24414         Use numbered labels in inline assembly.
24415
24416 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24417
24418         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
24419         Add setjmp LIBC_PROBE.
24420         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
24421         Likewise.
24422         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
24423         Add longjmp, longjmp_target LIBC_PROBE.
24424         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
24425         Likewise.
24426
24427 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24428
24429         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
24430         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
24431         to get rid of unused variable warning.
24432
24433 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
24434
24435         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
24436         Check for unwind_backtrace ==  NULL only in SHARED case.
24437         (__backchain_backtrace): Compile only in SHARED case.
24438         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
24439         Likewise.
24440         (__backchain_backtrace): Declare as static.
24441
24442 2014-11-12  Roland McGrath  <roland@hack.frob.com>
24443
24444         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
24445         (__libc_multiple_threads_ptr): Variable moved ...
24446         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
24447
24448 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
24449
24450         * conform/GlibcConform.pm: New file.
24451         * conform/conformtest.pl: Use GlibcConform module.
24452         * conform/linknamespace.pl: New file.
24453         * conform/list-header-symbols.pl: Likewise.
24454         * conform/Makefile (linknamespace-symlists-base): New variable.
24455         (linknamespace-symlists-tests): Likewise.
24456         (linknamespace-header-base): Likewise.
24457         (linknamespace-header-tests): Likewise.
24458         (tests-special): Add new tests.
24459         ($(linknamespace-symlists-tests)): New rule.
24460         (linknamespace-libs): New variable.
24461         ($(objpfx)symlist-stdlibs): New rule.
24462         ($(linknamespace-header-tests)): Likewise.
24463         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
24464         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
24465         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
24466         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
24467         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
24468         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
24469         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
24470         (test-xfail-ISO/math.h/linknamespace): Likewise.
24471         (test-xfail-ISO/signal.h/linknamespace): Likewise.
24472         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
24473         (test-xfail-ISO/time.h/linknamespace): Likewise.
24474         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24475         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
24476         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24477         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
24478         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
24479         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24480         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24481         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
24482         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24483         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
24484         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
24485         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24486         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
24487         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
24488         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
24489         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24490         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
24491         (test-xfail-XPG3/search.h/linknamespace): Likewise.
24492         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
24493         (test-xfail-XPG3/time.h/linknamespace): Likewise.
24494         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
24495         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
24496         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
24497         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
24498         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
24499         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
24500         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
24501         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
24502         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24503         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
24504         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
24505         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
24506         (test-xfail-XPG4/search.h/linknamespace): Likewise.
24507         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
24508         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
24509         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
24510         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
24511         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
24512         (test-xfail-XPG4/time.h/linknamespace): Likewise.
24513         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
24514         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
24515         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
24516         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
24517         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
24518         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24519         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
24520         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
24521         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
24522         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
24523         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
24524         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
24525         (test-xfail-POSIX/time.h/linknamespace): Likewise.
24526         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
24527         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
24528         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
24529         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
24530         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
24531         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
24532         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
24533         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
24534         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
24535         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24536         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
24537         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
24538         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
24539         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
24540         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
24541         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
24542         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
24543         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
24544         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
24545         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
24546         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
24547         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
24548         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
24549         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
24550         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
24551         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
24552         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
24553         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
24554         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24555         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
24556         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
24557         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
24558         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
24559         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
24560         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
24561         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24562         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
24563         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
24564         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
24565         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
24566         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
24567         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
24568         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
24569         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
24570         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
24571         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
24572         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
24573         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
24574         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
24575         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
24576         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
24577         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24578         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
24579         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
24580         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
24581         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
24582         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
24583         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24584         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
24585         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
24586         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
24587         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
24588         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24589         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
24590         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
24591         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
24592         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
24593         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
24594         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
24595         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
24596         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
24597         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
24598         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
24599         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
24600         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
24601         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
24602         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
24603         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
24604         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
24605         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
24606         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
24607         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
24608         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
24609         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
24610         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
24611         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
24612         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
24613         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
24614         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
24615         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
24616         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
24617         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
24618         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
24619         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
24620         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
24621         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
24622         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
24623         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
24624
24625         [BZ #17589]
24626         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
24627         of fgets_unlocked.
24628
24629         [BZ #17585]
24630         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
24631         (memmem): Rename to __memmem and define as weak alias of
24632         __memmem.  Use libc_hidden_weak.
24633         (__memmem): Use libc_hidden_def.
24634         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
24635         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
24636         memmem.
24637
24638         [BZ #17582]
24639         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
24640         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
24641         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
24642         and define as weak alias of __fgets_unlocked.  Use
24643         libc_hidden_weak.
24644         (__fgets_unlocked): Use libc_hidden_def.
24645         * include/stdio.h (__fgets_unlocked): Declare.  Use
24646         libc_hidden_proto.
24647         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
24648         __fgets_unlocked instead of fgets_unlocked.
24649         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
24650         (GET_NPROCS_CONF_PARSER): Likewise.
24651         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
24652         (GET_NPROCS_CONF_PARSER): Likewise.
24653
24654         [BZ #17574]
24655         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
24656         weak alias of __wmemset.  Use libc_hidden_weak.
24657         (__wmemset): Use libc_hidden_def.
24658         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
24659         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
24660         of wmemset.
24661
24662         [BZ #17573]
24663         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
24664         with asm name __mempcpy.
24665         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
24666
24667         [BZ #17572]
24668         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
24669         and define as weak alias of __rawmemchr.
24670         (__rawmemchr): Do not define as strong alias of rawmemchr.
24671
24672         [BZ #17571]
24673         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
24674         alias of __qsort_r.
24675         (qsort): Call __qsort_r instead of qsort_r.
24676         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
24677         (__qsort_r): Declare.  Call libc_hidden_proto.
24678         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
24679         instead of qsort_r.
24680         * nscd/gai.c (__qsort_r): Define to qsort_r.
24681         * posix/tst-rfc3484.c (__qsort_r): Likewise.
24682         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
24683         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
24684
24685         [BZ #17570]
24686         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
24687         define as weak alias of __malloc_info.
24688
24689         [BZ #17584]
24690         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
24691         as weak alias of __rewinddir.  Don't use libc_hidden_def.
24692         (__rewinddir): Use libc_hidden_def.
24693         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
24694         as weak alias of __rewinddir.  Don't use libc_hidden_def.
24695         (__rewinddir): Use libc_hidden_def.
24696         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
24697         weak alias of __rewinddir.  Don't use libc_hidden_def.
24698         (__rewinddir): Use libc_hidden_def.
24699         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
24700         (__rewinddir): Use libc_hidden_proto.
24701         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
24702         rewinddir.
24703         (__getcwd): Use __rewinddir instead of rewinddir.
24704
24705         [BZ #17583]
24706         * libio/fileno.c (fileno): Rename to __fileno and define as weak
24707         alias of __fileno.  Use libc_hidden_weak.
24708         (__fileno): Use libc_hidden_def.
24709         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
24710         * libio/ftello.c (ftello): Rename to __ftello and define as weak
24711         alias of __ftello.
24712         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
24713         __ftello.
24714         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
24715         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
24716         libc_hidden_def.
24717         (fread_unlocked): Don't use libc_hidden_ver.
24718         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
24719         and define as weak alias of __fread_unlocked.  Don't use
24720         libc_hidden_def.
24721         (__fread_unlocked): Use libc_hidden_def.
24722         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
24723         (ftello): Don't use libc_hidden_proto.
24724         (__ftello): Declare.  Use libc_hidden_proto.
24725         (fread_unlocked): Don't use libc_hidden_proto.
24726         (__fread_unlocked): Declare.  Use libc_hidden_proto.
24727         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
24728         and __ftello instead of fileno, fread_unlocked and ftello.
24729
24730 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
24731
24732         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
24733         GOT12.
24734         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
24735         Likewise.
24736         (_dl_start_user): Likewise.
24737         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
24738
24739 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
24740             Siddhesh Poyarekar  <siddhesh@redhat.com>
24741
24742         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
24743         Move argv and envp down instead of moving argc up.
24744         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
24745
24746 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
24747
24748         [BZ #17506]
24749         * test-skeleton.c (main): Return successful if one of
24750         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
24751         * string/tst-strcoll-overflow.c: Define expected status.
24752
24753 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
24754
24755         [BZ #17475]
24756         * locale/iso-639.def: Define Bhili and Tulu language codes.
24757
24758 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
24759
24760         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
24761
24762 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
24763
24764         [BZ #17555]
24765         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
24766
24767 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
24768
24769         * configure.ac: Updated check of minimal required version to
24770         2.22.
24771         * manual/install.texi (Tools for Compilation): Updated version
24772         number.
24773         * configure: Regenerated.
24774         * INSTALL: Likewise.
24775
24776 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
24777
24778         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
24779         __tls_get_addr.
24780
24781 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
24782
24783         * include/sys/wait.h (__libc_waitpid): Remove declaration.
24784         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
24785         (__waitpid): Don't define as alias.  Use libc_hidden_def not
24786         libc_hidden_weak.
24787         (waitpid): Define as alias of __waitpid.
24788         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
24789         __waitpid.
24790         (__waitpid): Don't define as alias.  Use libc_hidden_def not
24791         libc_hidden_weak.
24792         (waitpid): Define as alias of __waitpid.
24793         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
24794         __libc_waitpid alias.
24795         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
24796         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
24797         Likewise.
24798         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
24799         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
24800         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
24801         alias.
24802         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
24803         __waitpid.
24804         (__waitpid): Don't define as alias.  Use libc_hidden_def not
24805         libc_hidden_weak.
24806         (waitpid): Define as alias of __waitpid.
24807
24808 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
24809
24810         * manual/llio.texi: Add comment that write safety has been
24811         fixed in Linux.
24812
24813         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
24814         (localplt-build-dso): Add elf/ld.so.
24815         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
24816         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
24817         and free for ld.so.
24818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
24819         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
24820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
24821         Likewise.
24822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
24823         Likewise.
24824         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
24825         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
24826         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
24827         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
24828         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
24829         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
24830         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
24831         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
24832         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
24833         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
24834         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
24835
24836 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
24837
24838         [BZ #14132]
24839         * include/libc-symbols.h (INTUSE): Remove macro.
24840         (INTDEF): Likewise.
24841         (INTVARDEF): Likewise.
24842         (_INTVARDEF): Likewise.
24843         (INTDEF2): Likewise.
24844         (INTVARDEF2): Likewise.
24845         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
24846         rtld_hidden_def instead of INTVARDEF.
24847         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
24848         (_dl_starting_up_internal): Remove declaration.
24849         (_dl_starting_up): Use rtld_hidden_proto.
24850         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
24851         declaration.
24852         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
24853         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
24854         _dl_starting_up.
24855         * elf/dl-writev.h (_dl_writev): Likewise.
24856         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
24857         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
24858         _dl_starting_up_internal.
24859
24860 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24861
24862         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
24863         test-skeleton.c.
24864
24865 2014-11-05  Will Newton  <will.newton@linaro.org>
24866
24867         * benchtests/Makefile: (bench-malloc): Add malloc thread
24868         scalability benchmark.
24869         * benchtests/bench-malloc-threads.c: New file.
24870
24871 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
24872
24873         * sysdeps/aarch64/strchrnul.S: New file.
24874
24875 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24876
24877         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
24878         definition.
24879         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
24880         Likwise.
24881         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
24882         Likewise.
24883         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
24884         Likewise.
24885         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
24886         Likewise.
24887         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
24888         Likewise.
24889
24890 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
24891
24892         * catgets/test-gencat.c: Use test-skeleton.c.
24893         * catgets/tst-catgets.c: Likewise.
24894         * csu/tst-empty.c: Likewise.
24895         * elf/tst-audit2.c: Likewise.
24896         * elf/tst-global1.c: Likewise.
24897         * elf/tst-pathopt.c: Likewise.
24898         * elf/tst-piemod1.c: Likewise.
24899         * elf/tst-tls10.c: Likewise.
24900         * elf/tst-tls11.c: Likewise.
24901         * elf/tst-tls12.c: Likewise.
24902         * gnulib/tst-gcc.c: Likewise.
24903         * iconvdata/tst-e2big.c: Likewise.
24904         * iconvdata/tst-loading.c: Likewise.
24905         * iconv/tst-iconv1.c: Likewise.
24906         * iconv/tst-iconv2.c: Likewise.
24907         * inet/test-inet6_opt.c: Likewise.
24908         * inet/tst-gethnm.c: Likewise.
24909         * inet/tst-network.c: Likewise.
24910         * inet/tst-ntoa.c: Likewise.
24911         * intl/tst-codeset.c: Likewise.
24912         * intl/tst-gettext2.c: Likewise.
24913         * intl/tst-gettext3.c: Likewise.
24914         * intl/tst-ngettext.c: Likewise.
24915         * intl/tst-translit.c: Likewise.
24916         * io/test-stat.c: Likewise.
24917         * libio/test-fmemopen.c: Likewise.
24918         * libio/tst-freopen.c: Likewise.
24919         * libio/tst-sscanf.c: Likewise.
24920         * libio/tst-ungetwc1.c: Likewise.
24921         * libio/tst-ungetwc2.c: Likewise.
24922         * libio/tst-widetext.c: Likewise.
24923         * localedata/tst-ctype.c: Likewise.
24924         * localedata/tst-digits.c: Likewise.
24925         * localedata/tst-leaks.c: Likewise.
24926         * localedata/tst-mbswcs1.c: Likewise.
24927         * localedata/tst-mbswcs2.c: Likewise.
24928         * localedata/tst-mbswcs3.c: Likewise.
24929         * localedata/tst-mbswcs4.c: Likewise.
24930         * localedata/tst-mbswcs5.c: Likewise.
24931         * localedata/tst-setlocale.c: Likewise.
24932         * localedata/tst-trans.c: Likewise.
24933         * localedata/tst-wctype.c: Likewise.
24934         * localedata/tst-xlocale1.c: Likewise.
24935         * login/tst-grantpt.c: Likewise.
24936         * malloc/tst-calloc.c: Likewise.
24937         * malloc/tst-malloc.c: Likewise.
24938         * malloc/tst-mallocstate.c: Likewise.
24939         * malloc/tst-mcheck.c: Likewise.
24940         * malloc/tst-mtrace.c: Likewise.
24941         * malloc/tst-obstack.c: Likewise.
24942         * math/atest-exp2.c: Likewise.
24943         * math/atest-exp.c: Likewise.
24944         * math/atest-sincos.c: Likewise.
24945         * math/test-matherr.c: Likewise.
24946         * math/test-misc.c: Likewise.
24947         * math/test-powl.c: Likewise.
24948         * math/tst-definitions.c: Likewise.
24949         * misc/tst-dirname.c: Likewise.
24950         * misc/tst-efgcvt.c: Likewise.
24951         * misc/tst-fdset.c: Likewise.
24952         * misc/tst-hsearch.c: Likewise.
24953         * misc/tst-mntent2.c: Likewise.
24954         * nptl/tst-sem7.c: Likewise.
24955         * nptl/tst-sem8.c: Likewise.
24956         * nptl/tst-sem9.c: Likewise.
24957         * nss/test-netdb.c: Likewise.
24958         * posix/tst-fnmatch.c: Likewise.
24959         * posix/tst-getlogin.c: Likewise.
24960         * posix/tst-gnuglob.c: Likewise.
24961         * posix/tst-mmap.c: Likewise.
24962         * pwd/tst-getpw.c: Likewise.
24963         * resolv/tst-inet_ntop.c: Likewise.
24964         * rt/tst-timer.c: Likewise.
24965         * stdio-common/test-fseek.c: Likewise.
24966         * stdio-common/test-popen.c: Likewise.
24967         * stdio-common/test-vfprintf.c: Likewise.
24968         * stdio-common/tst-cookie.c: Likewise.
24969         * stdio-common/tst-fileno.c: Likewise.
24970         * stdio-common/tst-gets.c: Likewise.
24971         * stdio-common/tst-obprintf.c: Likewise.
24972         * stdio-common/tst-perror.c: Likewise.
24973         * stdio-common/tst-sprintf2.c: Likewise.
24974         * stdio-common/tst-sprintf3.c: Likewise.
24975         * stdio-common/tst-sprintf.c: Likewise.
24976         * stdio-common/tst-swprintf.c: Likewise.
24977         * stdio-common/tst-tmpnam.c: Likewise.
24978         * stdio-common/tst-unbputc.c: Likewise.
24979         * stdio-common/tst-wc-printf.c: Likewise.
24980         * stdlib/tst-environ.c: Likewise.
24981         * stdlib/tst-fmtmsg.c: Likewise.
24982         * stdlib/tst-limits.c: Likewise.
24983         * stdlib/tst-rand48-2.c: Likewise.
24984         * stdlib/tst-rand48.c: Likewise.
24985         * stdlib/tst-random2.c: Likewise.
24986         * stdlib/tst-random.c: Likewise.
24987         * stdlib/tst-strtol.c: Likewise.
24988         * stdlib/tst-strtoll.c: Likewise.
24989         * stdlib/tst-tls-atexit.c: Likewise.
24990         * stdlib/tst-xpg-basename.c: Likewise.
24991         * string/test-ffs.c: Likewise.
24992         * string/tst-bswap.c: Likewise.
24993         * string/tst-inlcall.c: Likewise.
24994         * string/tst-strtok.c: Likewise.
24995         * string/tst-strxfrm.c: Likewise.
24996         * sysdeps/x86_64/tst-audit10.c: Likewise.
24997         * sysdeps/x86_64/tst-audit3.c: Likewise.
24998         * sysdeps/x86_64/tst-audit4.c: Likewise.
24999         * sysdeps/x86_64/tst-audit5.c: Likewise.
25000         * time/tst-ftime_l.c: Likewise.
25001         * time/tst-getdate.c: Likewise.
25002         * time/tst-mktime3.c: Likewise.
25003         * time/tst-mktime.c: Likewise.
25004         * time/tst-posixtz.c: Likewise.
25005         * time/tst-strptime2.c: Likewise.
25006         * time/tst-strptime3.c: Likewise.
25007         * wcsmbs/tst-btowc.c: Likewise.
25008         * wcsmbs/tst-mbrtowc.c: Likewise.
25009         * wcsmbs/tst-mbsrtowcs.c: Likewise.
25010         * wcsmbs/tst-wchar-h.c: Likewise.
25011         * wcsmbs/tst-wcpncpy.c: Likewise.
25012         * wcsmbs/tst-wcrtomb.c: Likewise.
25013         * wcsmbs/tst-wcsnlen.c: Likewise.
25014         * wcsmbs/tst-wcstof.c: Likewise.
25015
25016 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
25017
25018         [BZ #14132]
25019         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
25020         INTDEF.
25021         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
25022         declaration.
25023         (_dl_mcount): Use rtld_hidden_proto.
25024         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
25025         _dl_mcount.
25026         * elf/rtld.c (_rtld_global_ro): Likewise.
25027
25028         [BZ #14132]
25029         * elf/dl-init.c (_dl_init): Don't use INTDEF.
25030         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
25031         of _dl_init_internal.
25032         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
25033         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
25034         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
25035         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
25036         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
25037         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
25038         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
25039         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
25040         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
25041         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
25042         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
25043         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
25044         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
25045         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
25046         * sysdeps/tile/dl-start.S (_start): Likewise.
25047         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
25048         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
25049
25050         [BZ #14132]
25051         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
25052         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
25053         (rtld_progname): Make macro definition unconditional.
25054         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
25055         INTDEF.
25056         (dlmopen_doit): Do not use INTUSE with _dl_argv.
25057         (dl_main): Likewise.
25058         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
25059         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
25060         instead of _dl_argv_internal.
25061         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
25062         __GI__dl_argv instead of INTUSE(_dl_argv).
25063         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
25064         __GI__dl_argv instead of _dl_argv_internal.
25065
25066         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
25067         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
25068         macro.
25069         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
25070         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
25071         New macro.
25072         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
25073         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
25074         macro.
25075         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
25076         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
25077
25078 2014-11-04  Andreas Schwab  <schwab@suse.de>
25079
25080         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
25081
25082 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25083
25084         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
25085         mtvsrd instruction in binary form.
25086
25087 2014-11-03  Andreas Schwab  <schwab@suse.de>
25088
25089         [BZ #17522]
25090         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
25091         for less than MB_LEN_MAX use a local buffer of that size.
25092         * libio/tst-fputws.c: New file.
25093         * libio/Makefile (tests): Add tst-fputws.
25094
25095 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
25096
25097         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
25098         the size of the fpu_fr.fpu_dregs[] array.
25099
25100 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
25101
25102         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
25103         (__nanosleep): Do not define as alias.
25104         (nanosleep): Define as alias of __nanosleep.
25105         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
25106         __libc_nanosleep name.
25107
25108 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25109
25110         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
25111         install.texi in comment.
25112
25113 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25114
25115         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
25116         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
25117         ... add here and use lwsync or sync ...
25118         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
25119         ... and add here using lwsync.
25120
25121 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
25122
25123         * elf/dl-machine-reject-phdr.h: New file.
25124         * elf/dl-load.c: #include that.
25125         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
25126         if that returned true.
25127
25128 2014-10-31  Roland McGrath  <roland@hack.frob.com>
25129
25130         [BZ #17496]
25131         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
25132         gen-as-const-headers chunk.  Add a big scare comment after the last
25133         safe place to touch before-compile.
25134
25135 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25136
25137         * manual/install.texi (Tools for Compilation): Update autoconf
25138         version requirements.
25139         * INSTALL: Regenerated.
25140
25141         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
25142         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
25143         (__libc_pselect): Likewise.
25144
25145         [BZ #14138]
25146         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
25147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
25148         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
25149         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
25150
25151 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25152
25153         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
25154         correct barrier instruction.
25155         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
25156         Likewise.
25157         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
25158         Likewise.
25159
25160 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25161
25162         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
25163         after defining inlines.  Instead, just use parens to defeat macro
25164         expansion of __isctype in its declaration.
25165
25166 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25167
25168         * include/sys/uio.h (__libc_readv): Remove declaration.
25169         (__libc_writev): Likewise.
25170         * misc/readv.c (__libc_readv): Rename to __readv.
25171         (__readv): Do not define as alias.
25172         (readv): Define as alias of __readv.
25173         * misc/writev.c (__libc_writev): Rename to __writev.
25174         (__writev): Do not define as alias.
25175         (writev): Define as alias of __writev.
25176         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
25177         (__readv): Do not define as alias.
25178         (readv): Define unconditionally as alias of __readv.
25179         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
25180         (__writev): Do not define as alias.
25181         (writev): Define unconditionally as alias of __writev.
25182         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
25183         name.
25184         (writev): Do not define __libc_writev name.
25185
25186 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25187
25188         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
25189         (convert_charseq): New function, broken out of ...
25190         (use_from_charmap): ... here.  Call it.
25191         (use_to_charmap): Use convert_charseq and free instead of duplicating
25192         its code with a variable-length stack struct.
25193
25194 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25195
25196         * include/fcntl.h (__libc_creat): Remove declaration.
25197         * io/creat.c (__libc_creat): Rename to creat.
25198         (creat): Do not define as alias.
25199         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
25200         of creat instead of __libc_creat.
25201         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
25202         to creat.
25203         (creat): Do not define as alias.
25204         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
25205         __libc_creat.
25206         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
25207         __libc_creat name.
25208         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
25209         Likewise.
25210
25211 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
25212
25213         * manual/llio.texi: Add comments discussing why write() may be
25214         considered MT-unsafe on Linux.
25215
25216 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
25217
25218         * dl-load.c (local_strdup): Remove.
25219         (expand_dynamic_string_token): Use __strdup.
25220         (decompose_rpath): Likewise.
25221         (_dl_map_object): Likewise.
25222
25223 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
25224
25225         [BZ #14132]
25226         * sysdeps/generic/unwind-dw2-fde.c
25227         (__register_frame_info_bases_internal): Do not declare.
25228         (__register_frame_info_table_bases_internal): Likewise.
25229         (__deregister_frame_info_bases_internal): Likewise.
25230         (__register_frame_info_bases): Declare and use hidden_proto before
25231         definition.  Use hidden_def instead of INTDEF.
25232         (__register_frame_info_table_bases): Likewise.
25233         (__deregister_frame_info_bases): Likewise.
25234         (__register_frame_info): Do not use INTUSE.
25235         (__register_frame): Likewise.
25236         (__register_frame_info_table): Likewise.
25237         (__register_frame_table): Likewise.
25238         (__deregister_frame_info): Likewise.
25239         (__deregister_frame): Likewise.
25240
25241 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
25242
25243         * sysdeps/unix/sysv/linux/arm/kernel-features.h
25244         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
25245         not undefine.
25246         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
25247         Likewise.
25248         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
25249         Likewise.
25250
25251 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
25252
25253         [BZ #14138]
25254         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
25255         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
25256         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
25257         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
25258         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
25259         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
25260         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
25261         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
25262         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
25263         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
25264         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
25265         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
25266         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
25267         syscall.
25268         (setfsuid): Likewise.
25269         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
25270         (setfsuid): Likewise.
25271         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
25272         (setfsuid): Likewise.
25273         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
25274         Likewise.
25275         (setfsuid): Likewise.
25276         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
25277         (setfsuid): Likewise.
25278         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
25279         Likewise.
25280         (setfsuid): Likewise.
25281
25282 2014-10-27  Andreas Schwab  <schwab@suse.de>
25283
25284         [BZ #17501]
25285         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
25286         check for Slow_SSE4_2 feature bit.
25287         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
25288         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
25289         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
25290         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
25291
25292 2014-10-24  Roland McGrath  <roland@hack.frob.com>
25293
25294         * configure.ac: Validate compiler version with a empirical test of
25295         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
25296         $CC -v output.
25297         * configure: Regenerated.
25298
25299         * inet/htons.c (htons): Prototypify.
25300         * inet/htonl.c (htonl): Likewise.
25301
25302 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25303
25304         * string/strncat.c (strncat): Improve performance by using strlen.
25305
25306 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25307
25308         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
25309
25310 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25311
25312         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
25313         Call libc_fetestexcept_aarch64.
25314
25315 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25316
25317         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
25318         Call libc_feholdexcept_aarch64.
25319
25320 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25321
25322         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
25323         Call get_rounding_mode.
25324
25325 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25326
25327         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
25328         Simplify logic.
25329
25330 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25331
25332         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
25333         Simplify logic.
25334
25335 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
25336
25337         [BZ #14138]
25338         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
25339         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
25340         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
25341         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
25342         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
25343         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
25344         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
25345         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
25346         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
25347         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
25348         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
25349         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
25350         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
25351         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
25352         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
25353         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
25354         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
25355         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
25356         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
25357         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
25358         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
25359         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
25360         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
25361         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
25362         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
25363         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
25364         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
25365         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
25366         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
25367         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
25368         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
25369         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
25370         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
25371         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
25372         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
25373         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
25374         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
25375         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
25376         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
25377         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
25378         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
25379         syscall.
25380         (geteuid): Likewise.
25381         (getgid): Likewise.
25382         (getuid): Likewise.
25383         (getresgid): Likewise.
25384         (getresuid): Likewise.
25385         (getgroups): Likewise.
25386         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
25387         (geteuid): Likewise.
25388         (getgid): Likewise.
25389         (getuid): Likewise.
25390         (getresgid): Likewise.
25391         (getresuid): Likewise.
25392         (getgroups): Likewise.
25393         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
25394         (geteuid): Likewise.
25395         (getgid): Likewise.
25396         (getuid): Likewise.
25397         (getresgid): Likewise.
25398         (getresuid): Likewise.
25399         (getgroups): Likewise.
25400         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
25401         Likewise.
25402         (geteuid): Likewise.
25403         (getgid): Likewise.
25404         (getuid): Likewise.
25405         (getresgid): Likewise.
25406         (getresuid): Likewise.
25407         (getgroups): Likewise.
25408         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
25409         (geteuid): Likewise.
25410         (getgid): Likewise.
25411         (getuid): Likewise.
25412         (getresgid): Likewise.
25413         (getresuid): Likewise.
25414         (getgroups): Likewise.
25415         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
25416         Likewise.
25417         (geteuid): Likewise.
25418         (getgid): Likewise.
25419         (getuid): Likewise.
25420         (getgroups): Likewise.
25421
25422         [BZ #14138]
25423         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
25424         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
25425         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
25426         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
25427         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
25428         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
25429         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
25430         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
25431         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
25432         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
25433         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
25434         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
25435         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
25436         __chown.
25437         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
25438         (lchown): Likewise.
25439         (fchown): Likewise.
25440         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
25441         Likewise.
25442         (lchown): Likewise.
25443         (fchown): Likewise.
25444         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
25445         (lchown): Likewise.
25446         (fchown): Likewise.
25447         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
25448         Likewise.
25449         (lchown): Likewise.
25450         (fchown): Likewise.
25451
25452 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25453
25454         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
25455         Simplify logic.
25456
25457 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25458
25459         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
25460         Cleanup logic.
25461
25462 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25463
25464         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
25465         Remove unused include.
25466
25467 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
25468
25469         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
25470         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
25471         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
25472         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
25473
25474 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
25475             Helge Deller <deller@gmx.de>
25476
25477         [BZ #17508]
25478         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
25479         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
25480         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
25481
25482 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
25483
25484         [BZ #14132]
25485         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
25486         Remove macro definition.
25487         (__ashrdi3_v_glibc20): Likewise.
25488         (__lshrdi3_v_glibc20): Likewise.
25489         (__cmpdi2_v_glibc20): Likewise.
25490         (__ucmpdi2_v_glibc20): Likewise.
25491         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
25492         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
25493         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
25494         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
25495         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
25496         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
25497
25498 2014-10-22  Roland McGrath  <roland@hack.frob.com>
25499
25500         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
25501         old GNU extension [0] syntax.
25502         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
25503         alloca rather than an array member with variable length.
25504         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
25505         * nscd/nscd.c (invalidate_db): New function, broken out of ...
25506         (parse_opt): ... here.  Likewise use alloca there.
25507         Validate the -i argument before checking for rootness.
25508         (send_shutdown): New function, broken out of ...
25509         (parse_opt): ... here.
25510
25511 2014-10-22  Roland McGrath  <roland@hack.frob.com>
25512
25513         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
25514         macro to get at the _rt_local_ro field.
25515         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
25516         ([PIC] case) or _dl_hwcap ([!PIC] case).
25517         * sysdeps/arm/setjmp.S: Likewise.
25518
25519         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
25520         * sysdeps/arm/configure.ac: New check to define it.
25521         * sysdeps/arm/configure: Regenerated.
25522         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
25523         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
25524         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
25525         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
25526         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
25527         Use move/movt pair instead of a load.
25528         (LDST_GLOBAL): Macro removed.
25529         (LDR_GLOBAL): New macro replaces it.
25530         (LDR_HIDDEN): New macro.
25531         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
25532         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
25533
25534         * setjmp/tst-setjmp-static.c: New file.
25535         * setjmp/Makefile (tests): Add it.
25536         (tests-static): New variable.
25537
25538 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
25539
25540         [BZ #17485]
25541         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
25542
25543 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
25544
25545         [BZ #14132]
25546         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
25547
25548 2014-10-21  Roland McGrath  <roland@hack.frob.com>
25549
25550         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
25551
25552 2014-10-20  Roland McGrath  <roland@hack.frob.com>
25553
25554         * io/fts.c (dirent_not_directory): New function.
25555         (fts_build): Call it.
25556
25557 2014-10-20  Roland McGrath  <roland@hack.frob.com>
25558
25559         * nptl/version.c (__nptl_main): Use normal __write rather than
25560         INTERNAL_SYSCALL.
25561         (banner): Update copyright years.
25562
25563         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
25564         gettimeofday.
25565         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
25566         * nptl/pthread_cond_timedwait.c: Likewise.
25567         * nptl/pthread_mutex_timedlock.c: Likewise.
25568         * nptl/sem_timedwait.c: Likewise.
25569
25570         * sysdeps/nptl/bits/libc-lock.h
25571         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
25572         (__libc_lock_init_recursive): Return void, not 0.
25573         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
25574         (__libc_rwlock_init): Likewise.
25575         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
25576
25577 2014-10-20  Torvald Riegel  <triegel@redhat.com>
25578
25579         [BZ #15215]
25580         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
25581         (__pthread_once_slow): ... here.
25582         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
25583         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
25584
25585 2014-10-20  Torvald Riegel  <triegel@redhat.com>
25586
25587         [BZ #15215]
25588         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
25589         __PTHREAD_ONCE_FORK_GEN_INCR): New.
25590         * sysdeps/nptl/fork.c (__libc_fork): Use them.
25591         * nptl/pthread_once.c (__pthread_once): Likewise.
25592         Update comments.
25593
25594 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
25595
25596         [BZ #14138]
25597         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
25598         name.
25599         (writev): Use __libc_writev as strong name.
25600         * sysdeps/unix/sysv/linux/readv.c: Remove file.
25601         * sysdeps/unix/sysv/linux/writev.c: Likewise.
25602
25603 2014-10-17  Roland McGrath  <roland@hack.frob.com>
25604
25605         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
25606
25607         * sysdeps/i386/nptl/tls.h
25608         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
25609         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
25610         New macros.
25611         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
25612         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
25613         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
25614         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
25615         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
25616         Call CHECK_THREAD_SYSINFO instead of doing an assert.
25617
25618         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25619         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
25620         on [__NR_futex].
25621         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
25622         broken out of ...
25623         (__pthread_mutex_init): ... here.  Call it.
25624         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
25625         Conditionalize PI cases on [__NR_futex].
25626         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
25627         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
25628         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
25629
25630         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
25631         conditional on [SIGSETXID].
25632         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
25633         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
25634         is defined.  Likewise for SIGSETXID.
25635         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
25636         Conditionalize definitions on [SIGSETXID].
25637         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
25638         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
25639         unblocking on [SIGCANCEL].
25640
25641         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
25642         [__NR_set_robust_list].
25643
25644 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
25645
25646         * string/strcoll_l.c (get_next_seq): Fix up formatting.
25647         (do_compare): Likewise.
25648
25649 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
25650
25651         [BZ #15884]
25652         * string/strcoll_l.c: Don't include stdio.h.
25653         (coll_seq): Remove members idxarr and rulearr.
25654         (get_next_seq_cached): Remove function.
25655         (get_next_seq): Likewise.
25656         (get_next_seq_nocache): Rename to get_next_seq.
25657         (do_compare): Remove function.
25658         (do_compare_nocache): Rename to do_compare.
25659         (STRCOLL): Remove weight and rules cache.
25660
25661 2014-10-16  Roland McGrath  <roland@hack.frob.com>
25662
25663         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
25664         * sysdeps/arm/sfp-machine.h: ... to here.
25665         * sysdeps/arm/Implies: Remove arm/soft-fp.
25666
25667 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
25668
25669         * conform/data/sys/utsname.h-data (*_t): Allow.
25670         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
25671         [POSIX] (WEXITED): Do not expect constant.
25672         [POSIX] (WSTOPPED): Likewise.
25673         [POSIX] (WNOHANG): Likewise.
25674         [POSIX] (WNOWAIT): Likewise.
25675         [POSIX] (siginfo_t): Do not expect type or elements.
25676         [POSIX] (pid_t): Do not expect type.
25677         [POSIX] (signal.h): Do not allow header.
25678         [POSIX] (sys/resource.h): Likewise.
25679         [POSIX] (si_*): Do not allow pattern.
25680         [POSIX] (W*): Likewise.
25681         [POSIX] (P_*): Likewise.
25682         [POSIX] (BUS_*): Likewise.
25683         [POSIX] (CLD_*): Likewise.
25684         [POSIX] (FPE_*): Likewise.
25685         [POSIX] (ILL_*): Likewise.
25686         [POSIX] (POLL_*): Likewise.
25687         [POSIX] (SEGV_*): Likewise.
25688         [POSIX] (SI_*): Likewise.
25689         [POSIX] (TRAP_*): Likewise.
25690         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
25691         variable.
25692
25693 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
25694
25695         [BZ #12926]
25696         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
25697         infinite loop when __recvmsg returns 0.
25698
25699 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
25700
25701         * CANCEL-FCT-WAIVE: Remove file.
25702         * CANCEL-FILE-WAIVE: Likewise.
25703
25704         [BZ #14132]
25705         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
25706         instead of INTVARDEF.
25707         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
25708         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
25709         rtld_hidden_data_def instead of INTVARDEF.
25710         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
25711         * elf/dl-deps.c (expand_dst): Likewise.
25712         * elf/dl-load.c (_dl_dst_count): Likewise.
25713         (_dl_dst_substitute): Likewise.
25714         (decompose_rpath): Likewise.
25715         (_dl_init_paths): Likewise.
25716         (open_path): Likewise.
25717         (_dl_map_object): Likewise.
25718         * elf/rtld.c (dl_main): Likewise.
25719         (process_dl_audit): Likewise.
25720         (process_envvars): Likewise.
25721         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
25722         Remove declaration.
25723         (__libc_enable_secure): Use rtld_hidden_proto.
25724
25725 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
25726
25727         * elf/dl-load.c
25728         (add_path): New function broken out of _dl_rtld_di_serinfo.
25729         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
25730
25731 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
25732
25733         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
25734         parentheses around macro arguments.
25735         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
25736         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
25737         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
25738         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
25739         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
25740         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
25741         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
25742         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
25743         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
25744         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
25745         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
25746         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
25747         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
25748         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
25749         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
25750         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
25751         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
25752         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
25753         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
25754         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
25755         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
25756         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
25757         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
25758         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
25759         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
25760         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
25761         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
25762         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
25763         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
25764         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
25765         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
25766         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
25767         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
25768         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
25769         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
25770         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
25771         Likewise.
25772         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
25773         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
25774         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
25775         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
25776         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
25777         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
25778         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
25779         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
25780         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
25781         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
25782         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
25783         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
25784         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
25785         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
25786         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
25787         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
25788         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
25789         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
25790         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
25791         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
25792         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
25793         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
25794         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
25795         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
25796         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
25797         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
25798         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
25799         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
25800         (_FP_FRAC_SRS_1): Likewise.
25801         (_FP_FRAC_CLZ_1): Likewise.
25802         (_FP_MUL_MEAT_1_imm): Likewise.
25803         (_FP_MUL_MEAT_1_wide): Likewise.
25804         (_FP_MUL_MEAT_1_hard): Likewise.
25805         (_FP_SQRT_MEAT_1): Likewise.
25806         (_FP_FRAC_ASSEMBLE_1): Likewise.
25807         (_FP_FRAC_DISASSEMBLE_1): Likewise.
25808         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
25809         (__FP_CLZ_2): Likewise.
25810         (_FP_MUL_MEAT_2_wide): Likewise.
25811         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
25812         (_FP_MUL_MEAT_2_gmp): Likewise.
25813         (_FP_MUL_MEAT_2_120_240_double): Likewise.
25814         (_FP_SQRT_MEAT_2): Likewise.
25815         (_FP_FRAC_ASSEMBLE_2): Likewise.
25816         (_FP_FRAC_DISASSEMBLE_2): Likewise.
25817         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
25818         (_FP_FRAC_CLZ_4): Likewise.
25819         (_FP_MUL_MEAT_4_wide): Likewise.
25820         (_FP_MUL_MEAT_4_gmp): Likewise.
25821         (_FP_SQRT_MEAT_4): Likewise.
25822         (_FP_FRAC_ASSEMBLE_4): Likewise.
25823         (_FP_FRAC_DISASSEMBLE_4): Likewise.
25824         * soft-fp/op-common.h (_FP_CMP): Likewise.
25825         (_FP_CMP_EQ): Likewise.
25826         (_FP_CMP_UNORD): Likewise.
25827         (_FP_TO_INT): Likewise.
25828         (_FP_FROM_INT): Likewise.
25829         [!__FP_CLZ] (__FP_CLZ): Likewise.
25830         (_FP_DIV_HELP_imm): Likewise.
25831         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
25832         Likewise.
25833         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
25834         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
25835         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
25836         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
25837         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
25838         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
25839         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
25840         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
25841         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
25842         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
25843         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
25844         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
25845         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
25846         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
25847         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
25848         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
25849         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
25850         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
25851         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
25852         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
25853         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
25854         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
25855         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
25856         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
25857         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
25858         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
25859         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
25860         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
25861         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
25862         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
25863         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
25864         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
25865         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
25866         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
25867         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
25868         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
25869         (FP_UNPACK_RAW_SP): Likewise.
25870         (FP_PACK_RAW_S): Likewise.
25871         (FP_PACK_RAW_SP): Likewise.
25872         (FP_UNPACK_S): Likewise.
25873         (FP_UNPACK_SP): Likewise.
25874         (FP_UNPACK_SEMIRAW_S): Likewise.
25875         (FP_UNPACK_SEMIRAW_SP): Likewise.
25876         (FP_PACK_S): Likewise.
25877         (FP_PACK_SP): Likewise.
25878         (FP_PACK_SEMIRAW_S): Likewise.
25879         (FP_PACK_SEMIRAW_SP): Likewise.
25880         (_FP_SQRT_MEAT_S): Likewise.
25881         (FP_CMP_S): Likewise.
25882         (FP_CMP_EQ_S): Likewise.
25883         (FP_CMP_UNORD_S): Likewise.
25884         (FP_TO_INT_S): Likewise.
25885         (FP_FROM_INT_S): Likewise.
25886
25887         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
25888
25889         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
25890         (FP_EX_INVALID_IMZ): Likewise.
25891         (FP_EX_INVALID_IMZ_FMA): Likewise.
25892         (FP_EX_INVALID_ISI): Likewise.
25893         (FP_EX_INVALID_ZDZ): Likewise.
25894         (FP_EX_INVALID_IDI): Likewise.
25895         (FP_EX_INVALID_SQRT): Likewise.
25896         (FP_EX_INVALID_CVI): Likewise.
25897         (FP_EX_INVALID_VC): Likewise.
25898         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
25899         "invalid" exceptions.
25900         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
25901         (_FP_ADD_INTERNAL): Likewise.
25902         (_FP_MUL): Likewise.
25903         (_FP_FMA): Likewise.
25904         (_FP_DIV): Likewise.
25905         (_FP_CMP_CHECK_NAN): Likewise.
25906         (_FP_SQRT): Likewise.
25907         (_FP_TO_INT): Likewise.
25908         (FP_EXTEND): Likewise.
25909
25910 2014-10-09  Allan McRae  <allan@archlinux.org>
25911
25912         * po/fr.po: Update French translation from translation project.
25913
25914 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
25915
25916         [BZ #14132]
25917         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
25918         of INTDEF.
25919         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
25920         (__cxa_atexit): Use libc_hidden_proto.
25921         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
25922
25923         [BZ #14132]
25924         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
25925         declaration.
25926         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
25927         [!_ISOMAC] (__iswspace_l_internal): Likewise.
25928         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
25929         [!_ISOMAC] (__iswctype_internal): Likewise.
25930         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
25931         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
25932         alias.
25933         (fcntl): Remove __fcntl_internal alias.
25934         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
25935         __connect_internal alias.
25936         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
25937         Likewise.
25938
25939         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
25940         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
25941         FP_DENORM_ZERO.
25942         (_FP_CHECK_FLUSH_ZERO): New macro.
25943         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
25944         (_FP_CMP): Likewise.
25945         (_FP_CMP_EQ): Likewise.
25946         (_FP_TO_INT): Do not set inexact for subnormal arguments if
25947         FP_DENORM_ZERO.
25948         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
25949         (FP_TRUNC): Likewise.
25950
25951         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
25952         treated as invalid conversion, not as normal exponent.
25953
25954         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
25955         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
25956         (_FP_CMP_EQ): Likewise.
25957         (_FP_CMP_UNORD): Likewise.
25958         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
25959         (FP_CMP_EQ_D): Likewise.
25960         (FP_CMP_UNORD_D): Likewise.
25961         * soft-fp/extended.h (FP_CMP_E): Likewise.
25962         (FP_CMP_EQ_E): Likewise.
25963         (FP_CMP_UNORD_E): Likewise.
25964         * soft-fp/quad.h (FP_CMP_Q): Likewise.
25965         (FP_CMP_EQ_Q): Likewise.
25966         (FP_CMP_UNORD_Q): Likewise.
25967         * soft-fp/single.h (FP_CMP_S): Likewise.
25968         (FP_CMP_EQ_S): Likewise.
25969         (FP_CMP_UNORD_S): Likewise.
25970         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
25971         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
25972         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
25973         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
25974         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
25975         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
25976         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
25977         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
25978         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
25979         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
25980         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
25981         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
25982         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
25983         to FP_CMP_Q.
25984         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
25985         FP_CMP_Q.
25986         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
25987         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
25988         FP_CMP_EQ_Q.
25989         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
25990         FP_CMP_Q.
25991         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
25992         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
25993         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
25994         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
25995         FP_CMP_EQ_Q.
25996         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
25997         FP_CMP_Q.
25998         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
25999         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
26000         FP_CMP_EQ_Q.
26001         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
26002         FP_CMP_Q.
26003         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
26004         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
26005         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
26006         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
26007         FP_CMP_EQ_Q.
26008
26009         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
26010         a subnormal result, set the underflow exception if trapping on
26011         underflow is enabled.
26012         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
26013         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
26014         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
26015         redefine to 0.
26016         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
26017         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26018         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26019         * soft-fp/extendxftf2.c (__extendxftf2): Use
26020         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
26021
26022         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
26023         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
26024         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26025         FP_HANDLE_EXCEPTIONS.
26026         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
26027         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26028         FP_HANDLE_EXCEPTIONS.
26029         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
26030         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26031         FP_HANDLE_EXCEPTIONS.
26032         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
26033         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26034         FP_HANDLE_EXCEPTIONS.
26035
26036 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
26037
26038         [BZ #14132]
26039         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
26040         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
26041         use INTUSE.
26042         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
26043         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
26044         Remove alias.
26045         (__adjtimex): Define using libc_hidden_ver.
26046         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
26047         Remove declaration.
26048         (ntp_gettime): Call __adjtimex directly.
26049         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
26050         Remove declaration.
26051         (ntp_gettimex): Call __adjtimex directly.
26052         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
26053         __adjtimex_internal alias.
26054
26055 2014-10-08  Roland McGrath  <roland@hack.frob.com>
26056
26057         [BZ #17460]
26058         * nscd/nscd.c (more_help): Rewrite list of tables collection
26059         using xstrdup and asprintf.
26060
26061         * nscd/nscd_conf.c: Remove local xstrdup declaration.
26062
26063 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26064             Roland McGrath  <roland@hack.frob.com>
26065
26066         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
26067         (do_lookup_unique): ... local function 'enter' here; update callers.
26068
26069 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
26070
26071         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
26072         compat_symbol calls on [SHARED].
26073         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
26074         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
26075         Remove.
26076         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26077         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
26078         (oldsetrlimit): Remove.
26079         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26081         (lchown): New syscall entry.
26082         (oldsetrlimit): Remove.
26083         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26084         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
26085         (oldsetrlimit): Remove.
26086         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26087
26088         [BZ #14138]
26089         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
26090         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
26091         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
26092         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
26093         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
26094         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
26095         (fchown): Likewise.
26096         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
26097         (fchown): Likewise.
26098         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
26099         Likewise.
26100
26101 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26102
26103         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
26104         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
26105         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
26106         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
26107         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
26108         Likewise.
26109         (__old_sem_post): Likewise.
26110
26111 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
26112
26113         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
26114         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
26115         HAVE_CLOCK_GETTIME_VSYSCALL macros.
26116         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
26117         Use INLINE_VSYSCALL macro.
26118         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
26119         __vdso_clock_gettime.
26120         * sysdeps/unix/sysv/linux/tile/init-first.c
26121         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
26122         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
26123         __vdso_clock_gettime.
26124
26125         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
26126         to set up frame more cleanly.
26127
26128         * sysdeps/tile/memcmp.c: New file.
26129
26130         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
26131
26132         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
26133         * sysdeps/tile/tilegx/strcasestr.c: New file.
26134         * sysdeps/tile/tilegx/strnlen.c: New file.
26135         * sysdeps/tile/tilegx/strstr.c: New file.
26136
26137         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
26138
26139 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
26140
26141         * nptl/tst-setuid3.c: Write errors to stdout.
26142
26143 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26144
26145         * elf/dl-deps.c
26146         (preload): New functions broken out of _dl_map_object_deps.
26147         (_dl_map_object_deps):  Remove a nested function. Update call sites.
26148
26149 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
26150
26151         [BZ #14138]
26152         * sysdeps/unix/sysv/linux/execve.c: Remove file.
26153         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
26154
26155 2014-10-01  Steve Ellcey  <sellcey@mips.com>
26156
26157         * sysdeps/mips/strcmp.S: New.
26158
26159 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
26160
26161         [BZ #14138]
26162         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
26163         (linkat): Likewise.
26164         (mkdirat): Likewise.
26165         (readlinkat): Likewise.
26166         (renameat): Likewise.
26167         (symlinkat): Likewise.
26168         (unlinkat): Likewise.
26169         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
26170         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
26171         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
26172         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
26173         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
26174         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
26175         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
26176
26177 2014-09-30  Will Newton  <will.newton@linaro.org>
26178
26179         * math/math.h: Define long double math functions if
26180         _LIBC_TEST is defined.
26181         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
26182
26183         * localedata/Makefile: Move assignment to tests-special
26184         into an ifdef testing run-built-tests.
26185         * timezone/Makefile: Likewise.
26186
26187 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
26188
26189         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
26190         with $(BASH) not $(SHELL).
26191
26192 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
26193             Matthew LeGendre  <legendre1@llnl.gov>
26194
26195         [BZ #17411]
26196         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
26197         l_reloc_result.
26198
26199 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26200
26201         * stdio-common/printf_fp.c
26202         (hack_digit): New function, broken out of ...
26203         (__printf_fp): ... local function here.  Update call sites.
26204         hack_digit now takes an additional parameter that is a pointer
26205         to a struct of the referenced locals.  Those locals moved inside
26206         the struct and references updated.
26207
26208 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
26209
26210         * aclocal.m4: Require autoconf 2.69.
26211         * configure: Regenerated.
26212         * sysdeps/aarch64/configure: Likewise.
26213         * sysdeps/alpha/configure: Likewise.
26214         * sysdeps/arm/armv7/configure: Likewise.
26215         * sysdeps/arm/configure: Likewise.
26216         * sysdeps/ia64/configure: Likewise.
26217         * sysdeps/mach/configure: Likewise.
26218         * sysdeps/mips/configure: Likewise.
26219         * sysdeps/s390/configure: Likewise.
26220         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
26221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
26222
26223         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
26224         file.
26225         * sysdeps/ia64/configure.ac: Likewise.
26226
26227 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
26228
26229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
26230         specify symbol version for ld.so.  Do not include entry for
26231         libpthread.
26232         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26233         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26234         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26235
26236         [BZ #14171]
26237         * Makeconfig [$(build-shared) = yes]
26238         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
26239         makefiles.
26240         [$(build-shared) = yes && $(soversions.mk-done) = t]
26241         ($(common-objpfx)gnu/lib-names.h): Remove rule.
26242         [$(build-shared) = yes && $(soversions.mk-done) = t]
26243         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
26244         to Makerules.
26245         [$(build-shared) = yes && $(soversions.mk-done) = t]
26246         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
26247         here.
26248         [$(build-shared) = yes && $(soversions.mk-done) = t]
26249         (common-generated): Don't append gnu/lib-names.h and
26250         gnu/lib-names.stmp here.
26251         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
26252         (lib-names-h-abi): New variable.
26253         [$(build-shared) = yes && $(soversions.mk-done) = t]
26254         (lib-names-stmp-abi): Likewise.
26255         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26256         abi-variants] (before-compile): Append
26257         $(common-objpfx)$(lib-names-h-abi).
26258         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26259         abi-variants] (common-generated): Append gnu/lib-names.h.
26260         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26261         abi-variants] (install-others-nosubdir): Depend on
26262         $(inst_includedir)/$(lib-names-h-abi).
26263         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26264         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
26265         [$(build-shared) = yes && $(soversions.mk-done) = t]
26266         ($(common-objpfx)$(lib-names-h-abi)): New rule.
26267         [$(build-shared) = yes && $(soversions.mk-done) = t]
26268         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
26269         [$(build-shared) = yes && $(soversions.mk-done) = t]
26270         (common-generated): Append $(lib-names-h-abi) and
26271         $(lib-names-stmp-abi).
26272         * scripts/lib-names.awk: Do not handle multi being set.
26273         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
26274         Remove variable.
26275         (abi-lp64_be-ld-soname): Likewise.
26276         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
26277         Likewise.
26278         (abi-hard-ld-soname): Likewise.
26279         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
26280         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
26281         Remove variable.
26282         (abi-o32_hard-ld-soname): Likewise.
26283         (abi-o32_soft_2008-ld-soname): Likewise.
26284         (abi-o32_hard_2008-ld-soname): Likewise.
26285         (abi-n32_soft-ld-soname): Likewise.
26286         (abi-n32_hard-ld-soname): Likewise.
26287         (abi-n32_soft_2008-ld-soname): Likewise.
26288         (abi-n32_hard_2008-ld-soname): Likewise.
26289         (abi-n64_soft-ld-soname): Likewise.
26290         (abi-n64_hard-ld-soname): Likewise.
26291         (abi-n64_soft_2008-ld-soname): Likewise.
26292         (abi-n64_hard_2008-ld-soname): Likewise.
26293         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
26294         Likewise.
26295         (abi-64-v2-ld-soname): Likewise.
26296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
26297         ld.so entries.
26298         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
26299         variable.
26300         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
26301         entry.
26302         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
26303         variable.
26304         (abi-64-ld-soname): Likewise.
26305         (abi-x32-ld-soname): Likewise.
26306         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
26307         entry.
26308         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26309
26310 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
26311
26312         [BZ #14138]
26313         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
26314         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
26315         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
26316         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
26317         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
26318         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
26319         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
26320         syscall entry for GLIBC_2.2 symbol version.
26321         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
26322         Likewise.
26323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26324         (setrlimit): Likewise.
26325         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
26326         Likewise.
26327
26328 2014-09-23  Will Newton  <will.newton@linaro.org>
26329
26330         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
26331         _LINUX_ARM_SYSDEP_H include guard too.
26332         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
26333         define.
26334
26335 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
26336
26337         * sysdeps/unix/sysv/linux/eventfd.c:
26338         Make first argument unsigned.
26339         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
26340         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
26341
26342 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
26343
26344         [BZ #16852]
26345         * socket/recvmmsg.c (recvmmsg): Drop const argument.
26346         * socket/sys/socket.h: Likewise.
26347         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
26348
26349 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26350
26351         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
26352
26353 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
26354
26355         * time/tst-ftime.c: New test.
26356         * time/Makefile (tests): Add tst-ftime.
26357
26358 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
26359
26360         * soft-fp/extended.h: Fix comment formatting.
26361         * soft-fp/op-1.h: Likewise.
26362         * soft-fp/op-2.h: Likewise.
26363         * soft-fp/op-4.h: Likewise.
26364         * soft-fp/op-8.h: Likewise.
26365         * soft-fp/op-common.h: Likewise.
26366         * soft-fp/soft-fp.h: Likewise.
26367
26368         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
26369
26370 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
26371
26372         [BZ #6652]
26373         * Makeconfig (soversions-default-setname): Remove variable.
26374         ($(common-objpfx)soversions.i): Don't pass default_setname to
26375         soversions.awk.
26376         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
26377         oldest_abi to abi-versions.awk.
26378         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
26379         * config.make.in (oldest-abi): Remove variable.
26380         * configure.ac (--enable-oldest-abi): Remove configure option.
26381         * configure: Regenerated.
26382         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
26383         text.
26384         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
26385         * scripts/soversions.awk: Do not handle default_setname variable.
26386         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
26387         variable.
26388         * sysdeps/mach/hurd/configure: Regenerated.
26389         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
26390         variable.
26391         * sysdeps/unix/sysv/linux/configure: Regenerated.
26392
26393 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26394
26395         * elf/Makefile (CFLAGS-interp.c): Remove.
26396         ($(elf-objpfx)runtime-linker.h): Generate header with linker
26397         path string.
26398         * elf/interp.c: Include generated runtime-linker.h
26399
26400         * Makerules (lib%.so): Don't include $(+interp) in
26401         prerequisites.
26402         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
26403         * dlfcn/eval.c: Remove file.
26404
26405         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
26406         macros.
26407
26408         [BZ #17266]
26409         * misc/sys/cdefs.h: Define __extern_always_inline for clang
26410         4.2 and newer.
26411
26412         [BZ #17370]
26413         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
26414
26415 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26416             Jakub Jelinek  <jakub@redhat.com>
26417
26418         [BZ #17266]
26419         * libio/stdio.h: Check definition of __fortify_function
26420         instead of __extern_always_inline to include bits/stdio2.h.
26421         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
26422         check if __extern_always_inline is defined.
26423         [__USE_MISC || __USE_XOPEN]: Likewise.
26424         [__USE_ISOC99] Likewise.
26425         * misc/sys/cdefs.h (__fortify_function): Define only if
26426         __extern_always_inline is defined.
26427         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
26428         __extern_always_inline and __extern_inline only for g++-4.3
26429         and newer or a compatible gcc.
26430
26431 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
26432
26433         [BZ #17371]
26434         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
26435         last change to handle zero prefix length.
26436
26437 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
26438
26439         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
26440         _SC_REGEX_VERSION.
26441
26442         * posix/getconf.c (vars): Add _POSIX_IPV6 and
26443         _POSIX_RAW_SOCKETS.
26444
26445 2014-09-13  Allan McRae  <allan@archlinux.org>
26446
26447         * po/ru.po: Update Russian translation from translation project.
26448
26449 2014-09-12  Roland McGrath  <roland@hack.frob.com>
26450
26451         * locale/programs/locale.c (show_locale_vars): Inline local function
26452         into its sole call site.  Clean up some style nits.
26453         (print_item): New function, broken out of ...
26454         (show_info): ... local function here.  Clean up style nits.
26455
26456         * locale/programs/ld-ctype.c (set_one_default): New function, broken
26457         out of ...
26458         (set_class_defaults): ... local function set_default here.
26459         Define set_default as a macro locally to pass constant parameters.
26460         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
26461         rather than a shared local.
26462
26463         * stdlib/rpmatch.c (try): New function, broken out of ...
26464         (rpmatch): ... local function here.  Also, prototypify definition.
26465
26466 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
26467
26468         * scripts/soversions.awk: Do not handle configuration names.
26469         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
26470         vendor and os variables to soversions.awk.
26471         * configure.ac: Do not modify gnu-* host_os.
26472         * configure: Regenerated
26473         * shlib-versions: Remove first column with configuration names.
26474         * nptl/shlib-versions: Likewise.
26475         * nptl_db/shlib-versions: Likewise.
26476         * sysdeps/hppa/shlib-versions: Likewise.
26477         * sysdeps/m68k/shlib-versions: Likewise.
26478         * sysdeps/mach/hurd/shlib-versions: Likewise.
26479         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
26480         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
26481         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
26482         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
26483         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
26484         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
26485         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
26486         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
26487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
26488         Likewise.
26489         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26490         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
26491         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
26492         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
26493         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
26494         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
26495         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26496         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26497
26498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
26499         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
26500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
26501         Regenerated.
26502         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
26503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
26504         Condition symbol version definitions on [HAVE_ELFV2_ABI].
26505
26506         * shlib-versions: Remove OS-specific entries.  Moved to files in
26507         sysdeps.
26508         * sysdeps/mach/hurd/shlib-versions: New file.
26509         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
26510
26511         * nptl/shlib-versions: Remove architecture-specific entries.
26512         Moved to files in sysdeps.
26513         * shlib-versions: Likewise.
26514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
26515         file.
26516         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26517         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
26518         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
26519         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
26520
26521         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
26522         (UDP_NO_CHECK6_RX): Likewise.
26523
26524 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
26525
26526         * sysdeps/posix/sysconf.c (__sysconf): Spell
26527         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
26528
26529 2014-08-12  Florian Weimer  <fweimer@redhat.com>
26530
26531         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
26532         loading.
26533         * iconv/Versions (__gconv_transliterate): Export for use from
26534         gconv modules.
26535         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
26536         (struct __gconv_trans_data, __gconv_trans_fct,
26537         __gconv_trans_context_fct, __gconv_trans_query_fct,
26538         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
26539         definitions.
26540         (struct __gconv_step_data): Remove __trans member.
26541         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
26542         longer hidden.  Remove unused trans_data argument.
26543         * iconv/gconv_int.h (struct trans_struct): Remove definition.
26544         (__gconv_translit_find): Remove declaration.
26545         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
26546         prototype.
26547         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
26548         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
26549         trans_data argument.  Add hidden definition.
26550         (__gconv_translit_find): Remove.
26551         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
26552         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
26553         * iconv/skeleton.c: Remove transliteration initialization.
26554         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
26555         __gconv_step_data initialization.
26556         * libio/iofwide.c (__libio_translit_): Remove.
26557         (_IO_fwide): Adjust struct __gconv_step_data initialization.
26558         * wcsmbs/btowc.c (__btowc): Likewise.
26559         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
26560         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
26561         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
26562         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
26563         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
26564         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
26565         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
26566         * wcsmbs/wctob.c (wctob): Likewise.
26567
26568 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
26569
26570         [BZ #16194]
26571         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
26572         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
26573         register usage.
26574         * sysdeps/x86/Makefile: Adjust.
26575
26576 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26577             Roland McGrath  <roland@hack.frob.com>
26578
26579         * locale/weight.h: Add include guard.
26580         (findidx): Make static rather than auto; take new parameters
26581         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
26582         * locale/weightwc.h: Likewise.
26583         * posix/fnmatch_loop.c
26584         (FCT): Change type of EXTRA from int32_t to wint_t.
26585         Don't include either header inside the function.
26586         Call FINDIDX rather than findidx, and pass new arguments.
26587         #undef FINDIDX at the end of the file.
26588         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
26589         FINDIDX before including fnmatch_loop.c for the non-wide version.
26590         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
26591         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
26592         for the wide version.
26593         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
26594         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
26595         Pass new arguments to findidx.
26596         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
26597         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
26598         Don't #include it inside the function.  Pass new arguments to findidx.
26599         * posix/regex_internal.h
26600         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
26601         (re_string_elem_size_at): Don't #include it inside the function.
26602         Pass new arguments to findidx.
26603         * string/strcoll_l.c: #include WEIGHT_H at top level.
26604         (get_next_seq): Don't #include it inside the function.
26605         Pass new arguments to findidx.
26606         (get_next_seq_nocache): Likewise.
26607         * string/strxfrm_l.c: #include WEIGHT_H at top level.
26608         (STRXFRM): Don't #include it inside the function.
26609         Pass new arguments to findidx.
26610
26611 2014-09-11  Florian Weimer  <fweimer@redhat.com>
26612
26613         [BZ #17344]
26614         * malloc/malloc.c (unlink): Turn asserts into a call to
26615         malloc_printerr.
26616
26617 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
26618
26619         [BZ #17370]
26620         * libio/wfileops (do_ftell_wide): Free OUT.
26621
26622 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
26623
26624         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
26625
26626 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
26627
26628         [BZ #17363]
26629         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
26630         group if the current group is empty.
26631
26632 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26633
26634         * benchtests/bench-memset.c (test_main): Add more test from size
26635         from 32 to 512 bytes.
26636         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26637         Add POWER8 memset object.
26638         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26639         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
26640         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
26641         implementation.
26642         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
26643         Likewise.
26644         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
26645         multiarch POWER8 memset optimization.
26646         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
26647         POWER8 memset optimization.
26648
26649         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
26650         Remove bzero multiarch objects.
26651         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
26652         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
26653         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
26654         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
26655         Remove define.
26656         [__bzero]: Redefine to specific name.
26657         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
26658         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
26659         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
26660         define.
26661         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
26662         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
26663
26664 2014-09-10  Florian Weimer  <fweimer@redhat.com>
26665
26666         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
26667         warnings into errors.
26668
26669         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
26670         __cxa_thread_atexit_impl prototype.
26671
26672 2014-09-09  Steve Ellcey  <sellcey@mips.com>
26673
26674         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
26675         Fix capitalization of error message.
26676
26677 2014-09-09  Steve Ellcey  <sellcey@mips.com>
26678
26679         * sysdeps/mips/preconfigure: Modify ABI tests.
26680
26681 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
26682
26683         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
26684
26685 2014-09-07  Roland McGrath  <roland@hack.frob.com>
26686             Carlos O'Donell  <carlos@systemhalted.org>
26687
26688         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
26689         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
26690         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
26691         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
26692         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
26693         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
26694         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
26695         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
26696         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
26697         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
26698         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
26699         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
26700         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
26701         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
26702         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
26703         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
26704         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
26705         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
26706         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
26707         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
26708         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
26709         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
26710         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
26711         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
26712         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
26713         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
26714         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
26715         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
26716         Deconditionalize the code that was previously under [RESET_PID].
26717         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
26718         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
26719         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
26720         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
26721         include sysdep.h.
26722
26723 2014-09-08  Allan McRae  <allan@archlinux.org>
26724
26725         * version.h (RELEASE): Set to "development".
26726         (VERSION): Set to "2.20.90"
26727
26728 2014-09-07  Allan McRae  <allan@archlinux.org
26729
26730         * version.h (RELEASE): Set to "stable".
26731         (VERSION): Set to "2.20"
26732         * include/features.h (__GLIBC_MINOR__): Set to 20.
26733
26734         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
26735         Liebler.
26736
26737         * po/ko.po: Update Korean translation from translation project.
26738
26739 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
26740
26741         [BZ #17354]
26742         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
26743         macro for handling signed relocations.
26744
26745 2014-09-03  Florian Weimer  <fweimer@redhat.com>
26746
26747         [BZ #17325]
26748         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
26749         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
26750         assert.
26751         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
26752         * iconvdata/ibm935.c (BODY): Likewise.
26753         * iconvdata/ibm937.c (BODY): Likewise.
26754         * iconvdata/ibm939.c (BODY): Likewise.
26755         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
26756         assert.
26757         * iconvdata/Makefile (iconv-test.out): Pass module list to test
26758         script.
26759         * iconvdata/run-iconv-test.sh: New test loop for checking for
26760         decoder crashers.
26761
26762 2014-09-02  Khem Raj  <raj.khem@gmail.com>
26763
26764         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
26765         libm_hidden_ver.
26766
26767 2014-09-01  Allan McRae  <allan@archlinux.org>
26768
26769         * po/eo.po: Update Esperanto translation from translation project.
26770
26771         * po/ca.po: Update Catalan translation from translation project.
26772
26773 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26774
26775         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
26776         __proc_dostop call.
26777
26778 2014-08-27  Mark Wielaard  <mjw@redhat.com>
26779
26780         [BZ #17319]
26781         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
26782         to call set_thread_area instead of hand written asm.
26783         (__NR_set_thread_area): Removed define.
26784         (TLS_FLAG_WRITABLE): Likewise.
26785         (__ASSUME_SET_THREAD_AREA): Remove check.
26786         (TLS_EBX_ARG): Remove define.
26787         (TLS_LOAD_EBX): Likewise.
26788
26789 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26790
26791         Simplify atomicity of socket creation in bind.
26792
26793         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
26794         looking up the name after linking the file.
26795
26796 2014-08-27  Allan McRae  <allan@archlinux.org>
26797
26798         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
26799
26800 2014-08-26  Florian Weimer  <fweimer@redhat.com>
26801
26802         [BZ #17187]
26803         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
26804         trans_compare, open_translit, __gconv_translit_find):
26805         Remove module loading code.
26806
26807 2014-08-26  Allan McRae  <allan@archlinux.org>
26808
26809         * po/vi.po: Update Vietnamese translation from translation project.
26810
26811         * po/uk.po: Update Ukrainian translation from translation project.
26812
26813         * po/fr.po: Update French translation from translation project.
26814
26815         * po/ru.po: Update Russian translation from translation project.
26816
26817         * po/pl.po: Update Polish translation from translation project.
26818
26819         * po/cs.po: Update Czech translation from translation project.
26820
26821         * po/de.po: Update German translation from translation project.
26822
26823         * po/bg.po: Update Bulgarian translation from translation project.
26824
26825         * po/sv.po: Update Sweedish translation from translation project.
26826
26827         * po/nl.po: Update Dutch translation from translation project.
26828
26829         * po/es.po: Update Spanish translation from translation project.
26830
26831 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
26832
26833         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
26834
26835         * catgets/Makefile (CPPFLAGS-gencat): Remove.
26836         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
26837         (CPPFLAGS-iconvconfig): Likewise.
26838         * timezone/Makefile (CPPFLAGS-zic): Likewise.
26839
26840         * include/libc-symbols.h: Remove unnecessary check for
26841         NOT_IN_libc.
26842         * nptl/pthreadP.h: Likewise.
26843         * sysdeps/aarch64/setjmp.S: Likewise.
26844         * sysdeps/alpha/setjmp.S: Likewise.
26845         * sysdeps/arm/sysdep.h: Likewise.
26846         * sysdeps/i386/setjmp.S: Likewise.
26847         * sysdeps/m68k/setjmp.c: Likewise.
26848         * sysdeps/posix/getcwd.c: Likewise.
26849         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
26850         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
26851         * sysdeps/s390/s390-32/setjmp.S: Likewise.
26852         * sysdeps/s390/s390-64/setjmp.S: Likewise.
26853         * sysdeps/sh/sh3/setjmp.S: Likewise.
26854         * sysdeps/sh/sh4/setjmp.S: Likewise.
26855         * sysdeps/unix/alpha/sysdep.h: Likewise.
26856         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
26857         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
26858         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
26859         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
26860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
26861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
26862         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
26863         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
26864         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
26865         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
26866         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
26867         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
26868         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
26869         * sysdeps/x86_64/setjmp.S: Likewise.
26870
26871 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
26872
26873         [BZ #17263]
26874         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
26875         <stdint.h>.
26876         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
26877         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
26878
26879 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
26880
26881         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
26882
26883         [BZ #17262]
26884         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
26885         and __x86_64__ when disabling x87 inline functions.
26886
26887 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
26888
26889         [BZ #17259]
26890         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
26891         asm statement with __cpuid_count.
26892
26893 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
26894
26895         * configure.ac: Change __ehdr_start code to dereference the struct.
26896         Run readelf on the output to look for relocations.
26897         * configure: Regenerated.
26898
26899 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
26900
26901         [BZ #17261]
26902         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
26903         value to 0.
26904         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
26905
26906 2014-08-12  Roland McGrath  <roland@hack.frob.com>
26907
26908         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
26909
26910 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
26911
26912         [BZ #16892]
26913         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
26914         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
26915
26916 2014-08-12  Sean Anderson  <seanga2@gmail.com>
26917
26918         * malloc/malloc.c: Fix typo in comment.
26919
26920 2014-08-09  Allan McRae  <allan@archlinux.org>
26921
26922         * Regenerate libc.po.
26923
26924 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
26925
26926         * intl/tst-gettext2.sh: Check every lang file for creation.
26927
26928 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
26929
26930         * sysdeps/aarch64/fpu/math_private.h
26931         (libc_feholdsetround_noex_aarch64_ctx): New function.
26932
26933 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
26934
26935         * sysdeps/arm/armv6/strcpy.S (strcpy):
26936         Fix performance issue in misaligned cases.
26937
26938 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26939
26940         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
26941         Move definition from termios.h.
26942         (struct termio): Likewise.
26943         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
26944         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
26945         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
26946         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
26947         Likewise.
26948         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
26949         Move definition to ioctl-types.h
26950         (struct termio): Likewise.
26951         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
26952         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
26953         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
26954         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
26955         Likewise.
26956
26957 2014-08-05  Richard Henderson  <rth@redhat.com>
26958
26959         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
26960         exceptions.
26961         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
26962         Add fraiseexcpt.
26963         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
26964         Use __feraiseexcept.
26965         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
26966         Protect libm symbols with IS_IN_libm.
26967
26968         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
26969
26970 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
26971
26972         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
26973
26974 2014-08-04  Will Newton  <will.newton@linaro.org>
26975
26976         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
26977         file.
26978
26979 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
26980
26981         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
26982         variants for each function.
26983
26984 2014-08-04  Roland McGrath  <roland@hack.frob.com>
26985
26986         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
26987         appended ...
26988         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
26989         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
26990         appended ...
26991         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
26992         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
26993         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
26994         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
26995         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
26996         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
26997         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
26998         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
26999         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
27000         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
27001         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
27002         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
27003         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
27004         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
27005         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
27006         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
27007         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
27008         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
27009         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
27010         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
27011         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
27012         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
27013         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
27014         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
27015         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
27016         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
27017         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
27018         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
27019         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
27020         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
27021         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
27022         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
27023         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
27024         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
27025         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
27026         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
27027         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
27028         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
27029         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
27030         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
27031         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
27032         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
27033         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
27034         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
27035         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
27036         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
27037         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
27038         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
27039         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
27040         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
27041         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
27042         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
27043         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
27044         Update #include.
27045         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
27046         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
27047
27048 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27049
27050         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
27051         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
27052         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
27053         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
27054         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
27055         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
27056
27057 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27058
27059         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
27060         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
27061         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
27062         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
27063
27064 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27065
27066         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
27067         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
27068         (__libc_vfork): Define function under this name.
27069         (__vfork): Define as an alias.
27070         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
27071         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
27072
27073 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27074
27075         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
27076         that was previously under [RESET_PID].
27077         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
27078
27079 2014-08-04  Andreas Schwab  <schwab@suse.de>
27080
27081         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
27082
27083 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
27084
27085         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
27086         (main): Likewise.
27087
27088 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27089
27090         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
27091
27092 2014-08-01  Richard Henderon  <rth@redhat.com>
27093
27094         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
27095         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
27096         typo in exact zero test.
27097         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27098         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27099         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27100
27101 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27102
27103         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
27104         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
27105         * sysdeps/arm/sysdep.h: ... here.
27106         [!__ASSEMBLER__]: Include <stdint.h>.
27107
27108 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27109
27110         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
27111         (HAVE_WCTYPE_H): Likewise.
27112         (HAVE_ISWCTYPE): Likewise.
27113         (ENABLE_NLS): Likewise.
27114         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
27115         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
27116
27117         * posix/regex_internal.c: Check if DEBUG is defined and is
27118         set.
27119
27120         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
27121         (HAVE_MBSRTOWCS): Likewise.
27122         * posix/fnmatch.c: Include string.h unconditionally.
27123
27124 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
27125
27126         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
27127         reversal.
27128
27129 2014-07-31  Roland McGrath  <roland@hack.frob.com>
27130
27131         * sysdeps/generic/safe-fatal.h: New file.
27132         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
27133         * nptl/forward.c: Include it.
27134         (__pthread_unwind): Use __safe_fatal as default action, rather
27135         than a bogus use of INTERNAL_SYSCALL that could never work.
27136
27137         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
27138         * configure.ac (libc_cv_builtin_trap): New test.
27139         * configure: Regenerated.
27140         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
27141         (ABORT_INSTRUCTION): Define using __builtin_trap.
27142
27143         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
27144         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
27145         * sysdeps/nptl/nptl-signals.h: New file.
27146         * nptl/pthreadP.h: Include <nptl-signals.h>.
27147
27148 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27149
27150         * sysdeps/s390/s390-64/utf16-utf32-z9.c
27151         (ONE_DIRECTION): Define.
27152         * sysdeps/s390/s390-64/utf8-utf16-z9.c
27153         (ONE_DIRECTION): Define.
27154         * sysdeps/s390/s390-64/utf8-utf32-z9.c
27155         (ONE_DIRECTION): Define.
27156
27157 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27158
27159         * sysdeps/s390/Makefile: Delete file.
27160         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
27161         * sysdeps/s390/__longjmp.c: Delete file.
27162         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
27163         Remove fields __flags and __reserved.
27164         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
27165         and add versioning.
27166         * sysdeps/s390/rtld-__longjmp.c: Delete file.
27167         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
27168         * sysdeps/s390/rtld-setjmp.S: Likewise.
27169         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
27170         * sysdeps/s390/s390-32/__longjmp.c: ... here.
27171         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
27172         * sysdeps/s390/s390-32/setjmp.S: ... here.
27173         Add versioning.
27174         (__sigsetjmp): Remove setting __flags field.
27175         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
27176         * sysdeps/s390/s390-64/__longjmp.c: ... here.
27177         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
27178         * sysdeps/s390/s390-64/setjmp.S: ... here.
27179         Add versioning.
27180         (__sigsetjmp): Remove setting __flags field.
27181         * sysdeps/s390/setjmp.S: Delete file.
27182         * sysdeps/s390/sigjmp.c: Likewise.
27183         * sysdeps/s390/v1-longjmp.c: Likewise.
27184         * sysdeps/s390/v1-setjmp.h: Likewise.
27185         * sysdeps/s390/v1-sigjmp.c: Likewise.
27186         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
27187         Remove v1-longjmp_chk.
27188         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
27189         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
27190         Include debug/longjmp_chk.c and add versioning.
27191         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
27192         Include nptl/pt-longjmp.c and add versioning.
27193         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
27194         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
27195         Include __longjmp.c.
27196         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
27197         Move to ...
27198         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
27199         (__getcontext): Remove setting __flags field.
27200         Add versioning.
27201         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
27202         Don't restore upper high grps.
27203         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
27204         Likewise.
27205         (__swapcontext): Remove setting uc_flags field.
27206         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
27207         Delete file.
27208         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
27209         Include __longjmp.c.
27210         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
27211         Move to ...
27212         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
27213         (__getcontext): Remove setting __flags field.
27214         Add versioning.
27215         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
27216         (__swapcontext): Remove setting uc_flags field.
27217         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
27218         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
27219         Remove fields uc_high_gprs and __reserved.
27220         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
27221         New file with reverted content.
27222         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
27223         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
27224         Regenerated.
27225         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
27226         Regenerated.
27227
27228 2014-07-31  Andreas Schwab  <schwab@suse.de>
27229
27230         * config.h.in (HAVE_IFUNC): Define to 0.
27231         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
27232         definedness.
27233
27234 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
27235
27236         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27237         memmove-avx-unaligned, memcpy-avx-unaligned and
27238         mempcpy-avx-unaligned.
27239         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27240         Add tests for AVX memcpy functions.
27241         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
27242         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
27243         memcpy_chk.
27244         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
27245         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
27246         memmove_chk.
27247         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
27248         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
27249         mempcpy_chk.
27250         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
27251         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
27252         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
27253
27254 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27255
27256         [BZ #17213]
27257         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
27258         powerpc64le.
27259
27260 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
27261
27262         [BZ #16839]
27263         * manual/llio.texi: Add section about open file description locks.
27264         * manual/examples/ofdlocks.c: Example of open file description
27265         lock usage.
27266         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
27267         F_OFD_SETLK, and F_OFD_SETLKW.
27268
27269 2014-07-23  Allan McRae  <allan@archlinux.org>
27270
27271         * po/es.po: Update Spanish translation from translation project.
27272
27273 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
27274
27275         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
27276
27277 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
27278
27279         [BZ #17078]
27280         * sysdeps/arm/dl-machine.h (elf_machine_rela)
27281         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
27282         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
27283
27284 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
27285
27286         [BZ #17088]
27287         * math/fesetenv.c (__fesetenv)
27288         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
27289         * math/feupdateenv.c (__feupdateenv)
27290         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
27291
27292         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
27293         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
27294         (__ASSUME_SOCKETCALL): Do not define.
27295
27296         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
27297         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
27298         (__ASSUME_SOCKETCALL): Do not define.
27299         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
27300         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27301         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27302         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27303         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27304         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
27305         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27306         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27307
27308         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
27309         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
27310         (__ASSUME_SOCKETCALL): Do not define.
27311         (__ASSUME_IPC64): Define unconditionally.
27312         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27313         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27314         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27315         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27316         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
27317         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27318         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
27319         Likewise.
27320
27321         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
27322         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
27323         (__ASSUME_SOCKETCALL): Do not define.
27324         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
27325         (__ASSUME_FUTEX_LOCK_PI): Likewise.
27326         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27327         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
27328         (__ASSUME_REQUEUE_PI): Define unconditionally.
27329         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
27330         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
27331         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27332         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
27333         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27334         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27335
27336         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
27337         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
27338         (__ASSUME_SOCKETCALL): Do not define.
27339         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
27340         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27341         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27342         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
27343         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27344         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27345
27346         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
27347         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
27348         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27349         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
27350         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27351         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
27352         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27353         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
27354         (__ASSUME_GETCPU_SYSCALL): Likewise.
27355
27356         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
27357         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
27358         cases for individual architectures.
27359         * sysdeps/gnu/configure: Regenerated.
27360         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
27361         LIBC_SLIBDIR_RTLDDIR.
27362         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
27363         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
27364         LIBC_SLIBDIR_RTLDDIR.
27365         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
27366         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
27367         LIBC_SLIBDIR_RTLDDIR.
27368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
27369         Regenerated.
27370         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
27371         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
27372         file.
27373         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
27374         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
27375         file.
27376         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
27377         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
27378         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
27379         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
27380
27381         * sysdeps/aarch64/shlib-versions: Move to ...
27382         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
27383         * sysdeps/alpha/shlib-versions: Move to ...
27384         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
27385         * sysdeps/arm/shlib-versions: Move to ...
27386         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
27387         * sysdeps/hppa/shlib-versions: Move all contents except for
27388         libgcc_s entry to ...
27389         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
27390         entry from ...
27391         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
27392         * sysdeps/ia64/shlib-versions: Move to ...
27393         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
27394         entry from ...
27395         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
27396         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
27397         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
27398         * sysdeps/microblaze/shlib-versions: Move to ...
27399         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
27400         * sysdeps/mips/shlib-versions: Move to ...
27401         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
27402         entry from ...
27403         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
27404         * sysdeps/tile/shlib-versions: Move to ...
27405         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
27406         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
27407         from ...
27408         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
27409         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
27410         entry from ...
27411         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
27412
27413 2014-07-17  Will Newton  <will.newton@linaro.org>
27414
27415         * sysdeps/arm/bits/atomic.h
27416         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
27417         (__arch_compare_and_exchange_bool_16_int): Likewise.
27418         (__arch_compare_and_exchange_bool_64_int): Likewise.
27419
27420         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
27421         into an #else block.
27422
27423 2014-07-16  Roland McGrath  <roland@hack.frob.com>
27424
27425         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
27426         just Linux configurations.  Test empirically that the compiler sets
27427         __ARM_EABI__, rather than using the tuple to decide.
27428         * sysdeps/arm/preconfigure: Regenerated.
27429         * sysdeps/unix/sysv/linux/arm/configure: File removed.
27430         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
27431         contents appended ...
27432         * sysdeps/arm/configure.ac: ... here.
27433         * sysdeps/arm/configure: Regenerated.
27434
27435 2014-07-15  Roland McGrath  <roland@hack.frob.com>
27436
27437         * nptl/pthread_kill.c: New file.
27438         * nptl/pthread_sigmask.c: New file.
27439         * nptl/pthread_sigqueue.c: New file.
27440
27441         * sysdeps/nptl/lowlevellock.h: New file.
27442         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
27443         * sysdeps/nptl/lowlevellock-futex.h: New file.
27444
27445         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
27446         Remove dead declarations.
27447
27448 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
27449
27450         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
27451         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
27452         config-cflags-avx2.
27453         * sysdeps/x86_64/configure.ac: Likewise.
27454         * sysdeps/i386/configure: Regenerated.
27455         * sysdeps/x86_64/configure: Likewise.
27456         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27457         memset-avx2 only if config-cflags-avx2 is yes.
27458         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27459         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
27460         defined.
27461         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
27462         only if HAVE_AVX2_SUPPORT is defined.
27463         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27464
27465 2014-07-14  Alan Modra  <amodra@gmail.com>
27466
27467         [BZ #17153]
27468         * elf/elf.h (DT_PPC64_NUM): Correct value.
27469         * NEWS: Add to fixed bug list.
27470
27471 2014-07-13  Jim Meyering  <meyering@fb.com>
27472
27473         [BZ 17150]
27474         regex: don't deref NULL upon heap allocation failure
27475         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
27476         failure in one more place.
27477         To trigger the segfault, configure grep -with-included-regex,
27478         build it, and run these commands:
27479         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
27480
27481 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
27482
27483         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
27484
27485 2014-07-11  Richard Henderson  <rth@redhat.com>
27486
27487         * sysdeps/aarch64/libm-test-ulps: Update.
27488
27489 2014-07-10  Florian Weimer  <fweimer@redhat.com>
27490
27491         [BZ #17135]
27492         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
27493         * nptl/allocatestack.c (__nptl_setxid_error): New function.
27494         (__nptl_setxid): Initialize error member.  Call
27495         __nptl_setxid_error.
27496         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
27497         * nptl/descr.h (struct xid_command): Add error member.
27498         * nptl/tst-setuid3.c: New file.
27499         * nptl/Makefile (tests): Add it.
27500
27501 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27502
27503         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
27504         New define.
27505         (__lll_trylock): Use __lll_base_trylock.
27506         (__lll_cond_trylock): Likewise.
27507
27508 2014-07-10  Roland McGrath  <roland@hack.frob.com>
27509
27510         * nptl/pthread_create.c (start_thread): Use atomic_or and
27511         lll_futex_wake directly rather than lll_robust_dead.
27512         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
27513         (lll_robust_dead): Macro removed.
27514         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
27515         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
27516         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
27517         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27518         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27519         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
27520         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
27521         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27522         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
27523         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27524         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27525         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27526         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27527         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27528         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27529
27530         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
27531         Use atomic_compare_and_exchange_val_acq directly rather than
27532         lll_robust_trylock.
27533         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
27534         (__lll_robust_trylock, lll_robust_trylock): Removed.
27535         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
27536         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
27537         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
27538         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
27539         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
27540         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
27541         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
27542         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
27543         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
27544         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
27545         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
27546         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
27547         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
27548         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
27549
27550 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27551
27552         * manual/locale.texi (Locale Names): New section documenting
27553         locale name syntax.  Adjust menu and node chaining accordingly.
27554         (Choosing Locale): Reference Locale Names, Locale Categories.
27555         Mention setting LC_ALL=C.  Reflect that name syntax is now
27556         documented.
27557         (Locale Categories): New section title.  Reference Locale Names.
27558         LC_ALL is an environment variable, but not a category.
27559         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
27560         description, now in Locale Name.  Reference that section.  Locale
27561         name syntax is now documented.
27562
27563 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27564
27565         [BZ #17137]
27566         * locale/findlocale.c (name_present, valid_locale_name): New
27567         functions.
27568         (_nl_find_locale): Use the loc_name variable to store name
27569         candidates.  Call name_present and valid_locale_name to check and
27570         validate locale names.  Return an error if the locale is invalid.
27571
27572 2014-07-02  Florian Weimer  <fweimer@redhat.com>
27573
27574         * locale/setlocale.c (setlocale): Use strdup for allocating
27575         composite name copy.
27576
27577 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27578
27579         Sync up with gnulib.
27580         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
27581         [!_LIBC && ENABLE_NLS]: Include gettext.h.
27582         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
27583         and _GL_ARG_NONNULL.
27584         [USE_UNLOCKED_IO]: Include unlocked-io.h.
27585         [!_LIBC]: Include code for Windows and Cygwin.
27586         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
27587         Include prototype for int strerror_r.
27588         [!_LIBC] (is_open): New function.
27589         (flush_stdout): New function.
27590         (print_errno_message): Use it.
27591         (error): Likewise.
27592         (error_at_line): Likewise.
27593         (error_tail) Add function attribute macros.  Use
27594         __builtin_expect.
27595
27596         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
27597
27598         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
27599
27600         * io/ftw.c: Include sys/param.h unconditionally.
27601
27602         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
27603
27604         [BZ #17125]
27605         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
27606         libc_freeres_ptr.
27607         (freecache): New function to free CACHE on exit.
27608
27609         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
27610         initialization.
27611
27612 2014-07-09  David S. Miller  <davem@davemloft.net>
27613
27614         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27615
27616         * sysdeps/sparc/nptl/internaltypes.h: Delete.
27617         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
27618         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
27619         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
27620         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
27621         * sysdeps/sparc/nptl/sem_init.c: Likewise.
27622         * sysdeps/sparc/nptl/sem_post.c: Likewise.
27623         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
27624         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
27625         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
27626         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
27627         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
27628         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
27629
27630 2014-07-09  Andreas Schwab  <schwab@suse.de>
27631
27632         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
27633         output.
27634         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
27635         (do_test): Likewise.
27636
27637         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27638
27639 2014-07-09  Will Newton  <will.newton@linaro.org>
27640
27641         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
27642         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
27643         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
27644         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
27645         * sysdeps/hppa/start.S (_start): Likewise.
27646
27647 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
27648
27649         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
27650
27651         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
27652         defined.
27653
27654 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
27655
27656         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
27657         after checking that it is non-NULL.
27658
27659         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
27660
27661 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27662
27663         * sysdeps/powerpc/memmove.c: Remove file.
27664         * sysdeps/powerpc/powerpc32/power4/memcopy.h
27665         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
27666         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
27667         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
27668         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
27669         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
27670         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
27671         string memmove instead of removed powerpc one.
27672
27673         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
27674         [weak_alias]: Fix compiler warning due trailing data.
27675         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
27676         [weak_alias]: Likewise.
27677         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
27678         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
27679
27680         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
27681         (__libc_ifunc_impl_list): Add memmove functions.
27682
27683 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
27684
27685         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
27686         Remove code.
27687         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
27688         Likewise.
27689         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
27690         Likewise.
27691         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
27692         Likewise.
27693         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
27694         Likewise.
27695         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
27696         Likewise.
27697         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
27698         Likewise.
27699         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
27700         Likewise.
27701         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
27702         Likewise.
27703         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
27704         Likewise.
27705         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
27706         Likewise.
27707         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
27708         Likewise.
27709         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
27710         Likewise.
27711         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
27712         Likewise.
27713         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
27714         Likewise.
27715         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
27716         Likewise.
27717         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
27718         Likewise.
27719
27720 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27721
27722         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
27723         to avoid alignment traps in non-cacheable memory.
27724         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
27725
27726         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
27727         multiarch objects.
27728         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
27729         file: multiarch power7 memmove.
27730         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
27731         multiarch default memmove.
27732         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
27733         multiarch memove for powerpc32/power4.
27734
27735         * string/bcopy.c: Use full path to include memmove.c.
27736         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
27737         multiarch objects.
27738         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
27739         bcopy for powerpc64.
27740         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
27741         bcopy for powerpc64.
27742         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
27743         and memmove implementations.
27744         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
27745         optimized multiarch memmove for POWER7/powerpc64.
27746         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
27747         default multiarch memmove for powerpc64.
27748         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
27749         multiarch for powerpc64.
27750         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
27751         for POWER7/powerpc64.
27752         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
27753         memmove for POWER7/powerpc64.
27754
27755         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
27756         glibc default one.
27757
27758         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
27759         __ELF_NATIVE_CLASS equal to 64.
27760
27761 2014-07-07  Roland McGrath  <roland@hack.frob.com>
27762
27763         * sysdeps/nptl/lowlevellock.h: File removed.
27764
27765         * NEWS: NPTL is no longer an add-on!
27766         * nptl/internaltypes.h: Moved ...
27767         * sysdeps/nptl/internaltypes.h: ... here.
27768         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
27769         * sysdeps/nptl/fork.c: Likewise.
27770         * sysdeps/nptl/gai_misc.h: Likewise.
27771         * sysdeps/nptl/librt-cancellation.c: Likewise.
27772         * sysdeps/nptl/jmp-unwind.c: Likewise.
27773         * sysdeps/nptl/setxid.h: Likewise.
27774         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
27775         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
27776         * sysdeps/unix/sysv/linux/arm/Implies: New file.
27777         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
27778         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
27779         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
27780         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
27781         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
27782         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
27783         * sysdeps/unix/sysv/linux/mips/Implies: New file.
27784         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
27785         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
27786         * sysdeps/unix/sysv/linux/sh/Implies: New file.
27787         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
27788         * sysdeps/unix/sysv/linux/tile/Implies: New file.
27789         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
27790         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
27791         * nptl/Makeconfig: Moved ...
27792         * sysdeps/nptl/Makeconfig: ... here.
27793         * nptl/configure: File removed.
27794         * nptl/ANNOUNCE: File removed.
27795         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
27796         * sysdeps/unix/sysv/linux/configure: Regenerated.
27797
27798         * nptl/Makefile (routines): Add libc_pthread_init,
27799         libc_multiple_threads, register-atfork and unregister-atfork.
27800         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
27801         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
27802         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
27803         pthread-pi-defines.sym, structsem.sym.
27804         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
27805         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
27806         [$(subdir) = nptl] (tests): Add tst-setgetname.
27807         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
27808         * sysdeps/unix/sysv/linux/sigaction.c: Just include
27809         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
27810         [!LIBC_SIGACTION]: Remove aliases.
27811         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
27812         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
27813         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
27814         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
27815         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
27816         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
27817         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
27818         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
27819         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
27820         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
27821         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
27822         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
27823         __libc_allocate_rtsig_private.
27824         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
27825         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
27826         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
27827         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
27828         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
27829         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
27830         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
27831         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
27832         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
27833         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
27834         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
27835         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
27836         * nptl/internaltypes.h: ... here.
27837         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
27838         * sysdeps/nptl/jmp-unwind.c: ... here.
27839         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
27840         * nptl/libc-lowlevellock.c: ... here.
27841         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
27842         * nptl/libc_multiple_threads.c: ... here.
27843         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
27844         * nptl/libc_pthread_init.c: ... here.
27845         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
27846         * nptl/lowlevelbarrier.sym: ... here.
27847         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
27848         * nptl/lowlevelcond.sym: ... here.
27849         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
27850         * nptl/lowlevellock.c: ... here.
27851         * nptl/lowlevellock.h: Moved ...
27852         * sysdeps/nptl/lowlevellock.h: ... here.
27853         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
27854         * nptl/lowlevelrobustlock.c: ... here.
27855         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
27856         * nptl/lowlevelrobustlock.sym: ... here.
27857         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
27858         * nptl/lowlevelrwlock.sym: ... here.
27859         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
27860         * nptl/pt-fork.c: ... here.
27861         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
27862         * nptl/pthread-pi-defines.sym: ... here.
27863         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
27864         * nptl/pthread_attr_getaffinity.c: ... here.
27865         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
27866         * nptl/pthread_attr_setaffinity.c: ... here.
27867         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
27868         * nptl/pthread_mutex_cond_lock.c: ... here.
27869         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
27870         Update #include.
27871         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
27872         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
27873         * nptl/pthread_once.c: ... here, replacing old file.
27874         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
27875         * nptl/pthread_yield.c: ... here.
27876         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
27877         * nptl/register-atfork.c: ... here.
27878         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
27879         * nptl/sem_post.c: ... here.
27880         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
27881         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
27882         * nptl/sem_timedwait.c: ... here.
27883         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
27884         * nptl/sem_trywait.c: ... here.
27885         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
27886         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
27887         * nptl/sem_wait.c: ... here.
27888         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
27889         * nptl/structsem.sym: ... here.
27890         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
27891         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
27892         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
27893         * nptl/unregister-atfork.c: ... here.
27894         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
27895         * nptl/unwindbuf.sym: ... here.
27896         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
27897         * sysdeps/nptl/fork.c: ... here.
27898         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
27899         * sysdeps/nptl/fork.h: ... here.
27900         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
27901         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
27902         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
27903         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
27904         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
27905         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
27906         * sysdeps/unix/sysv/linux/getpid.c: ... here.
27907         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
27908         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
27909         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
27910         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
27911         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
27912         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
27913         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
27914         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
27915         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
27916         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
27917         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
27918         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
27919         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
27920         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
27921         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
27922         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
27923         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
27924         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
27925         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
27926         * sysdeps/unix/sysv/linux/raise.c: ... here.
27927         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
27928         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
27929         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
27930         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
27931         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
27932         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
27933         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
27934         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
27935         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
27936         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
27937         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
27938         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
27939         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
27940         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
27941         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
27942
27943 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
27944
27945         * sysdeps/generic/memcopy.h: Add comment for
27946         MEMCPY_OK_FOR_FWD_MEMMOVE.
27947
27948 2014-07-04  Will Newton  <will.newton@linaro.org>
27949
27950         * string/memchr.c: Merge from gnulib.
27951         [_LIBC]: Remove conditionals.
27952         (__ptr_t): Remove define.
27953         (LONG_MAX_32_BITS): Likewise.
27954         (LONG_MAX): Likewise.
27955         (MEMCHR): Use ANSI prototype and optimize algorithm.
27956
27957         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
27958
27959 2014-07-03  Roland McGrath  <roland@hack.frob.com>
27960
27961         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
27962         (lll_futex_timed_wait_bitset): Fix syscall argument count.
27963
27964         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
27965         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
27966         in a bare environment with no <stdlib.h> installed.
27967         * sysdeps/nptl/configure: Regenerated.
27968
27969         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
27970
27971         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
27972         AC_EGREP_CPP for kernel header checks, so they only succeed if
27973         including <linux/version.h> actually works right.
27974         * sysdeps/unix/sysv/linux/configure: Regenerated.
27975
27976         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
27977         value so it's not diagnosed as unused.
27978
27979         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
27980         thing) with "ifeq ($(subdir),rt)".
27981
27982 2014-07-03  Richard Henderson  <rth@redhat.com>
27983
27984         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
27985         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
27986         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
27987
27988         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
27989         (math_force_eval): New.
27990
27991         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
27992         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
27993
27994         * sysdeps/alpha/fpu/s_round.c: Remove file.
27995         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
27996
27997         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
27998         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
27999         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
28000         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
28001         (_dl_start, print_statistics): Likewise.
28002         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
28003         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
28004
28005         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28006         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28007         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28008         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28009         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28010         (HP_SMALL_TIMING_AVAIL): Define.
28011         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28012         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28013         (HP_SMALL_TIMING_AVAIL): Define.
28014         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28015         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28016
28017         * sysdeps/aarch64/hp-timing.h: New file.
28018
28019         * sysdeps/generic/hp-timing.h: Remove dead comment.
28020         * sysdeps/generic/hp-timing-common.h: New file.
28021         * sysdeps/alpha/hp-timing.h: Include it.
28022         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
28023         * sysdeps/i386/i686/hp-timing.h: Likewise.
28024         * sysdeps/ia64/hp-timing.h: Likewise.
28025         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28026         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28027         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
28028         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
28029         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
28030         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
28031         (hp_timing_t): New.
28032
28033         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
28034         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
28035         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
28036         * elf/rtld.c (_dl_start_final): Likewise.
28037         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
28038         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28039         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28040         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28041         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28042         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28043         (HP_TIMING_DIFF_INIT): Remove.
28044         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28045         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28046         (HP_TIMING_DIFF_INIT): Remove.
28047         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28048         * sysdeps/i386/i686/hp-timing.c: Remove file.
28049         * sysdeps/x86_64/hp-timing.c: Remove file.
28050         * sysdeps/ia64/hp-timing.c: Remove file.
28051         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
28052         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
28053         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
28054         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
28055
28056         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
28057         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
28058         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
28059         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28060         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28061         (HP_TIMING_ACCUM): Remove.
28062         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28063         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
28064         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28065
28066         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
28067         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
28068         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
28069         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
28070         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
28071         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28072         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
28073         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28074
28075         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
28076
28077 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
28078
28079         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
28080
28081 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28082
28083         Sync up with gettext.
28084         * intl/loadmsgcat.c: Define O_BINARY if not defined.
28085         [_MSC_VER]: Include malloc.h
28086         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
28087         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
28088         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
28089         TEMP_FAILURE_RETRY.  Cast return of alloca.
28090         [!_LIBC] Call gl_rwlock_init.
28091         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
28092
28093 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28094
28095         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
28096         before checking its value.
28097
28098 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28099
28100         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
28101
28102         * debug/memcpy_chk.c: Don't include pagecopy.h.
28103         * debug/mempcpy_chk.c: Likewise.
28104         * string/memcpy.c: Likewise.
28105         * string/memmove.c: Likewise.
28106         * sysdeps/powerpc/memmove.c: Likewise.
28107         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
28108         definition of PAGE_COPY_FWD_MAYBE here...
28109         * sysdeps/generic/pagecopy.h: ... from here.
28110         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
28111
28112 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
28113             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28114
28115         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
28116         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
28117         optimizations.
28118         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
28119         (__libc_ifunc_impl_list): Likewise.
28120         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
28121         multiarch strcat for PPC64.
28122         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
28123         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
28124
28125 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28126
28127         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
28128
28129 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28130
28131         * intl/loadmsgcat.c: Remove declaration of
28132         get_sysdep_segment_value.
28133         (get_sysdep_segment_value): Use ISO C style.
28134         (_nl_load_domain): Use ISO C style.  Get rid of redundant
28135         semicolon.  Fix typo and formatting in comment.
28136         (_nl_unload_domain): Use ISO C style.
28137
28138         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
28139
28140 2014-07-02  Will Newton  <will.newton@linaro.org>
28141
28142         * malloc/obstack.c: Merge from gnulib master.
28143         [HAVE_CONFIG_H]: Remove conditional code.
28144         [!_LIBC]: Include config.h.
28145         [!ELIDE_CODE]: Don't include inttypes.h, include
28146         stdint.h unconditionally.
28147         (print_and_abort): Mark as _Noreturn.
28148         (_obstack_allocated_p): Mark as __attribute_pure__.
28149         (obstack_free): Rename to __obstack_free.
28150         [!__attribute__]: Remove conditional code.
28151         * malloc/obstack.h: Merge from gnulib master.
28152         [__cplusplus]: Move conditional down.
28153         [!__attribute_pure__]: Define __attribute_pure__ here
28154         if it is not already defined.
28155         (_obstack_memory_used): Mark as __attribute_pure__.
28156         [!__obstack_free]: Define as obstack_free.
28157         [__GNUC__]: Remove check for ancient NeXT gcc.
28158
28159 2014-07-02  Will Newton  <will.newton@linaro.org>
28160             Paul Eggert  <eggert@cs.ucla.edu>
28161
28162         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
28163
28164 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28165
28166         * resolv/gethnamaddr.c: Add comment warning that the file is
28167         not maintained.
28168
28169 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
28170
28171         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
28172         entries.
28173
28174         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
28175         entry for aio_cancel and aio_cancel64.
28176         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
28177         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
28178         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
28179         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
28180         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
28181         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
28182         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
28183         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
28184         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
28185         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
28186         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
28187         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
28188         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
28189
28190 2014-07-01  Roland McGrath  <roland@hack.frob.com>
28191
28192         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
28193         * nptl/pthread_mutex_lock.c: Likewise.
28194         * nptl/pthread_mutex_timedlock.c: Likewise.
28195         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
28196
28197 2014-07-01  Richard henderson  <rth@redhat.com>
28198
28199         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
28200         (__isnan, __isnanl): Remove.
28201         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
28202
28203         * sysdeps/alpha/fpu/libm-test-ulps: Update.
28204
28205 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
28206
28207         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
28208
28209 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28210
28211         * resolv/nss_dns/dns-host.c (getanswer_r)
28212         [MULTI_PTRS_ARE_ALIASES]: Remove code.
28213
28214 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
28215
28216         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28217         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
28218         undefine.
28219         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
28220         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
28221
28222 2014-07-01  Roland McGrath <roland@hack.frob.com>
28223
28224         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
28225         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
28226
28227         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
28228         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
28229
28230         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
28231         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
28232         ... here.
28233         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
28234         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
28235
28236         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
28237         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
28238         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
28239         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
28240
28241         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
28242         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
28243         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
28244         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
28245         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
28246         Moved ...
28247         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
28248         ... here.
28249         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
28250         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
28251         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
28252         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
28253         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
28254         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
28255         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
28256         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
28257         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
28258         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
28259         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
28260         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
28261         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
28262         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
28263         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
28264         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
28265         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
28266         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
28267         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
28268         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
28269         ... here.
28270         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
28271         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
28272         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
28273         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
28274         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
28275         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
28276         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
28277         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
28278
28279 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
28280
28281         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
28282         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
28283         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
28284         Add sysdep.
28285
28286 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28287
28288         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28289
28290 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28291
28292         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
28293         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28294
28295         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
28296
28297         * sysdeps/arm/libm-test-ulps: Regenerated.
28298
28299 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28300             Roland McGrath <roland@hack.frob.com>
28301
28302         * test-skeleton.c (signal_handler): Kill the whole process group
28303         before killing the child individually.
28304         (main): Report any failure on `setpgid'.
28305
28306 2014-06-30  Roland McGrath  <roland@hack.frob.com>
28307
28308         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
28309         from _TLS_H to _ARM_NPTL_TLS_H.
28310         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
28311         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
28312
28313 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28314
28315         [BZ #16539]
28316         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
28317         (__expm1l): Return argument unchanged when small but not
28318         subnormal.
28319
28320         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
28321         include macro name.
28322         (_FP_UNPACK_RAW_1_P): Likewise.
28323         (_FP_PACK_RAW_1): Likewise.
28324         (_FP_PACK_RAW_1_P): Likewise.
28325         (_FP_MUL_MEAT_1_wide): Likewise.
28326         (_FP_MUL_MEAT_DW_1_hard): Likewise.
28327         (_FP_MUL_MEAT_1_hard): Likewise.
28328         (_FP_DIV_MEAT_1_imm): Likewise.
28329         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
28330         (_FP_DIV_MEAT_1_udiv): Likewise.
28331         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
28332         (_FP_UNPACK_RAW_2): Likewise.
28333         (_FP_UNPACK_RAW_2_P): Likewise.
28334         (_FP_PACK_RAW_2): Likewise.
28335         (_FP_PACK_RAW_2_P): Likewise.
28336         (_FP_MUL_MEAT_DW_2_wide): Likewise.
28337         (_FP_MUL_MEAT_2_wide): Likewise.
28338         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
28339         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
28340         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
28341         (_FP_MUL_MEAT_2_gmp): Likewise.
28342         (_FP_DIV_MEAT_2_udiv): Likewise.
28343         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
28344         (_FP_FRAC_SRL_4): Likewise.
28345         (_FP_FRAC_SRST_4): Likewise.
28346         (_FP_FRAC_SRS_4): Likewise.
28347         (_FP_UNPACK_RAW_4): Likewise.
28348         (_FP_UNPACK_RAW_4_P): Likewise.
28349         (_FP_PACK_RAW_4): Likewise.
28350         (_FP_PACK_RAW_4_P): Likewise.
28351         (_FP_MUL_MEAT_DW_4_wide): Likewise.
28352         (_FP_MUL_MEAT_4_wide): Likewise.
28353         (_FP_MUL_MEAT_4_gmp): Likewise.
28354         (umul_ppppmnnn): Likewise.
28355         (_FP_DIV_MEAT_4_udiv): Likewise.
28356         (__FP_FRAC_ADD_4): Likewise.
28357         (__FP_FRAC_SUB_3): Likewise.
28358         (__FP_FRAC_SUB_4): Likewise.
28359         (__FP_FRAC_DEC_3): Likewise.
28360         (__FP_FRAC_DEC_4): Likewise.
28361         (__FP_FRAC_ADDI_4): Likewise.
28362         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
28363         (_FP_FRAC_SRL_8): Likewise.
28364         (_FP_FRAC_SRS_8): Likewise.
28365
28366         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
28367         include macro name.
28368         (FP_UNPACK_RAW_EP): Likewise.
28369         (FP_PACK_RAW_E): Likewise.
28370         (FP_PACK_RAW_EP): Likewise.
28371         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
28372         (_FP_ISSIGNAN): Likewise.
28373         (_FP_ADD_INTERNAL): Likewise.
28374         (_FP_FMA): Likewise.
28375         (_FP_CMP): Likewise.
28376         (_FP_SQRT): Likewise.
28377         (_FP_TO_INT): Likewise.
28378         (_FP_FROM_INT): Likewise.
28379         (FP_EXTEND): Likewise.
28380         (_FP_DIV_MEAT_N_loop): Likewise.
28381
28382 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28383
28384         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
28385         throughout.
28386
28387 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
28388
28389         [BZ #17097]
28390         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
28391         result with correct sign in case of exponents that produce
28392         overflow except for X very close to 1.
28393
28394 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
28395
28396         mktime: merge #if/#ifdef usage from glibc
28397         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
28398         as that works with both Glibc's and Gnulib's style.
28399         See thread starting at Siddhesh Poyarekar's bug report at:
28400         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
28401
28402 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
28403
28404         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
28405         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
28406         * sysdeps/tile/tilegx/memmove.c: Remove file.
28407
28408 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
28409
28410         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
28411         abi-name definition.
28412         * scripts/soversions.awk: Do not handle or generate ABI lines.
28413         * shlib-versions: Remove ABI entries.
28414         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
28415         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
28416
28417 2014-06-27  Roland McGrath  <roland@hack.frob.com>
28418
28419         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
28420         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
28421         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
28422         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
28423         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
28424         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
28425         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
28426         Moved ...
28427         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
28428         ... here.
28429         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
28430         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
28431         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
28432         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
28433         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
28434         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
28435         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
28436         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
28437         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
28438         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
28439         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
28440         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
28441         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
28442         Moved ...
28443         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
28444         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
28445         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
28446         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
28447         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
28448         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
28449         Moved ...
28450         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
28451         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
28452         Moved ...
28453         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
28454         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
28455         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
28456         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
28457         Moved ...
28458         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
28459         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
28460         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
28461         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
28462         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
28463         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
28464         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
28465         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
28466         Moved ...
28467         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
28468         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
28469         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
28470         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
28471         Moved ...
28472         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
28473         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
28474         Moved ...
28475         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
28476         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
28477         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
28478         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
28479         Moved ...
28480         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
28481         ... here.
28482         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
28483         Identical file removed.
28484         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
28485         Moved ...
28486         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
28487         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
28488         Identical file removed.
28489         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
28490         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
28491         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
28492         Moved ...
28493         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
28494         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
28495         Identical file removed.
28496         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
28497         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
28498         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
28499         Identical file removed.
28500         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
28501         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
28502         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
28503         Identical file removed.
28504         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
28505         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
28506         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
28507         Identical file removed.
28508         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
28509         Moved ...
28510         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
28511         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
28512         Identical file removed.
28513         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
28514         Moved ...
28515         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
28516         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
28517         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
28518         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
28519         Identical file removed.
28520         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
28521         Moved ...
28522         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
28523         ... here.
28524         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
28525         Identical file removed.
28526         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
28527         Moved ...
28528         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
28529         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
28530         Identical file removed.
28531         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
28532         Moved ...
28533         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
28534         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
28535         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
28536         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
28537         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
28538         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
28539         Moved ...
28540         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
28541         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
28542         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
28543
28544         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
28545         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
28546         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
28547         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
28548         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
28549
28550 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
28551
28552         [BZ #17092]
28553         * nscd/nscd.c (monitor_child): Return exit status of child
28554         instead of return value from wait syscall.
28555
28556 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
28557
28558         * configure.ac (libc_commonpagesize): Remove variable.
28559         (libc_relro_required): Likewise.
28560         (libc_cv_z_relro): Remove configure test.
28561         * configure: Regenerated.
28562         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
28563         variable.
28564         (libc_relro_required): Likewise.
28565         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
28566         (libc_relro_required): Likewise.
28567         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
28568         (libc_relro_required): Likewise.
28569         * sysdeps/arm/preconfigure: Regenerated.
28570         * sysdeps/ia64/preconfigure: Remove file.
28571         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
28572         variable.
28573         (libc_relro_required): Likewise.
28574
28575         [BZ #16561]
28576         [BZ #16562]
28577         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
28578         (__ieee754_yn): Set FE_TONEAREST mode internally and then
28579         recompute overflowing results in original rounding mode.
28580         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
28581         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
28582         recompute overflowing results in original rounding mode.
28583         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
28584         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28585         recompute overflowing results in original rounding mode.
28586         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
28587         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28588         recompute overflowing results in original rounding mode.
28589         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
28590         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
28591         recompute overflowing results in original rounding mode.
28592         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
28593         (libc_feholdsetround_ctx): New macro.
28594         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
28595         * sysdeps/i386/fpu/libm-test-ulps: Update.
28596         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
28597
28598 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28599
28600         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
28601         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
28602         corresponding .cpsetup call.
28603
28604 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28605
28606         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
28607         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
28608         * sysdeps/arm/Makefile [$(subdir) = csu]
28609         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
28610         (static-only-routines): Add aeabi_read_tp here.
28611         (shared-only-routines): Add libc-aeabi_read_tp here.
28612         (CFLAGS-libc-start.c): Add -fexceptions here.
28613         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
28614         (sysdep_routines, static-only-routines, shared-only-routines):
28615         Don't add to these here.
28616         (CFLAGS-libc-start.c): Likewise.
28617
28618         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
28619         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
28620         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
28621         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
28622         * sysdeps/arm/Makefile [$(subdir) = rt]
28623         (librt-sysdep_routines, librt-shared-only-routines):
28624         Append rt-aeabi_unwind_cpp_pr1 here.
28625         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
28626         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
28627         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
28628         (libpthread-sysdep_routines, libpthread-shared-only-routines):
28629         Append nptl-aeabi_unwind_cpp_pr1 here.
28630         (tests): Filter out tst-cleanupx4 here.
28631         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
28632         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
28633         Don't do those here.
28634
28635 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28636
28637         * scripts/list-sources.sh: Do not handle ports specially.
28638
28639 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28640
28641         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
28642         * sysdeps/arm/feupdateenv.c: Likewise.
28643
28644         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
28645
28646 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28647
28648         * manual/texinfo.tex: Update to version 2014-05-05.10 with
28649         trailing whitespace removed.
28650         * scripts/config.guess: Update to version 2014-03-23.
28651         * scripts/config.sub: Update to version 2014-05-01
28652         * scripts/install-sh: Update to version 2013-12-25.23.
28653         * scripts/move-if-change: Update from gnulib.
28654
28655 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
28656
28657         * debug/memmove_chk.c: Remove pagecopy.h include.
28658
28659 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
28660
28661         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
28662         identical to gnulib mktime.
28663
28664 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
28665
28666         * configure.ac: Do not test for machine being rs6000.  Do not test
28667         for powerpc*-*soft.
28668         * configure: Regenerated.
28669
28670         [BZ #11505]
28671         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
28672         test.
28673         * configure: Regenerated.
28674         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
28675         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
28676         Remove configure test.
28677         * sysdeps/arm/configure: Regenerated.
28678         * sysdeps/nptl/configure.ac: Do not check
28679         libc_cv_asm_cfi_directives.
28680         * sysdeps/nptl/configure: Regenerated.
28681         * sysdeps/x86_64/nptl/configure.ac: Remove file.
28682         * sysdeps/x86_64/nptl/configure: Remove generated file.
28683         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
28684         unconditional.
28685         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
28686
28687 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
28688
28689         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
28690         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
28691         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
28692         it is defined.
28693
28694         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
28695         instead of whether it is defined.
28696         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
28697         * sysdeps/hppa/dl-machine.h: Likewise.
28698         * sysdeps/ia64/dl-machine.h: Likewise.
28699         * sysdeps/m68k/dl-machine.h: Likewise.
28700         * sysdeps/microblaze/dl-machine.h: Likewise.
28701         * sysdeps/mips/dl-machine.: Likewise.
28702         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
28703         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
28704         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
28705         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
28706         * sysdeps/sh/dl-machine.h: Likewise.
28707         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
28708         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
28709         * sysdeps/tile/dl-machine.h: Likewise.
28710         * sysdeps/x86_64/dl-machine.h: Likewise.
28711
28712         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
28713         code.
28714         (verify_persistent_db): Likewise.
28715
28716 2014-06-26  Roland McGrath  <roland@hack.frob.com>
28717
28718         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
28719         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
28720         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
28721         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
28722         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
28723         Moved ...
28724         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
28725         ... here.
28726         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
28727         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
28728         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
28729         Identical file removed.
28730         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
28731         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
28732         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
28733         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
28734         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
28735         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
28736         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
28737         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
28738         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
28739         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
28740         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
28741         Moved ...
28742         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
28743         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
28744         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
28745         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
28746         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
28747         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
28748         Moved ...
28749         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
28750         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
28751         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
28752         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
28753         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
28754         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
28755         Identical file removed.
28756         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
28757         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
28758         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
28759         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
28760         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
28761         Moved ...
28762         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
28763         ... here.
28764         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
28765         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
28766         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
28767         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
28768         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
28769         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
28770         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
28771         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
28772         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
28773         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
28774         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
28775         Moved ...
28776         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
28777         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
28778         Moved ...
28779         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
28780         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
28781         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
28782         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
28783         Moved ...
28784         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
28785         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
28786         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
28787
28788         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
28789         folded into ...
28790         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
28791         * sysdeps/unix/sysv/linux/s390/Versions
28792         (libpthread: GLIBC_2.19): New version set.
28793         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
28794         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
28795         (librt: GLIBC_2.3.3): New version set.
28796         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
28797         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
28798         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
28799         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
28800         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
28801         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
28802         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
28803         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
28804         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
28805         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
28806         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
28807         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
28808         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
28809         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
28810         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
28811         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
28812         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
28813         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
28814         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
28815         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
28816         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
28817         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
28818         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
28819         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
28820         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
28821         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
28822         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
28823         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
28824         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
28825         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
28826         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
28827         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
28828         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
28829         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
28830         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
28831         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
28832         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
28833         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
28834         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
28835         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
28836         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
28837         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
28838         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
28839         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
28840         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
28841
28842         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
28843         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
28844         (__libc_vfork): Define the function under this name.
28845         [!NOT_IN_libc] (__vfork): Make this an alias.
28846         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
28847         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
28848         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
28849         (__libc_vfork): Define the function under this name.
28850         [!NOT_IN_libc] (__vfork): Make this an alias.
28851         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
28852         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
28853         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
28854         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
28855         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
28856         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
28857
28858         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
28859         code that was previously under [RESET_PID].
28860         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
28861         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
28862         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
28863
28864         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
28865         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
28866         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
28867         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
28868         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
28869         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
28870         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
28871         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
28872         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
28873         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
28874         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
28875         Moved ...
28876         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
28877         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
28878         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
28879         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
28880         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
28881         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
28882         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
28883         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
28884         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
28885         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
28886         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
28887         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
28888         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
28889         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
28890         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
28891         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
28892         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
28893         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
28894         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
28895         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
28896         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
28897         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
28898         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
28899         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
28900         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
28901         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
28902         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
28903         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
28904         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
28905
28906 2014-06-25  Roland McGrath  <roland@hack.frob.com>
28907
28908         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
28909         that was previously under [RESET_PID].
28910         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
28911
28912 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
28913
28914         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
28915         not undefine and redefine.
28916         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
28917         [O_CLOEXEC]: Make code unconditional.
28918         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
28919         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
28920         <kernel-features.h>.
28921         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
28922         conditional variable definition.
28923         (shm_open) [O_CLOEXEC]: Make code unconditional.
28924         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
28925         code.
28926
28927         * configure.ac (USE_REGPARMS): Don't define here.
28928         * configure: Regenerated.
28929         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
28930         * sysdeps/i386/configure: Regenerated.
28931
28932         * nptl/createthread.c: Don't include kernel-features.h.
28933         * nptl/pthread_cancel.c: Likewise.
28934         * nptl/pthread_condattr_setclock.c: Likewise.
28935         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
28936         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
28937         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
28938         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
28939         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
28940         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
28941         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
28942         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
28943         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
28944         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
28945         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
28946         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
28947         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
28948         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
28949         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
28950         * nscd/gai.c: Likewise.
28951         * nss/nss_db/db-open.c: Likewise.
28952         * sysdeps/generic/ldsodefs.h: Likewise.
28953         * sysdeps/sh/nptl/tls.h: Likewise.
28954         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
28955         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
28956         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
28957         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
28958         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
28959         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
28960         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
28961         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
28962         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
28963         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
28964         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
28965         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
28966         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
28967         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
28968         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
28969         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
28970         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
28971         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
28972         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
28973         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
28974         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
28975         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
28976         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
28977         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
28978         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
28979         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
28980         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
28981         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
28982         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
28983         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
28984         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
28985         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
28986         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
28987         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
28988         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
28989         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
28990         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
28991         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
28992         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
28993         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
28994         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
28995         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
28996         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
28997         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
28998         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
28999         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
29000         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
29001         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
29002         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
29003         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
29004         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
29005         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
29006         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
29007         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
29008         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
29009         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
29010         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
29011         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
29012         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
29013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
29014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
29015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
29016         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
29017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
29018         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
29019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
29020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
29021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
29022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
29023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
29024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
29025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
29026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
29027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
29028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
29029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
29030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
29031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
29032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
29033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
29034         * sysdeps/unix/sysv/linux/pread.c: Likewise.
29035         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
29036         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
29037         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
29038         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
29039         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
29040         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
29041         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
29042         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
29043         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
29044         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
29045         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
29046         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
29047         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
29048         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
29049         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
29050         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
29051         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
29052         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
29053         * sysdeps/unix/sysv/linux/system.c: Likewise.
29054         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
29055         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
29056         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
29057         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
29058         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
29059         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
29060         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
29061
29062         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
29063         * configure: Regenerated.
29064         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
29065
29066         * configure.ac (base_machine): Do not set specially for particular
29067         machines here.
29068         * configure: Regenerated.
29069         * sysdeps/powerpc/preconfigure: Move machine and base_machine
29070         settings from configure.ac.
29071         * sysdeps/i386/preconfigure: New file.
29072         * sysdeps/s390/preconfigure: Likewise.
29073         * sysdeps/sh/preconfigure: Likewise.
29074         * sysdeps/sparc/preconfigure: Likewise.
29075
29076 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29077
29078         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
29079         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
29080         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
29081         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
29082         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
29083         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
29084         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
29085         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
29086         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
29087         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
29088         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
29089         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
29090         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
29091         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
29092         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
29093         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
29094         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
29095         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
29096         * sysdeps/sparc/sparc64/Makefile: ... appended here.
29097
29098         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
29099         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
29100         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
29101         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
29102         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
29103         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
29104         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
29105         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
29106         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
29107         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
29108         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
29109         * sysdeps/sparc/sparc32/sem_post.c: ... here.
29110         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
29111         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
29112         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
29113         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
29114         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
29115         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
29116         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
29117         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
29118         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
29119         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
29120         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
29121         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
29122         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
29123         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
29124         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
29125         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
29126         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
29127         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
29128         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
29129         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
29130         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
29131         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
29132         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
29133         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
29134         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
29135         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
29136
29137         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
29138         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
29139         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
29140         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
29141         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
29142         Moved ...
29143         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
29144         ... here.
29145         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
29146         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
29147         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
29148         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
29149         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
29150         Moved ...
29151         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
29152         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
29153         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
29154         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
29155         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
29156         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
29157         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
29158         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
29159         Moved ...
29160         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
29161         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
29162         Moved ...
29163         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
29164         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
29165         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
29166         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
29167         Moved ...
29168         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
29169         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
29170         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
29171         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
29172         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
29173         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
29174         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
29175         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
29176         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
29177         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
29178         Moved ...
29179         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
29180         ... here.
29181         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
29182         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
29183         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
29184         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
29185         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
29186         Moved ...
29187         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
29188         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
29189         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
29190         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
29191         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
29192         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
29193         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
29194         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
29195         Moved ...
29196         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
29197         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
29198         Moved ...
29199         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
29200         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
29201         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
29202         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
29203         Moved ...
29204         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
29205         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
29206         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
29207         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
29208         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
29209
29210 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29211
29212         * timezone/checktab.awk: Update from tzcode 2014e.
29213         * timezone/private.h: Likewise.
29214         * timezone/tzfile.h: Likewise.
29215         * timezone/zdump.c: Likewise.
29216         * timezone/zic.c: Likewise.
29217
29218         * sysdeps/unix/sysv/linux/kernel-features.h
29219         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
29220         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
29221         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
29222         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
29223         Remove conditional code.
29224
29225 2014-06-25  Will Newton  <will.newton@linaro.org>
29226
29227         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
29228         (_dl_arm_cap_flags): Add HWCAP2 values.
29229         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
29230         (_DL_HWCAP_COUNT): Increase to 37.
29231         (_DL_HWCAP_LAST): New define.
29232         (_DL_HWCAP2_LAST): New define.
29233         (_dl_procinfo): Add support for printing
29234         AT_HWCAP2 entries.
29235         (_dl_string_hwcap): Use _dl_hwcap_string.
29236
29237 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29238
29239         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29240
29241 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29242
29243         * README: Do not mention ports directory.
29244
29245         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
29246         Remove macro.
29247         * sysdeps/unix/sysv/linux/futimes.c: Do not include
29248         <kernel-features.h>.
29249         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
29250         conditional variable definition.
29251         (__futimes): Update comment.
29252         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
29253         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
29254
29255         [BZ #16560]
29256         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
29257         arguments close to 0.
29258         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
29259         Likewise.
29260         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
29261         Likewise.
29262         * math/auto-libm-test-in: Add more tests of exp10.
29263         * math/auto-libm-test-out: Regenerated.
29264         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29265
29266         * sysdeps/unix/sysv/linux/kernel-features.h
29267         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
29268         * sysdeps/unix/sysv/linux/readv.c: Do not include
29269         <kernel-features.h>.
29270         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29271         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29272         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29273         unconditional.
29274         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29275         conditional code.
29276         * sysdeps/unix/sysv/linux/writev.c: Do not include
29277         <kernel-features.h>.
29278         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29279         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29280         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29281         unconditional.
29282         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29283         conditional code.
29284
29285 2014-06-25  Will Newton  <will.newton@linaro.org>
29286
29287         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
29288         comment changes throughout the file.  Remove checks
29289         for HAVE_*_H definitions that are not required.
29290         (__gen_tempname): Call abort if an unknown kind value is
29291         passed.
29292
29293 2014-06-25  Andreas Schwab  <schwab@suse.de>
29294
29295         [BZ #17086]
29296         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
29297         scalbln, scalblnf, scalblnl in libc.
29298
29299 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
29300
29301         [BZ #17086]
29302         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
29303         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
29304         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
29305
29306 2014-06-24  Roland McGrath  <roland@hack.frob.com>
29307
29308         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
29309         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
29310         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
29311         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
29312         Update #include.
29313         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
29314         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
29315         Update #include.
29316         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
29317         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
29318         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
29319         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
29320         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
29321         * sysdeps/x86/bits/pthreadtypes.h: ... here.
29322         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
29323         * sysdeps/x86/bits/semaphore.h: ... here.
29324         * sysdeps/x86/nptl/elide.h: Moved ...
29325         * sysdeps/x86/elide.h: ... here.
29326         * sysdeps/x86_64/nptl/Implies: File removed.
29327         * sysdeps/i386/nptl/Implies: File removed.
29328
29329 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
29330
29331         [BZ #16539]
29332         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
29333         return the argument for normal arguments with exponent below -64.
29334         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
29335         Likewise.
29336         * math/auto-libm-test-in: Add another test of expm1.
29337         * math/auto-libm-test-out: Regenerated.
29338
29339         [BZ #16287]
29340         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
29341         calling __erfcl for arguments at least 16.
29342         * math/auto-libm-test-in: Add more tests of erf.
29343         * math/auto-libm-test-out: Regenerated.
29344
29345         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
29346         individual architectures.
29347         * sysdeps/unix/sysv/linux/configure: Regenerated.
29348         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
29349         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
29350         * sysdeps/unix/sysv/linux/powerpc/configure.ac
29351         (ldd_rewrite_script): Define variable.
29352         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
29353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
29354         file.
29355         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
29356         generated file.
29357         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
29358         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
29359         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
29360         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
29361         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
29362         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
29363         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
29364         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
29365
29366 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29367
29368         [BZ #17084]
29369         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
29370         Rename member __data.d to __data.__elision_data.
29371
29372 2014-06-24  Wilco  <wdijkstr@arm.com>
29373
29374         * NEWS: Add 16918 to fixed bug list.
29375
29376 2014-06-24  Wilco  <wdijkstr@arm.com>
29377
29378         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
29379
29380 2014-06-24  Wilco  <wdijkstr@arm.com>
29381
29382         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
29383         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
29384         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
29385         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
29386         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
29387         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
29388         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
29389         Use _FPU_MASK_RM.
29390
29391 2014-06-24  Wilco  <wdijkstr@arm.com>
29392
29393         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
29394
29395 2014-06-24  Wilco  <wdijkstr@arm.com>
29396
29397         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
29398         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
29399         * sysdeps/arm/fesetround.c (fesetround): Remove space.
29400         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
29401
29402 2014-06-24  Wilco  <wdijkstr@arm.com>
29403
29404         [BZ #16918]
29405         * sysdeps/arm/feupdateenv.c (feupdateenv):
29406         Rewrite to reduce FPSCR accesses and fix return value.
29407
29408 2014-06-24  Wilco  <wdijkstr@arm.com>
29409
29410         * sysdeps/arm/fclrexcpt.c (feclearexcept):
29411         Optimize to avoid unnecessary FPSCR writes.
29412         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
29413         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
29414         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
29415         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
29416
29417 2014-06-24  Wilco  <wdijkstr@arm.com>
29418
29419         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
29420         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
29421         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
29422         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
29423         Call libc_fetestexcept_vfp.
29424         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
29425         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
29426         __SOFTFP__ ifdef so that they can be built for softfp.
29427
29428 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29429
29430         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
29431         argument type signed char.
29432
29433         * Makerules (check-abi): Dump diff of symlist if the test
29434         fails.
29435
29436 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29437
29438         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
29439         using abort.
29440
29441         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
29442         Remove unused variable ST.
29443
29444 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
29445
29446         [BZ #16354]
29447         [BZ #17061]
29448         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
29449         small arguments before calling __expm1.
29450         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
29451         small arguments before calling __expm1f.
29452         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
29453         small arguments before calling __expm1l.
29454         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
29455         Likewise.
29456         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
29457         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
29458         spurious underflow for some cosh tests.
29459         * math/auto-libm-test-out: Regenerated.
29460         * sysdeps/i386/fpu/libm-test-ulps: Update.
29461
29462         [BZ #17050]
29463         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
29464         (__ieee754_y1): Set errno if return value overflows.
29465         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
29466         (__ieee754_y1f): Set errno if return value overflows.
29467         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
29468         (__ieee754_y1l): Set errno if return value overflows.
29469         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
29470         (__ieee754_y1l): Set errno if return value overflows.
29471         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
29472         * math/auto-libm-test-out: Regenerated.
29473
29474         * math/gen-auto-libm-tests.c: Document use of
29475         ignore-zero-inf-sign.
29476         (input_flag_type): Add value flag_ignore_zero_inf_sign.
29477         (input_flags): Add ignore-zero-inf-sign.
29478         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
29479         * math/gen-libm-test.pl (generate_testfile): Handle
29480         ignore-zero-inf-sign.
29481         * math/auto-libm-test-in: Mark some cpow tests with
29482         ignore-zero-inf-sign and some with xfail-rounding.
29483         * math/auto-libm-test-out: Regenerated.
29484         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
29485         * sysdeps/i386/fpu/libm-test-ulps: Update.
29486         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29487
29488         [BZ #16315]
29489         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
29490         overflowing or underflowing operations take place with sign of
29491         result.
29492         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
29493         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
29494         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
29495         (__ieee754_pow): Recompute overflowing and underflowing results in
29496         original rounding mode.
29497         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
29498         (__powl_helper): Allow negative argument X and scale negated value
29499         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
29500         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
29501         overflowing or underflowing operations take place with sign of
29502         result.
29503         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
29504         Include <math.h>.
29505         * math/auto-libm-test-in: Add more tests of pow.
29506         * math/auto-libm-test-out: Regenerated.
29507         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
29508         (pow_tonearest_test_data): Remove.
29509         (pow_test_tonearest): Likewise.
29510         (pow_towardzero_test_data): Likewise.
29511         (pow_test_towardzero): Likewise.
29512         (pow_downward_test_data): Likewise.
29513         (pow_test_downward): Likewise.
29514         (pow_upward_test_data): Likewise.
29515         (pow_test_upward): Likewise.
29516         (main): Don't call removed functions.
29517         * sysdeps/i386/fpu/libm-test-ulps: Update.
29518         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29519
29520 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29521
29522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
29523         Moved ...
29524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
29525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
29526         Moved ...
29527         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
29528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
29529         Moved ...
29530         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
29531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
29532         Moved ...
29533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
29534         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
29535         File removed.
29536         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
29537         File removed.
29538         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
29539         File removed.
29540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
29541         File removed.
29542         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
29543         File removed.
29544         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
29545         File removed.
29546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
29547         File removed.
29548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
29549         File removed.
29550         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
29551         File removed.
29552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
29553         File removed.
29554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
29555         File removed.
29556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
29557         File removed.
29558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
29559         Moved ...
29560         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
29561         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
29562         Moved ...
29563         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
29564         ... here.
29565         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
29566         Moved ...
29567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
29568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
29569         Moved ...
29570         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
29571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
29572         Moved ...
29573         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
29574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
29575         Moved ...
29576         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
29577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
29578         Moved ...
29579         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
29580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
29581         Moved ...
29582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
29583         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
29584         Moved ...
29585         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
29586         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
29587         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
29588         ... here.
29589         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
29590         Moved ...
29591         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
29592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
29593         Moved ...
29594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
29595         ... here.
29596         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
29597         Moved ...
29598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29599         ... here.
29600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
29601         Moved ...
29602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
29603         ... here.
29604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
29605         Moved ...
29606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
29607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
29608         Moved ...
29609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
29610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
29611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
29612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
29613         Moved ...
29614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
29615         ... here.
29616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
29617         Moved ...
29618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
29619         ... here.
29620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
29621         Moved ...
29622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
29623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
29624         Moved ...
29625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
29626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
29627         Moved ...
29628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
29629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
29630         Moved ...
29631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
29632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
29633         Moved ...
29634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
29635         ... here.
29636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
29637         Moved ...
29638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
29639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
29640         Moved ...
29641         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
29642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
29643         Moved ...
29644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
29645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
29646         Moved ...
29647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
29648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
29649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
29650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
29651         Moved ...
29652         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
29653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
29654         Moved ...
29655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
29656         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
29657         Moved ...
29658         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
29659         ... here.
29660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
29661         Moved ...
29662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
29663         ... here.
29664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
29665         Moved ...
29666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
29667         ... here.
29668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
29669         Moved ...
29670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
29671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
29672         Moved ...
29673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
29674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
29675         Moved ...
29676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
29677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
29678         Moved ...
29679         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
29680         ... here.
29681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
29682         Moved ...
29683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
29684         ... here.
29685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
29686         Moved ...
29687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
29688         ... here.
29689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
29690         Moved ...
29691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
29692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
29693         Moved ...
29694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
29695
29696 2014-06-23  Will Newton  <will.newton@linaro.org>
29697             Wilco  <wdijkstr@arm.com>
29698
29699         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
29700         implementation.  Include get-rounding-mode.h.
29701         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
29702         [!libc_feholdsetround_noex_ctx]: Define
29703         libc_feholdsetround_noex_ctx.
29704         [!libc_feholdsetround_noexf_ctx]: Define
29705         libc_feholdsetround_noexf_ctx.
29706         [!libc_feholdsetround_noexl_ctx]: Define
29707         libc_feholdsetround_noexl_ctx.
29708         (libc_feholdsetround_ctx): New function.
29709         (libc_feresetround_ctx): New function.
29710         (libc_feholdsetround_noex_ctx): New function.
29711         (libc_feresetround_noex_ctx): New function.
29712
29713 2014-06-23  Roland McGrath  <roland@hack.frob.com>
29714
29715         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
29716         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
29717         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
29718         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
29719         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
29720         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
29721
29722         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
29723         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
29724         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
29725         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
29726         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
29727         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
29728         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
29729         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
29730         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
29731         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
29732         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
29733         Moved ...
29734         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
29735         ... here.
29736         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
29737         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
29738         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
29739         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
29740         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
29741         Moved ...
29742         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
29743         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
29744         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
29745         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
29746         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
29747         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
29748         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
29749         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
29750         Moved ...
29751         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
29752         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
29753         Moved ...
29754         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
29755         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
29756         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
29757         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
29758         Moved ...
29759         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
29760         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
29761         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
29762         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
29763         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
29764         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
29765         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
29766         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
29767         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
29768         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
29769         Moved ...
29770         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
29771         ... here.
29772         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
29773         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
29774         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
29775         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
29776         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
29777         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
29778         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
29779         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
29780         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
29781         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
29782         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
29783         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
29784         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
29785         Moved ...
29786         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
29787         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
29788         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
29789         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
29790         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
29791         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
29792         Moved ...
29793         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
29794         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
29795         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
29796         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
29797         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
29798
29799         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
29800         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
29801         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
29802         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
29803         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
29804         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
29805         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
29806         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
29807         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
29808         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
29809         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
29810         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
29811         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
29812         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
29813         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
29814         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
29815         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
29816         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
29817         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
29818         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
29819         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
29820         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
29821         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
29822         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
29823         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
29824         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
29825         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
29826         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
29827
29828 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
29829
29830         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
29831         (FALLOC_FL_COLLAPSE_RANGE): New macro.
29832         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
29833         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
29834         (IPV6_PMTUDISC_INTERFACE): Likewise.
29835         (IPV6_PMTUDISC_OMIT): Likewise.
29836
29837 2014-06-23  Andreas Schwab  <schwab@suse.de>
29838
29839         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
29840         Remove unused errout label.
29841
29842 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29843
29844         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
29845         macro: hardware supports Vector Crypto instructions.
29846
29847 2014-06-23  Will Newton  <will.newton@linaro.org>
29848
29849         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
29850         rather than __builtin_expect.
29851
29852         * elf/dl-lookup.c (undefined_msg): Remove variable.
29853         (_dl_lookup_symbol_x): Replace undefined_msg with string
29854         literal.
29855
29856         * elf/dl-lookup.c (do_lookup_unique): New function.
29857         (do_lookup_x): Move STB_GNU_UNIQUE handling code
29858         to a separate function.
29859
29860 2014-06-23  Andreas Schwab  <schwab@suse.de>
29861
29862         [BZ #17079]
29863         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
29864         before reading the next line.
29865
29866 2014-06-23  Will Newton  <will.newton@linaro.org>
29867
29868         * test-skeleton.c (signal_handler): Use printf and %m
29869         rather than perror.  Use printf rather than fprintf to
29870         stderr.  Use puts rather than fputs to stderr.
29871         (main): Likewise.
29872
29873 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
29874
29875         * nscd/nscd.c (thread_info_t): Remove typedef.
29876         (thread_info): Remove variable.
29877
29878 2014-06-21  Allan McRae  <allan@archlinux.org>
29879
29880         * NEWS: Mention CVE-2014-4043.
29881
29882 2014-06-20  Roland McGrath  <roland@hack.frob.com>
29883
29884         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
29885         * nptl/smp.h: ... here.
29886
29887         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
29888
29889         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
29890         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
29891         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
29892         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
29893
29894         * nptl/allocatestack.c: Include <stack-aliasing.h>.
29895         * nptl/stack-aliasing.h: New file.
29896         * sysdeps/i386/i686/stack-aliasing.h: New file.
29897         * sysdeps/i386/i686/nptl/Makefile: File removed.
29898         * sysdeps/x86_64/stack-aliasing.h: New file.
29899         * sysdeps/x86_64/nptl/Makefile
29900         (CFLAGS-pthread_create.c): Variable removed.
29901
29902         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
29903         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
29904         old file.
29905         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
29906         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
29907         old file.
29908
29909 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
29910
29911         * sysdeps/unix/sysv/linux/arm/kernel-features.h
29912         (__ASSUME_SIGFRAME_V2): Remove macro.
29913         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
29914         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
29915         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
29916         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
29917         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
29918         Declare as function.  Remove conditional macro definitions.
29919         (__default_rt_sa_restorer): Likewise.
29920         (__default_sa_restorer_v1): Remove declaration.
29921         (__default_sa_restorer_v2): Likewise.
29922         (__default_rt_sa_restorer_v1): Likewise.
29923         (__default_rt_sa_restorer_v2): Likewise.
29924         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
29925         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
29926         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
29927
29928 2014-06-20  Roland McGrath  <roland@hack.frob.com>
29929
29930         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
29931         (libpthread-routines): Add sysdep.
29932         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
29933         * sysdeps/unix/sysv/linux/sparc/Versions
29934         (libpthread: GLIBC_2.3.3): New version set.
29935         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
29936         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
29937         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
29938         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
29939         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
29940         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
29941         Moved ...
29942         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
29943         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
29944         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
29945         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
29946         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
29947         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
29948         * sysdeps/sparc/nptl/sem_init.c: ... here.
29949         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
29950         * sysdeps/sparc/nptl/sem_post.c: ... here.
29951         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
29952         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
29953         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
29954         * sysdeps/sparc/nptl/sem_wait.c: ... here.
29955         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
29956         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
29957         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
29958         (libpthread-routines): Add cpu_relax.
29959         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
29960         File removed.
29961         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
29962         (librt: GLIBC_2.3.3): New version set.
29963         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
29964         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
29965         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
29966         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
29967         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
29968         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
29969         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
29970         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
29971         Moved ...
29972         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
29973         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
29974         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
29975         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
29976         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
29977         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
29978         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
29979         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
29980         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
29981         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
29982         Moved ...
29983         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
29984         Update #include.
29985         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
29986         Moved ...
29987         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
29988         Update #include.
29989         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
29990         Moved ...
29991         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
29992         Update #include.
29993         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
29994         Moved ...
29995         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
29996         Update #include.
29997         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
29998         Moved ...
29999         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
30000         Update #include.
30001         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
30002         Moved ...
30003         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
30004         Update #include.
30005         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
30006         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
30007         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
30008         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
30009         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
30010         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
30011         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
30012         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
30013         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
30014         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
30015         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
30016         Moved ...
30017         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
30018         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
30019         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
30020         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
30021         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
30022
30023 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30024
30025         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
30026         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
30027         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
30028         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
30029         * nscd/nscd.c: Likewise.
30030         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
30031         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
30032         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
30033         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
30034
30035         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
30036         <kernel-features.h>.
30037         (init_mq_netlink): Remove conditional have_sock_cloexec
30038         definitions.  Remove code conditional on have_sock_cloexec < 0.
30039         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
30040         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
30041         * sysdeps/unix/sysv/linux/opensock.c: Do not include
30042         <kernel-features.h>.
30043         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
30044         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
30045
30046 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30047
30048         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
30049         Add tests for memset_chk and memset.
30050
30051         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
30052         with AVX2_Usable.
30053
30054 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30055
30056         [BZ #16046]
30057         * elf/tst-dl-iter-static.c: New file.
30058         * elf/Makefile (tests-static): Add tst-dl-iter-static.
30059
30060         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
30061         error.
30062
30063 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30064
30065         * sysdeps/unix/sysv/linux/kernel-features.h
30066         (__ASSUME_F_GETOWN_EX): Remove macro.
30067         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
30068         <kernel-features.h>.
30069         (miss_F_GETOWN_EX): Remove variable or macro.
30070         (do_fcntl): Do not check miss_F_GETOWN_EX.
30071         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
30072
30073         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
30074         Remove macro.
30075         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
30076         [!__ASSUME_AT_RANDOM]: Remove conditional code.
30077         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
30078
30079         * sysdeps/unix/sysv/linux/kernel-features.h
30080         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
30081         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
30082         [ADJ_OFFSET_SS_READ]: Make code unconditional.
30083         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
30084
30085 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30086
30087         [BZ #17075]
30088         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
30089         Fix calculation of the symbol's value.
30090         * sysdeps/arm/tst-armtlsdescloc.c: New file.
30091         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
30092         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
30093         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
30094         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
30095         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
30096         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
30097         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
30098         (modules-names): Add `tst-armtlsdescmod',
30099         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
30100         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
30101         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30102         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
30103         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
30104         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30105         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
30106         ($(objpfx)tst-armtlsdescloc): New dependency.
30107         ($(objpfx)tst-armtlsdescextnow): Likewise.
30108         ($(objpfx)tst-armtlsdescextlazy): Likewise.
30109         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
30110         TLS scheme support.
30111         * sysdeps/arm/configure: Regenerate.
30112
30113 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30114
30115         * include/fcntl.h (__atfct_seterrno): Remove prototype.
30116         (__atfct_seterrno_2): Likewise.
30117         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
30118         <kernel-features.h>.
30119         (__ASSUME_ATFCTS): Do not undefine and redefine.
30120         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
30121         (__have_atfcts): Remove conditional definition.
30122         (__fxstatat([__NR_fstatat64]: Make code unconditional.
30123         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
30124         unreachable if [__ASSUME_ATFCTS].
30125         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
30126         not undefine and redefine.
30127         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
30128         <kernel-features.h>.
30129         (faccessat) [__NR_faccessat]: Make code unconditional.
30130         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
30131         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
30132         <kernel-features.h>.
30133         (fchmodat) [__NR_fchmodat]: Make code unconditional.
30134         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30135         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
30136         <kernel-features.h>.
30137         (fchownat) [__NR_fchownat]: Make code unconditional.
30138         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
30139         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
30140         <kernel-features.h>.
30141         (futimesat) [__NR_futimesat]: Make code unconditional.
30142         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
30143         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
30144         <kernel-features.h>.
30145         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30146         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30147         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
30148         <kernel-features.h>.
30149         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
30150         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30151         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
30152         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
30153         <kernel-features.h>.
30154         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
30155         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30156         * sysdeps/unix/sysv/linux/linkat.c: Do not include
30157         <kernel-features.h>.
30158         (linkat) [__NR_linkat]: Make code unconditional.
30159         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30160         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
30161         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
30162         <kernel-features.h>.
30163         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
30164         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30165         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
30166         <kernel-features.h>.
30167         (mkdirat) [__NR_mkdirat]: Make code unconditional.
30168         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
30169         * sysdeps/unix/sysv/linux/openat.c: Do not include
30170         <kernel-features.h>.
30171         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
30172         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
30173         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
30174         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
30175         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
30176         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
30177         <kernel-features.h>.
30178         (readlinkat) [__NR_readlinkat]: Make code unconditional.
30179         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
30180         result of INLINE_SYSCALL directly, not via int variable.
30181         * sysdeps/unix/sysv/linux/renameat.c: Do not include
30182         <kernel-features.h>.
30183         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
30184         (renameat) [__NR_renameat]: Make code unconditional.
30185         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
30186         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
30187         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
30188         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
30189         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
30190         (__ASSUME_ATFCTS): Do not undefine and redefine.
30191         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
30192         <kernel-features.h>.
30193         (symlinkat) [__NR_symlinkat]: Make code unconditional.
30194         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30195         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
30196         <kernel-features.h>.
30197         (unlinkat) [__NR_unlinkat]: Make code unconditional.
30198         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30199         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
30200         (__ASSUME_ATFCTS): Do not undefine and redefine.
30201         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
30202         <kernel-features.h>.
30203         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30204         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30205         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
30206         <kernel-features.h>.
30207         (__xmknodat) [__NR_mknodat]: Make code unconditional.
30208         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30209
30210 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30211
30212         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
30213
30214 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
30215
30216         [BZ #17069]
30217         * posix/regcomp.c (parse_reg_exp): Deallocate partially
30218         constructed tree before returning error.
30219         * posix/bug-regexp36.c: Expand test case.
30220
30221 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
30222
30223         [BZ #6803]
30224         * math/libm-test.inc (scalbln_test_date):
30225         Add errno expectations.
30226         * math/w_scalblnf.c: New File.
30227         Add wrapper which checks for setting errno to ERANGE.
30228         Add weak_alias for corresponding scalbln function.
30229         * math/w_scalbln.c: Likewise.
30230         * math/w_scalblnl.c: Likewise.
30231         * math/Makefile (libm-calls): Add w_scalbln.
30232         * sysdeps/ieee754/flt-32/s_scalblnf.c:
30233         Remove weak_alias for corresponding scalbln function.
30234         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
30235         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
30236         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
30237         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
30238         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
30239         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
30240         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
30241         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
30242         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
30243         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
30244         Remove long_double_symbol for scalblnl function in libm, libc.
30245         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
30246         Add wrapper which checks for setting errno to ERANGE.
30247         Add long_double_symbol for scalblnl function in libm, libc.
30248         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
30249         Remove long_double_symbol for scalblnl in libm.
30250         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
30251         Add wrapper which checks for setting errno to ERANGE.
30252         Add long_double_symbol for scalblnl function in libm.
30253         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
30254         Do not use wrapper because of own implementation.
30255
30256 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
30257
30258         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
30259         3 bytes for __pad1 for x32.
30260         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
30261
30262 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
30263             H.J. Lu  <hongjiu.lu@intel.com>
30264
30265         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
30266         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
30267         * sysdeps/x86_64/multiarch/memset.S: Likewise.
30268         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
30269         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
30270
30271 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
30272
30273         [BZ #17069]
30274         * posix/regcomp.c (parse_expression): Deallocate partially
30275         constructed tree before returning error.
30276         * posix/Makefile.c (tests): Add bug-regex36.
30277         (generated): Add bug-regex36.mtrace.
30278         (tests-special): Add $(objpfx)bug-regex36-mem.out
30279         (bug-regex36-ENV): New variable.
30280         ($(objpfx)bug-regex36-mem.out): New rule.
30281         * posix/bug-regex36.c: New file.
30282
30283 2014-06-19  Will Newton  <will.newton@linaro.org>
30284
30285         * malloc/malloc.c (systrim): If extra is zero then return
30286         early.
30287
30288 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
30289
30290         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
30291
30292 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
30293
30294         * sysdeps/aarch64/strchr.S: New file.
30295
30296 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30297
30298         [BZ #17022]
30299         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
30300         from arguments -2 or below.
30301         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
30302         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
30303
30304 2014-06-18  Andreas Schwab  <schwab@suse.de>
30305
30306         [BZ #17062]
30307         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
30308         of a bracket expr not to run off the end of the string.
30309         * posix/Makefile (tests): Add tst-fnmatch3.
30310         * posix/tst-fnmatch3.c: New file.
30311
30312 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30313
30314         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
30315         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
30316         [$(cross-compiling) = no]: Likewise.
30317         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
30318         [$(cross-compiling) = no]: Likewise.
30319
30320 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30321
30322         [BZ #17031]
30323         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
30324         double, adjusted for any remainder from the high double.
30325         * math/libm-test.inc (nearbyint): Add tests.
30326         (rint): Likewise.
30327
30328 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30329
30330         * nptl/sysdeps/powerpc/Makefile: Moved ...
30331         * sysdeps/powerpc/nptl/Makefile: ... here.
30332         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
30333         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
30334         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
30335         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
30336         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
30337         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
30338         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
30339         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
30340         * nptl/sysdeps/powerpc/tls.h: Moved ...
30341         * sysdeps/powerpc/nptl/tls.h: ... here.
30342
30343 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
30344
30345         [BZ #16681]
30346         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
30347         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
30348         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
30349         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
30350         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
30351         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
30352         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
30353         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
30354         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
30355
30356 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
30357
30358         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
30359
30360 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
30361
30362         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
30363         defined operator.
30364
30365         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
30366         $TIMEOUTFACTOR.
30367
30368 2014-06-16  Florian Weimer  <fweimer@redhat.com>
30369
30370         [BZ #17058]
30371         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
30372         non-executed part of the test.
30373
30374 2014-06-16  Andreas Schwab  <schwab@suse.de>
30375
30376         * string/bits/string2.h (strdup, strndup): Update feature guard.
30377
30378 2014-06-14  David S. Miller  <davem@davemloft.net>
30379
30380         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30381
30382 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
30383
30384         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
30385         that was previously under [RESET_PID].
30386         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
30387
30388         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
30389         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
30390         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
30391         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
30392         (__libc_vfork): New strong alias.
30393         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
30394
30395 2014-06-14 Andi Kleen  <ak@linux.intel.com>
30396
30397         * sysdeps/generic/elide.h: New file.
30398
30399 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
30400
30401         * Makefile (installed-headers): Adjust path of pthread.h header.
30402
30403 2014-06-13  Roland McGrath  <roland@hack.frob.com>
30404
30405         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
30406         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
30407         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
30408         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
30409
30410         * nptl/sysdeps/s390/Makefile: Moved ...
30411         * sysdeps/s390/nptl/Makefile: ... here.
30412         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
30413         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
30414         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
30415         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
30416         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
30417         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
30418         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
30419         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
30420         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
30421         * sysdeps/s390/nptl/pthreaddef.h: ... here.
30422         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
30423         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
30424         * nptl/sysdeps/s390/tls.h: Moved ...
30425         * sysdeps/s390/nptl/tls.h: ... here.
30426
30427         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
30428         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
30429
30430 2014-06-13  David S. Miller  <davem@davemloft.net>
30431
30432         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
30433         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
30434         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
30435         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
30436         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
30437         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
30438         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
30439         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
30440         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
30441         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
30442         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
30443         Remove RESET_PID cpp guards.
30444         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
30445         Remove RESET_PID cpp guards.
30446         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
30447
30448 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
30449
30450         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
30451         __sp to uintptr_t.
30452
30453 2014-06-13  Andi Kleen  <ak@linux.intel.com>
30454
30455         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
30456         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
30457         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
30458         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
30459         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
30460         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
30461         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
30462         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
30463         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
30464         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
30465         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
30466         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
30467         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
30468         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
30469         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
30470         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
30471         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
30472         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
30473         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
30474         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
30475
30476         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
30477         (pthread_rwlock_rdlock): Add elision.
30478         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
30479         (pthread_rwlock_wrlock): Add elision.
30480         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
30481         (pthread_rwlock_trywrlock): Add elision.
30482         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
30483         (pthread_rwlock_tryrdlock): Add elision.
30484         * nptl/pthread_rwlock_unlock.c: Include elide.h.
30485         (pthread_rwlock_tryrdlock): Add elision unlock.
30486         * nptl/sysdeps/pthread/pthread.h:
30487         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
30488         (PTHREAD_RWLOCK_INITIALIZER,
30489         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
30490         Handle new elision field.
30491         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
30492         * sysdeps/arm/nptl/bits/pthreadtypes.h
30493         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30494         * sysdeps/sh/nptl/bits/pthreadtypes.h
30495         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30496         * sysdeps/tile/nptl/bits/pthreadtypes.h
30497         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30498         * sysdeps/a/nptl/bits/pthreadtypes.h
30499         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30500         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
30501         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30502         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
30503         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30504         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
30505         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30506         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
30507         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30508         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
30509         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30510         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
30511         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30512         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
30513         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30514         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
30515         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30516         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
30517         (elision_init): Set try_xbegin to zero when no RTM.
30518         * sysdeps/x86/nptl/bits/pthreadtypes.h
30519         (pthread_rwlock_t): Change __pad1 to __rwelision.
30520         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
30521
30522 2014-06-13  Andi Kleen  <ak@linux.intel.com>
30523
30524         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
30525         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
30526         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
30527         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
30528
30529 2014-06-13  Meador Inge  <meadori@codesourcery.com>
30530
30531         [BZ #16996]
30532         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
30533         that the cached result has been set before returning it.
30534
30535 2014-06-12  Roland McGrath  <roland@hack.frob.com>
30536
30537         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
30538         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
30539         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
30540         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
30541         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
30542         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
30543
30544         * nptl/sysdeps/sparc/Makefile: Moved ...
30545         * sysdeps/sparc/nptl/Makefile: ... here.
30546         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
30547         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
30548         * nptl/sysdeps/sparc/tls.h: Moved ...
30549         * sysdeps/sparc/nptl/tls.h: ... here.
30550         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
30551         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
30552         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
30553         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
30554         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
30555         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
30556         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
30557         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
30558         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
30559         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
30560         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
30561         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
30562         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
30563         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
30564         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
30565         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
30566         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
30567         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
30568         Update #include.
30569         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
30570         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
30571         Update #include.
30572         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
30573         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
30574         Update #include.
30575         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
30576         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
30577         Update #include.
30578
30579         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
30580
30581         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
30582         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
30583
30584         * sysdeps/pthread/posix-timer.h: Include <list.h>.
30585         (struct list_links): Type removed.
30586         (struct thread_node, struct timer_node): Replace struct list_links
30587         with struct list_head.
30588         (list_unlink_ip): Likewise.
30589         * sysdeps/pthread/timer_routines.c
30590         (timer_free_list, thread_free_list, thread_active_list): Likewise.
30591         (list_append, list_insbefore): Likewise.
30592         (list_init): Function removed.
30593         (thread_init, init_module): Use INIT_LIST_HEAD instead.
30594         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
30595         * sysdeps/pthread/Makefile: ... here, new file.
30596
30597         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
30598         * sysdeps/nptl/Implies: ... here.
30599         * sysdeps/unix/sysv/linux/Implies: Add nptl.
30600         * nptl/sysdeps/pthread/list.h: Moved ...
30601         * include/list.h: ... here.
30602         * nptl/sysdeps/pthread/createthread.c: Moved ...
30603         * nptl/createthread.c: ... here.
30604         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
30605         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
30606         * nptl/pt-longjmp.c: ... here.
30607         * nptl/sysdeps/pthread/Makefile: Moved ...
30608         * sysdeps/nptl/Makefile: ... here.
30609         * nptl/sysdeps/pthread/Subdirs: Moved ...
30610         * sysdeps/nptl/Subdirs: ... here.
30611         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
30612         * sysdeps/nptl/aio_misc.h: ... here.
30613         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
30614         * sysdeps/nptl/bits/libc-lock.h: ... here.
30615         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
30616         * sysdeps/nptl/bits/libc-lockP.h: ... here.
30617         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
30618         * sysdeps/nptl/bits/stdio-lock.h: ... here.
30619         * nptl/sysdeps/pthread/configure: Moved ...
30620         * sysdeps/nptl/configure: ... here.
30621         * nptl/sysdeps/pthread/configure.ac: Moved ...
30622         * sysdeps/nptl/configure.ac: ... here.
30623         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
30624         * sysdeps/nptl/gai_misc.h: ... here.
30625         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
30626         * sysdeps/nptl/librt-cancellation.c: ... here.
30627         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
30628         * sysdeps/nptl/malloc-machine.h: ... here.
30629         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
30630         * sysdeps/nptl/pthread-functions.h: ... here.
30631         * nptl/sysdeps/pthread/pthread.h: Moved ...
30632         * sysdeps/nptl/pthread.h: ... here.
30633         * nptl/sysdeps/pthread/setxid.h: Moved ...
30634         * sysdeps/nptl/setxid.h: ... here.
30635         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
30636         * sysdeps/nptl/sigfillset.c: ... here.
30637         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
30638         * sysdeps/nptl/tcb-offsets.h: ... here.
30639         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
30640         * sysdeps/nptl/tst-mqueue8x.c: ... here.
30641         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
30642         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
30643         * nptl/sysdeps/pthread/allocalim.h: Moved ...
30644         * sysdeps/pthread/allocalim.h: ... here.
30645         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
30646         * sysdeps/pthread/bits/sigthread.h: ... here.
30647         * nptl/sysdeps/pthread/flockfile.c: Moved ...
30648         * sysdeps/pthread/flockfile.c: ... here.
30649         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
30650         * sysdeps/pthread/ftrylockfile.c: ... here.
30651         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
30652         * sysdeps/pthread/funlockfile.c: ... here.
30653         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
30654         * sysdeps/pthread/posix-timer.h: ... here.
30655         * nptl/sysdeps/pthread/timer_create.c: Moved ...
30656         * sysdeps/pthread/timer_create.c: ... here.
30657         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
30658         * sysdeps/pthread/timer_delete.c: ... here.
30659         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
30660         * sysdeps/pthread/timer_getoverr.c: ... here.
30661         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
30662         * sysdeps/pthread/timer_gettime.c: ... here.
30663         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
30664         * sysdeps/pthread/timer_routines.c: ... here.
30665         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
30666         * sysdeps/pthread/timer_settime.c: ... here.
30667         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
30668         * sysdeps/pthread/tst-timer.c: ... here.
30669         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
30670         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
30671
30672         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
30673         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
30674
30675         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
30676         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
30677         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
30678         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
30679         Update #include target.
30680         * nptl/sysdeps/i386/i686/Makefile: Moved ...
30681         * sysdeps/i386/i686/nptl/Makefile: ... here.
30682         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
30683         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
30684         Update #include target.
30685         * nptl/sysdeps/i386/i686/tls.h: Moved ...
30686         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
30687         * nptl/sysdeps/i386/Makefile: Moved ...
30688         * sysdeps/i386/nptl/Makefile: ... here.
30689         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
30690         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
30691         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
30692         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
30693         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
30694         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
30695         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
30696         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
30697         * sysdeps/i386/nptl/pthreaddef.h: ... here.
30698         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
30699         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
30700         * nptl/sysdeps/i386/tls.h: Moved ...
30701         * sysdeps/i386/nptl/tls.h: ... here.
30702
30703         * sysdeps/sh/Makefile [$(subdir) = csu]
30704         (gen-as-const-headers): Add tcb-offsets.sym.
30705         * nptl/sysdeps/sh/Makefile: File removed.
30706         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
30707         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
30708         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
30709         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
30710         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
30711         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
30712         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
30713         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
30714         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
30715         * sysdeps/sh/nptl/pthreaddef.h: ... here.
30716         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
30717         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
30718         * nptl/sysdeps/sh/tls.h: Moved ...
30719         * sysdeps/sh/nptl/tls.h: ... here.
30720         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
30721         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
30722         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
30723         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
30724         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
30725         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
30726         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
30727         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
30728         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
30729         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
30730         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
30731         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
30732         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
30733         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
30734         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
30735         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
30736         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
30737         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
30738         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
30739         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
30740         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
30741         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
30742         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
30743         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
30744         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
30745         Moved ...
30746         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
30747         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
30748         Moved ...
30749         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
30750         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
30751         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
30752         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
30753         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
30754         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
30755         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
30756         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
30757         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
30758         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
30759         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
30760         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
30761         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
30762         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
30763         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
30764         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
30765         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
30766         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
30767         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
30768
30769 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
30770
30771         * posix/spawn_faction_addopen.c: Include string.h.
30772
30773 2014-06-11  Roland McGrath  <roland@hack.frob.com>
30774
30775         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
30776         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
30777         * nptl/sysdeps/x86_64/Makefile: Moved ...
30778         * sysdeps/x86_64/nptl/Makefile: ... here.
30779         * nptl/sysdeps/x86_64/configure: Moved ...
30780         * sysdeps/x86_64/nptl/configure: ... here.
30781         * nptl/sysdeps/x86_64/configure.ac: Moved ...
30782         * sysdeps/x86_64/nptl/configure.ac: ... here.
30783         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
30784         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
30785         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
30786         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
30787         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
30788         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
30789         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
30790         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
30791         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
30792         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
30793         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
30794         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
30795         * nptl/sysdeps/x86_64/tls.h: Moved ...
30796         * sysdeps/x86_64/nptl/tls.h: ... here.
30797         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
30798         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
30799         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
30800         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
30801
30802         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
30803
30804 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30805
30806         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30807
30808 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
30809
30810         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
30811         type.
30812         [POSIX] (off_t): Likewise.
30813         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
30814         [POSIX] (S_ISBLK): Require macro.
30815         [POSIX] (S_ISCHR): Likewise.
30816         [POSIX] (S_ISDIR): Likewise.
30817         [POSIX] (S_ISFIFO): Likewise.
30818         [POSIX] (S_ISREG): Likewise.
30819         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
30820         optional-macro.
30821         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
30822         type.
30823         [POSIX] (time_t): Likewise.
30824         [POSIX] (timer_t): Likewise.
30825
30826 2014-06-11  Florian Weimer  <fweimer@redhat.com>
30827
30828         [BZ #17048]
30829         * posix/spawn_int.h (struct __spawn_action): Make the path string
30830         non-const to support deallocation.
30831         * posix/spawn_faction_addopen.c
30832         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
30833         * posix/spawn_faction_destroy.c
30834         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
30835         path in all spawn_do_open actions.
30836         * posix/tst-spawn.c (do_test): Exercise the copy operation in
30837         posix_spawn_file_actions_addopen.
30838
30839 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
30840
30841         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
30842         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
30843         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
30844         conditional code always true.
30845         (__libc_vfork): New alias.
30846
30847 2014-06-11  Roland McGrath  <roland@hack.frob.com>
30848
30849         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
30850         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
30851
30852         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
30853
30854         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
30855         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
30856
30857         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
30858         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
30859
30860         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
30861         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
30862
30863 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
30864
30865         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
30866         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
30867         multiarch strcmp for PPC64.
30868         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
30869         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
30870         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
30871         multiarch optimizations.
30872         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
30873         (__libc_ifunc_impl_list): Likewise.
30874
30875 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
30876
30877         * benchtests/scripts/validate_benchout.py: New script.
30878         * benchtests/Makefile (bench-func): Call it.
30879         * benchtests/scripts/benchout.schema.json: New file.
30880
30881 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
30882
30883         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
30884         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
30885         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
30886         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
30887         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
30888         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
30889         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
30890         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
30891         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
30892         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
30893         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
30894         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
30895         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
30896         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
30897         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
30898         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
30899         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
30900         Moved ...
30901         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
30902         ... here.
30903         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
30904         Moved ...
30905         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
30906         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
30907         Moved ...
30908         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
30909         ... here.
30910         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
30911         Moved ...
30912         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
30913         ... here.
30914         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
30915         Moved ...
30916         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
30917         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
30918         Moved ...
30919         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
30920         ... here.
30921         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
30922         Moved ...
30923         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
30924         ... here.
30925         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
30926         Moved ...
30927         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
30928         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
30929         Moved ...
30930         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
30931         ... here.
30932         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
30933         Moved ...
30934         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
30935         ... here.
30936         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
30937         Moved ...
30938         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
30939         ... here.
30940         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
30941         Moved ...
30942         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
30943         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
30944         Moved ...
30945         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
30946         ... here.
30947         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
30948         Moved ...
30949         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
30950         ... here.
30951         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
30952         Moved ...
30953         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
30954         ... here.
30955         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
30956         Moved ...
30957         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
30958         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
30959         Moved ...
30960         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
30961         ... here.
30962         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
30963         Moved ...
30964         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
30965         ... here.
30966         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
30967         Moved ...
30968         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
30969         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
30970         Moved ...
30971         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
30972         ... here.
30973         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
30974         Moved ...
30975         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
30976         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
30977         Moved ...
30978         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
30979         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
30980         Moved ...
30981         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
30982         ... here.
30983         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
30984         Moved ...
30985         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
30986         ... here.
30987         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
30988         Moved ...
30989         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
30990         ... here.
30991         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
30992         Moved ...
30993         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
30994         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
30995         Moved ...
30996         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
30997         ... here.
30998         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
30999         Moved ...
31000         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
31001         ... here.
31002         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
31003         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
31004         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
31005         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
31006         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
31007         Moved ...
31008         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
31009         ... here.
31010         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
31011         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
31012         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
31013         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
31014         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
31015         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
31016         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
31017         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
31018         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
31019         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
31020         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
31021         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
31022         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
31023         Moved ...
31024         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
31025         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
31026         Moved ...
31027         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
31028         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
31029         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
31030         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
31031         Moved ...
31032         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
31033         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
31034         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
31035         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
31036         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
31037         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
31038         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
31039
31040 2014-06-10  Wilco  <wdijkstr@arm.com>
31041
31042         * math/test-fenv-return.c: New file.
31043         * math/Makefile: Add new test test-fenv-return.
31044
31045 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
31046
31047         [BZ #17042]
31048         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
31049         when x - 1 is zero.
31050         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
31051         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
31052         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
31053         0.0L for an argument of 1.0L.
31054         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
31055         Likewise.
31056         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
31057         value when x - 1 is zero.
31058         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
31059         * sysdeps/i386/fpu/libm-test-ulps: Update.
31060         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31061
31062 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
31063
31064         [BZ #15119]
31065         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
31066
31067 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31068
31069         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
31070         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
31071
31072 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31073
31074         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31075         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
31076
31077         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31078         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
31079
31080         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31081         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
31082
31083         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31084         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
31085
31086         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
31087         if not already defined.
31088         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
31089         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
31090         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
31091         (TLS_INIT_TP): Use it.
31092         (TLS_DEFINE_INIT_TP): New macro.
31093         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
31094
31095 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
31096
31097         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
31098         constant.
31099         [POSIX] (IXANY): Likewise.
31100         [POSIX] (OLCUC): Likewise.
31101         [POSIX || POSIX2008] (CBAUD): Do not allow.
31102         [POSIX || POSIX2008] (DEFECHO): Likewise.
31103         [POSIX || POSIX2008] (ECHOCTL): Likewise.
31104         [POSIX || POSIX2008] (ECHOKE): Likewise.
31105         [POSIX || POSIX2008] (ECHOPRT): Likewise.
31106         [POSIX || POSIX2008] (EXTA): Likewise.
31107         [POSIX || POSIX2008] (EXTB): Likewise.
31108         [POSIX || POSIX2008] (FLUSHO): Likewise.
31109         [POSIX || POSIX2008] (LOBLK): Likewise.
31110         [POSIX || POSIX2008] (PENDIN): Likewise.
31111         [POSIX || POSIX2008] (SWTCH): Likewise.
31112         [POSIX || POSIX2008] (VDISCARD): Likewise.
31113         [POSIX || POSIX2008] (VDSUSP): Likewise.
31114         [POSIX || POSIX2008] (VLNEXT): Likewise.
31115         [POSIX || POSIX2008] (VREPRINT): Likewise.
31116         [POSIX || POSIX2008] (VSTATUS): Likewise.
31117         [POSIX || POSIX2008] (VWERASE): Likewise.
31118         (B*): Change to B[0123456789]*.
31119         * conform/data/time.h-data [POSIX || UNIX98]
31120         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
31121         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
31122         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
31123         [POSIX] (tm_*): Do not allow.
31124
31125 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
31126
31127         * Makefile (install): Don't set LANGUAGE.
31128         * Makefile.in (install): Likewise.
31129         * assert/Makefile (test-assert-ENV): Remove variable.
31130         (test-assert-perr-ENV): Likewise.
31131         * elf/Makefile (neededtest4-ENV): Likewise.
31132         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31133         [$(cross-compiling) = no]: Don't set LANGUAGE.
31134         * io/ftwtest-sh (LANG): Remove variable.
31135         * libio/Makefile (tst-widetext-ENV): Likewise.
31136         * manual/install.texi (Running make install): Don't refer to
31137         environment settings for make install.
31138         * INSTALL: Regenerated.
31139         * nptl/tst-tls6.sh: Don't set LANG.
31140         * posix/globtest.sh (LANG): Remove variable.
31141         * string/Makefile (tester-ENV): Likewise.
31142         (inl-tester-ENV): Likewise.
31143         (noinl-tester-ENV): Likewise.
31144         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31145         [$(cross-compiling) = no]: Don't set LANGUAGE.
31146         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
31147         without explicit environment settings.
31148
31149 2014-06-06  Roland McGrath  <roland@hack.frob.com>
31150
31151         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
31152         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
31153         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
31154         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
31155
31156 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
31157
31158         * crypt/crypt-private.h [DOS]: Add some includes taken from the
31159         other files in the crypt directory.
31160         * crypt/crypt.c: Remove duplicate includes.
31161         * crypt/crypt-entry.c: Likewise.
31162         * crypt/crypt_util.c: Likewise.
31163
31164 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
31165
31166         * Makeconfig (run-program-env): New variable.
31167         (run-program-prefix-before-env): Likewise.
31168         (run-program-prefix-after-env): Likewise.
31169         (run-program-prefix): Define in terms of new variables.
31170         (built-program-cmd-before-env): New variable.
31171         (built-program-cmd-after-env): Likewise.
31172         (built-program-cmd): Define in terms of new variables.
31173         (test-program-prefix-before-env): New variable.
31174         (test-program-prefix-after-env): Likewise.
31175         (test-program-prefix): Define in terms of new variables.
31176         (test-program-cmd-before-env): New variable.
31177         (test-program-cmd-after-env): Likewise.
31178         (test-program-cmd): Define in terms of new variables.
31179         * Rules (make-test-out): Use $(run-program-env).
31180         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
31181         (help): Do not mention environment variables.  Mention
31182         --timeoutfactor option.
31183         (timeoutfactor): New variable.
31184         (blacklist_exports): Remove function.
31185         (exports): Remove variable.
31186         (command): Do not include ${exports}.
31187         * manual/install.texi (Configuring and compiling): Do not mention
31188         test wrappers preserving environment variables.  Mention that last
31189         assignment to a variable must take precedence.
31190         * INSTALL: Regenerated.
31191         * benchtests/Makefile (run-bench): Use $(run-program-env).
31192         * catgets/Makefile ($(objpfx)test1.cat): Use
31193         $(built-program-cmd-before-env), $(run-program-env) and
31194         $(built-program-cmd-after-env).
31195         ($(objpfx)test2.cat): Do not specify environment variables
31196         explicitly.
31197         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
31198         $(run-program-env) and $(built-program-cmd-after-env).
31199         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
31200         $(run-program-env) and $(test-program-cmd-after-env).
31201         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
31202         explicitly.
31203         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
31204         run_program_env and test_program_cmd_after_env arguments.
31205         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
31206         * elf/tst-pathopt.sh: Use run_program_env argument.
31207         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
31208         $(test-wrapper-env) and $(run-program-env).
31209         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
31210         run_program_env arguments.
31211         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
31212         * intl/Makefile ($(objpfx)tst-gettext.out): Use
31213         $(test-program-prefix-before-env), $(run-program-env) and
31214         $(test-program-prefix-after-env).
31215         ($(objpfx)tst-gettext2.out): Likewise.
31216         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
31217         run_program_env and test_program_prefix_after_env arguments.
31218         * intl/tst-gettext2.sh: Likewise.
31219         * intl/tst-gettext4.sh: Do not set environment variables
31220         explicitly.
31221         * intl/tst-gettext6.sh: Likewise.
31222         * intl/tst-translit.sh: Likewise.
31223         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
31224         $(test-program-prefix-before-env), $(run-program-env) and
31225         $(test-program-prefix-after-env).
31226         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
31227         run_program_env and test_program_prefix_after_env arguments.
31228         * math/Makefile (run-regen-ulps): Use $(run-program-env).
31229         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
31230         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
31231         explicitly with each use of ${test_wrapper_env}.
31232         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
31233         $(test-program-prefix-before-env), $(run-program-env) and
31234         $(test-program-prefix-after-env).
31235         * posix/tst-getconf.sh: Do not set environment variables
31236         explicitly.
31237         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
31238         run_program_env and test_program_prefix_after_env arguments.
31239         * stdio-common/tst-printf.sh: Do not set environment variables
31240         explicitly.
31241         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
31242         $(test-program-prefix-before-env), $(run-program-env) and
31243         $(test-program-prefix-after-env).
31244         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
31245         run_program_env and test_program_prefix_after_env arguments.
31246         Split $test calls into $test_pre and $test.
31247         * timezone/Makefile (build-testdata): Use
31248         $(built-program-cmd-before-env), $(run-program-env) and
31249         $(built-program-cmd-after-env).
31250
31251 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31252
31253         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
31254         strlen for non SHARED builds.
31255
31256 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
31257
31258         * nptl/allocatestack.c (check_list): Inlined function...
31259         (__reclaim_stacks): ... here.
31260
31261 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31262
31263         [BZ #15698]
31264         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
31265         memory overrun.
31266
31267 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
31268
31269         * Rules (make-test-out): Include
31270         LOCPATH=$(common-objpfx)localedata in default environment.
31271         * debug/Makefile (tst-chk1-ENV): Remove variable.
31272         (tst-chk2-ENV): Likewise.
31273         (tst-chk3-ENV): Likewise.
31274         (tst-chk4-ENV): Likewise.
31275         (tst-chk5-ENV): Likewise.
31276         (tst-chk6-ENV): Likewise.
31277         (tst-lfschk1-ENV): Likewise.
31278         (tst-lfschk2-ENV): Likewise.
31279         (tst-lfschk3-ENV): Likewise.
31280         (tst-lfschk4-ENV): Likewise.
31281         (tst-lfschk5-ENV): Likewise.
31282         (tst-lfschk6-ENV): Likewise.
31283         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
31284         (tst-iconv7-ENV): Likewise.
31285         * intl/Makefile (LOCPATH-ENV): Likewise.
31286         (tst-codeset-ENV): Likewise.
31287         (tst-gettext3-ENV): Likewise.
31288         (tst-gettext5-ENV): Likewise.
31289         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
31290         (tst-fopenloc-ENV): Likewise.
31291         (tst-fgetws-ENV): Remove variable.
31292         (tst-ungetwc1-ENV): Likewise.
31293         (tst-ungetwc2-ENV): Likewise.
31294         (bug-ungetwc2-ENV): Likewise.
31295         (tst-swscanf-ENV): Likewise.
31296         (bug-ftell-ENV): Likewise.
31297         (tst-fgetwc-ENV): Likewise.
31298         (tst-fseek-ENV): Likewise.
31299         (tst-ftell-partial-wide-ENV): Likewise.
31300         (tst-ftell-active-handler-ENV): Likewise.
31301         (tst-ftell-append-ENV): Likewise.
31302         * posix/Makefile (tst-fnmatch-ENV): Likewise.
31303         (tst-regexloc-ENV): Likewise.
31304         (bug-regex1-ENV): Likewise.
31305         (tst-regex-ENV): Likewise.
31306         (tst-regex2-ENV): Likewise.
31307         (bug-regex5-ENV): Likewise.
31308         (bug-regex6-ENV): Likewise.
31309         (bug-regex17-ENV): Likewise.
31310         (bug-regex18-ENV): Likewise.
31311         (bug-regex19-ENV): Likewise.
31312         (bug-regex20-ENV): Likewise.
31313         (bug-regex22-ENV): Likewise.
31314         (bug-regex23-ENV): Likewise.
31315         (bug-regex25-ENV): Likewise.
31316         (bug-regex26-ENV): Likewise.
31317         (bug-regex30-ENV): Likewise.
31318         (bug-regex32-ENV): Likewise.
31319         (bug-regex33-ENV): Likewise.
31320         (bug-regex34-ENV): Likewise.
31321         (bug-regex35-ENV): Likewise.
31322         (tst-rxspencer-ENV): Likewise.
31323         (tst-rxspencer-no-utf8-ENV): Likewise.
31324         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
31325         (tst-sscanf-ENV): Likewise.
31326         (tst-swprintf-ENV): Likewise.
31327         (tst-swscanf-ENV): Likewise.
31328         (test-vfprintf-ENV): Likewise.
31329         (scanf13-ENV): Likewise.
31330         (bug14-ENV): Likewise.
31331         (tst-grouping-ENV): Likewise.
31332         * stdlib/Makefile (tst-strtod-ENV): Likewise.
31333         (tst-strtod3-ENV): Likewise.
31334         (tst-strtod4-ENV): Likewise.
31335         (tst-strtod5-ENV): Likewise.
31336         (testmb2-ENV): Likewise./
31337         * string/Makefile (tst-strxfrm-ENV): Likewise.
31338         (tst-strxfrm2-ENV): Likewise.
31339         (bug-strcoll1-ENV): Likewise.
31340         (test-strcasecmp-ENV): Likewise.
31341         (test-strncasecmp-ENV): Likewise.
31342         * time/Makefile (tst-strptime-ENV): Likewise.
31343         (tst-ftime_l-ENV): Likewise.
31344         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
31345         (tst-mbrtowc-ENV): Likewise.
31346         (tst-wcrtomb-ENV): Likewise.
31347         (tst-mbrtowc2-ENV): Likewise.
31348         (tst-c16c32-1-ENV): Likewise.
31349         (tst-mbsnrtowcs-ENV): Likewise.
31350
31351 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31352
31353         * manual/resource.texi (How to get information about the memory
31354         subsystem?): Fix typo.
31355         Reported by Peon de la Parra Ivan <peon@keba.com>
31356
31357 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
31358
31359         [BZ #16882]
31360         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
31361         (pthread_spin_lock): Branch out of spin loop to proper location.
31362         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
31363         (pthread_spin_lock): Likewise.
31364
31365         * nptl/tst-spin4.c: New test.
31366         * nptl/Makefile (tests): Add tst-spin4.
31367
31368 2014-06-03  Andreas Schwab  <schwab@suse.de>
31369
31370         [BZ #15946]
31371         * resolv/res_send.c (send_dg): Reload file descriptor after
31372         calling reopen.
31373
31374 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
31375
31376         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
31377
31378 2014-06-03  Richard Henderson  <rth@redhat.com>
31379
31380         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
31381         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
31382         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
31383         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
31384         in the SAVE_PID block.
31385         (__libc_vfork): New alias.
31386         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
31387
31388         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
31389         child in registers, not on the stack.  Remove RESET_PID conditionals.
31390         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
31391
31392 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31393
31394         * sysdeps/aarch64/libm-test-ulps: Regenerate.
31395
31396 2014-06-03  Wilco  <wdijkstr@arm.com>
31397
31398         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
31399         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
31400         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
31401         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
31402         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
31403         Likewise.
31404
31405 2014-06-03  Wilco  <wdijkstr@arm.com>
31406
31407         * sysdeps/aarch64/fpu/math_private.h
31408         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
31409         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
31410         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
31411         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
31412         Fix declarations.
31413
31414 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
31415
31416         * crypt/crypt-private.h: Include ufc-crypt.h.
31417         (__b64_from_24bit): Declare extern.
31418         * crypt/crypt_util.c(__b64_from_24bit): New function.
31419         (b64t): New static const variable.
31420         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
31421         (b64t): Remove variable.
31422         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
31423         * crypt/sha256-crypt.c: Include crypt-private.h.
31424         (b64t): Remove variable.
31425         (__sha256_crypt_r): Remove b64_from_24bit and replace
31426         with __b64_from_24bit.
31427         * crypt/sha512-crypt.c: Likewise.
31428
31429 2014-06-02  Roland McGrath  <roland@hack.frob.com>
31430
31431         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
31432         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
31433         Label the code __libc_vfork rather than __vfork.
31434         [!NOT_IN_libc] (vfork): Define as weak alias.
31435         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
31436         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
31437         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
31438
31439 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
31440
31441         * malloc/malloc.c (malloc_info): Fix format specifier for
31442         n_mmaps.
31443
31444 2014-06-02  Wilco  <wdijkstr@arm.com>
31445
31446         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
31447         FPCR write.
31448
31449 2014-06-02  Wilco  <wdijkstr@arm.com>
31450
31451         [BZ #17009]
31452         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
31453         Rewrite to reduce FPCR/FPSR accesses.
31454
31455 2014-06-01  David S. Miller  <davem@davemloft.net>
31456
31457         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31458
31459 2014-05-31  David S. Miller  <davem@davemloft.net>
31460
31461         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
31462         to occur in round to nearest mode when |x| >= 2.0
31463
31464 2014-05-30  Richard Henderson  <rth@twiddle.net>
31465
31466         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
31467         (PSEUDO_RET_NOERRNO): Remove.
31468         (ret): Don't redefine.
31469         (ret_NOERRNO): Define in terms of ret.
31470         (ret_ERRVAL): Likewise.
31471
31472         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
31473         use of PSEUDO_RET; perform the error check directly.
31474
31475 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
31476
31477         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
31478         with __int128_t.
31479
31480 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
31481
31482         * malloc/malloc (malloc_info): Fix formatting.
31483
31484 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
31485             Roland McGrath  <roland@hack.frob.com>
31486
31487         * malloc/malloc (malloc_info): Also print mmapped statistics.
31488
31489 2014-05-30  Roland McGrath  <roland@hack.frob.com>
31490
31491         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
31492         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
31493
31494 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
31495
31496         * malloc/malloc.c (malloc_info): Inline mi_arena.
31497
31498 2014-05-29  Richard Henderson  <rth@twiddle.net>
31499
31500         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
31501         Remove comma before expanding ASM_ARGS_##nr.
31502         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
31503         Make _x0 a strict output; make _x8 a strict input; adjust expansion
31504         of ASM_ARGS_##nr.
31505         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
31506         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
31507         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
31508         (ASM_ARGS_1): Add leading comma.
31509
31510         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
31511         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
31512         to __errno_location.
31513         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
31514         Remove the expected plt for __errno_location.
31515
31516         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31517         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
31518         call to __read_tp.
31519
31520         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31521         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
31522         it and break it down.
31523         (DOCARGS_0, DOCARGS_1): Do nothing.
31524         (DOCARGS_2): Update to store into the new stack frame.
31525         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
31526         (UNDOCARGS_1): Update to restore from the new stack frame.
31527         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
31528         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
31529
31530         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31531         (SINGLE_THREAD_P): New parameter for result regno.
31532         (PSEUDO): Update to match; use cbz instead of beq.
31533
31534         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31535         Use ENTRY to define the _nocancel entry point.  Share the syscall
31536         and syscall error check paths with the cancel path.
31537         (PSEUDO_END): New.
31538
31539         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
31540         whitespace; tabs before and after asm mnemonics.
31541
31542 2014-05-29  Eric Wong  <normalperson@yhbt.net>
31543
31544         [BZ #15132]
31545         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
31546         Call fstat64 or stat64 internally, depending on arguments passed.
31547         Replace stat buffer argument with file descriptor argument.
31548         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
31549         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
31550         Pass fd to __internal_statvfs instead of calling fstat64.
31551         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
31552         Pass fd to __internal_statvfs64 instead of calling fstat64.
31553         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
31554         Pass -1 to __internal_statvfs instead of calling stat64.
31555         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
31556         Pass -1 to __internal_statvfs64 instead of calling stat64.
31557
31558 2014-05-28  Roland McGrath  <roland@hack.frob.com>
31559
31560         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
31561         that was previously under [RESET_PID].
31562         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
31563
31564         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
31565         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
31566
31567 2014-05-27  Roland McGrath  <roland@hack.frob.com>
31568
31569         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
31570
31571         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
31572         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
31573
31574 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
31575
31576         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
31577
31578 2014-05-27  Andreas Schwab  <schwab@suse.de>
31579
31580         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
31581         TLS_INIT_TP macro.
31582         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
31583         * elf/rtld.c (init_tls, dl_main): Likewise.
31584         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
31585         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
31586         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
31587         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
31588         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
31589         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
31590         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
31591         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
31592         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
31593         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
31594         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
31595         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
31596         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
31597         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
31598         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
31599         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
31600         * sysdeps/generic/tls.h: Update description.
31601
31602 2014-05-27  Will Newton  <will.newton@linaro.org>
31603
31604         [BZ #16990]
31605         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
31606         and restore r2 rather than just restoring.
31607
31608 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
31609
31610         [BZ #16724]
31611         * libio/tst-ftell-append.c: New test case.
31612         * libio/Makefile (tests): Add test case.
31613         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
31614         append mode.
31615         * libio/wfileops.c (do_ftell_wide): Likewise.
31616
31617 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31618
31619         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31620
31621         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
31622         ...
31623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
31624         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
31625         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
31626         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
31627         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
31628         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
31629         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
31630         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
31631         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
31632         Moved ...
31633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
31634         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
31635         Moved ...
31636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
31637         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
31638         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
31639         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
31640         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
31641         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
31642         ...
31643         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
31644         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
31645         Moved ...
31646         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
31647         here.
31648         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
31649         ...
31650         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
31651         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
31652         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
31653
31654         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
31655         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
31656         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
31657         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
31658
31659         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
31660         merge into ...
31661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
31662         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
31663         ...
31664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
31665         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
31666         ...
31667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
31668         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
31669         Moved ...
31670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
31671         here.
31672         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
31673         Moved ...
31674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
31675         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
31676         Moved ...
31677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
31678
31679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
31680         conditional [RESET_PID].
31681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
31682         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
31683         removed.
31684         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
31685         removed.
31686
31687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
31688         <tcb-offsets.h>.
31689         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
31690         (__libc_vfork): New strong alias.
31691         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
31692         removed.
31693         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
31694         Removed.
31695
31696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
31697         <tcb-offsets.h>.
31698         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
31699         (__libc_vfork): New strong alias.
31700         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
31701         removed.
31702         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
31703         removed.
31704
31705 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
31706
31707         * malloc/malloc.c (mi_arena): New function.
31708         (malloc_info): Remove nested function mi_arena. Call non-nosted
31709         function mi_arena.
31710
31711 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31712
31713         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
31714         by insrwi.
31715         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31716         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31717         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
31718         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
31719         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
31720         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
31721         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
31722
31723 2014-05-26  Andreas Schwab  <schwab@suse.de>
31724
31725         [BZ #16984]
31726         * locale/programs/repertoire.c (repertoire_read): Add slash
31727         between I18NPATH element and file name.
31728         * locale/programs/locfile.c (locfile_read): Likewise.
31729
31730 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
31731
31732         * nptl/pthread_mutexattr_settype.c
31733         (__pthread_mutexattr_settype):
31734         Disable lock elision for PTHREAD_MUTEX_NORMAL.
31735
31736 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
31737
31738         * nptl/tst-mutex5 (do_test):
31739         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
31740
31741 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31742
31743         * benchtests/README: Document 'init' directive.
31744         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
31745         BENCH_INIT.
31746         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
31747         (parse_file): Recognize 'init' directive.
31748
31749 2014-05-26  Kyle McMartin  <kyle@redhat.com>
31750
31751         [BZ #16796]
31752         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
31753         alignment of struct pthread.
31754
31755 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31756
31757         [BZ #16878]
31758         * nscd/netgroupcache.c (addgetnetgrentX): Look for
31759         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
31760         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
31761         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
31762
31763 2014-05-25  Richard Henderson  <rth@twiddle.net>
31764
31765         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31766         (SINGLE_THREAD_P_PIC): Remove.
31767         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
31768         (SINGLE_THREAD_P_PIC): Remove.
31769
31770         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
31771         branch to syscall error ...
31772         (PSEUDO): ... here.
31773         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
31774         from __local_syscall_error to .Lsyscall_error.
31775         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
31776         (SYSCALL_ERROR): Update label name.
31777
31778         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
31779         Do not use DOARGS/UNDOARGS.
31780         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
31781         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
31782         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
31783         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
31784         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
31785
31786         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
31787         block comment.
31788
31789         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
31790         define if !NOT_IN_libc.
31791         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
31792         define with non-default symbol versions.
31793
31794 2014-05-23  Richard Henderson  <rth@twiddle.net>
31795
31796         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
31797         (vfork, __vfork): Define via compat_symbol.
31798
31799         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
31800         [!HAVE_IFUNC] (vfork_compat): Remove.
31801         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
31802
31803 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
31804
31805         [BZ #16978]
31806         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
31807         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
31808         variable.
31809
31810 2014-05-23  Richard Henderson  <rth@twiddle.net>
31811
31812         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
31813         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
31814         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
31815         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
31816
31817         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
31818         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
31819         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
31820         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
31821         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
31822         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
31823         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
31824         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
31825         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
31826         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
31827         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
31828         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
31829         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
31830         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
31831         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
31832         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
31833         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
31834         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
31835         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
31836         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
31837         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
31838         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
31839         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
31840         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
31841         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
31842         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
31843         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
31844         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
31845         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
31846         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
31847         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
31848         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
31849         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
31850         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
31851         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
31852         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
31853         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
31854         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
31855         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
31856         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
31857         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
31858         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
31859         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
31860         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
31861         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
31862         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
31863         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
31864         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
31865         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
31866         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
31867         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
31868         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
31869         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
31870         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
31871         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
31872         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
31873
31874         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
31875         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
31876         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
31877         before exiting on error.
31878         (__libc_vfork): New strong alias.
31879         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
31880         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
31881
31882         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
31883         that was previously under [RESET_PID].
31884         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
31885
31886         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
31887
31888 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
31889
31890         [BZ #16977]
31891         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
31892         value when x - 1 is zero.
31893         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
31894         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
31895         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
31896         0.0L for an argument of 1.0L.
31897         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
31898         Likewise.
31899         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
31900         value when x - 1 is zero.
31901         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
31902         * sysdeps/i386/fpu/libm-test-ulps: Update.
31903         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31904
31905 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
31906
31907         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
31908         alphasort and versionsort.
31909
31910 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31911
31912         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
31913         macro.
31914         [copysignf]: Likewise.
31915
31916 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
31917
31918         * crypt/md5-crypt.c: Fix formatting.
31919
31920 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
31921
31922         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
31923         (b64_from_24bit): New function.
31924
31925 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31926
31927         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
31928         libc_hidden_builtin_def to ifunc.
31929         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
31930         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
31931
31932 2014-05-21  Roland McGrath  <roland@hack.frob.com>
31933
31934         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
31935         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
31936
31937 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
31938
31939         * nscd/Depend (linuxthreads): Remove.
31940         (nptl): Add.
31941         * resolv/Depend (linuxthreads): Remove.
31942         * rt/Depend (linuxthreads): Remove.
31943
31944         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
31945         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
31946         $(common-objpfx)elf/.
31947         (link-libc-before-gnulib): Likewise.
31948         (elfobjdir): Remove variable.
31949         * Makefile (install): Use $(elf-objpfx) instead of
31950         $(common-objpfx)elf/.
31951         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
31952         $(elfobjdir)/.
31953         (link-libc-deps): Likewise.
31954         ($(common-objpfx)libc.so): Likewise.
31955         ($(common-objpfx)linkobj/libc.so): Likewise.
31956         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
31957         instead of $(common-objpfx)elf/.
31958         (symbolic-link-list): Likewise.
31959         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31960         [$(cross-compiling) = no]: Likewise.
31961         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
31962         $(elfobjdir)/.
31963         (static-gnulib-arch): Likewise.
31964         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31965         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
31966         $(common-objpfx)elf/.
31967
31968 2014-05-21  Richard Henderson  <rth@redhat.com>
31969
31970         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
31971         (SINGLE_THREAD_P): Use the correct width load.  Fold
31972         into the ldr offset.
31973
31974         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
31975         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
31976
31977 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
31978
31979         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
31980         (libgcc_s_resume): Use __attribute_used__.
31981         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
31982         Likewise.
31983
31984 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31985
31986         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
31987         optimization when used with float constants.
31988
31989         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31990
31991 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
31992
31993         [BZ #16915]
31994         * locale/nl_langinfo_l.c: Make direct reference to every
31995         _nl_current_CATEGORY symbol.
31996         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
31997         (tests-static): Add tst-langinfo-static.
31998         (tests-special): Add tst-langinfo-static.out.
31999         ($(objpfx)tst-langinfo.out): Redirect output.
32000         ($(objpfx)tst-langinfo-static.out): New.
32001         * localedata/tst-langinfo.sh: Send output to stdout.
32002         * localedata/tst-langinfo-static.c: New file.
32003
32004         [BZ #16965]
32005         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
32006         when the shift amount is modulo the limb size.
32007
32008 2014-05-20  Richard Henderson  <rth@redhat.com>
32009
32010         [BZ #16967]
32011         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
32012         Change type of sa_flags from unsigned int to int.
32013
32014         [BZ #16966]
32015         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
32016
32017         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
32018
32019 2014-05-20  Will Newton  <will.newton@linaro.org>
32020
32021         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32022         Test the return value of the system call in the nocancel case.
32023
32024 2014-05-20  Will Newton  <will.newton@linaro.org>
32025             Yvan Roux  <yvan.roux@linaro.org>
32026
32027         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
32028         #include of asm/ptrace.h.
32029         (PTRACE_GET_THREAD_AREA): Remove #undef.
32030         (PTRACE_GETHBPREGS): Likewise.
32031         (PTRACE_SETHBPREGS): Likewise.
32032         (struct user_regs_struct): New structure.
32033         (struct user_fpsimd_struct): New structure.
32034         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
32035         #include of asm/ptrace.h and second #include of sys/user.h.
32036         (PTRACE_GET_THREAD_AREA): Remove #undef.
32037         (PTRACE_GETHBPREGS): Likewise.
32038         (PTRACE_SETHBPREGS): Likewise.
32039         (ELF_NGREG): Use new struct user_regs_struct.
32040         (elf_fpregset_t): Use new struct user_fpsimd_struct.
32041
32042 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32043
32044         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
32045         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
32046
32047 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
32048
32049         [BZ #16958]
32050         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
32051         membar to avoid block loads/stores to overlap previous stores.
32052
32053 2014-05-17  Richard Henderson  <rth@redhat.com>
32054
32055         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
32056         Create the __##syscall_name##_nocancel entry point.
32057         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
32058         Remove; let the sysdep-cancel.h code create it.
32059
32060 2014-05-17  David S. Miller  <davem@davemloft.net>
32061
32062         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
32063         Protect with __USE_GNU.
32064         (TIOCSET_TEMPT): Likewise.
32065         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
32066         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
32067         these are already provided in bits/ioctl-types.h
32068
32069 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32070
32071         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
32072         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
32073
32074         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
32075         Use wait4 regardless of [__NR_waitpid].
32076
32077 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
32078
32079         PR libgcc/60166
32080         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
32081         (_FP_NANSIGN_Q): Set the quiet bit.
32082
32083 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
32084
32085         * benchtests/Makefile
32086         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
32087         not $(common-objpfx)math/libm.so.
32088         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
32089         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
32090         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
32091         $(common-objpfx)dlfcn/libdl.so.
32092         ($(objpfx)tst-audit8): Depend on $(libm), not
32093         $(common-objpfx)math/libm.so.
32094         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
32095         not $(common-objpfx)dlfcn/libdl.so.
32096         * math/Makefile
32097         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
32098         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
32099         [$(build-shared) = yes].
32100         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
32101         $(common-objpfx)nptl/libpthread.so.
32102         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
32103         $(common-objpfx)math/libm.so$(libm.so-version) or
32104         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
32105         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
32106         $(common-objpfx)dlfcn/libdl.so.
32107         * setjmp/Makefile (link-libm): Remove variable.
32108         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
32109         * stdio-common/Makefile (link-libm): Remove variable.
32110         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
32111         * stdlib/Makefile (link-libm): Remove variable.
32112         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
32113         ($(objpfx)tst-strtod-round): Likewise.
32114         ($(objpfx)tst-tininess): Likewise.
32115         ($(objpfx)tst-strtod-underflow): Likewise.
32116         ($(objpfx)tst-strtod6): Likewise.
32117         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
32118         $(libdl), not $(common-objpfx)nptl/libpthread.so and
32119         $(common-objpfx)dlfcn/libdl.so.
32120
32121 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32122
32123         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
32124         BSD terminal modes definitions.
32125
32126 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32127
32128         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
32129         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
32130
32131         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
32132         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
32133         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
32134         Don't do #include_next.
32135         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
32136         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
32137         Don't do #include_next.
32138         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
32139         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
32140         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
32141         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
32142
32143 2014-05-16  Allan McRae  <allan@archlinux.org>
32144
32145         * po/sv.po: Update Swedish translation from translation project.
32146
32147         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
32148         in sed expression.
32149
32150 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
32151
32152         [BZ #16917]
32153         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
32154         errno if the TIOCGPTN ioctl fails with an error different than
32155         EINVAL.
32156         * login/tst-ptsname.c: New file.
32157         * login/Makefile (tests): Add tst-ptsname.
32158
32159         [BZ #16943]
32160         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
32161         and prlimit64.
32162
32163 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
32164
32165         [BZ #16849]
32166         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
32167         herrno to return EAI_AGAIN.
32168
32169 2014-05-14  Roland McGrath  <roland@hack.frob.com>
32170
32171         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
32172         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
32173         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
32174         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
32175         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
32176         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
32177         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
32178         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
32179         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
32180         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
32181         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
32182         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
32183         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
32184         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
32185         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
32186         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
32187         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
32188         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
32189         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
32190         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
32191         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
32192         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
32193         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
32194         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
32195         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
32196         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
32197         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
32198         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
32199         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
32200         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
32201         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
32202         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
32203         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
32204         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
32205         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
32206         Moved ...
32207         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
32208         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
32209         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
32210         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
32211         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
32212         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
32213         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
32214         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
32215         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
32216         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
32217         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
32218         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
32219         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
32220         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
32221         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
32222         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
32223         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
32224         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
32225         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
32226         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
32227         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
32228         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
32229         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
32230         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
32231         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
32232         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
32233         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
32234         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
32235         Moved ...
32236         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
32237         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
32238         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
32239         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
32240         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
32241         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
32242         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
32243         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
32244         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
32245         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
32246         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
32247         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
32248         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
32249         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
32250         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
32251         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
32252         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
32253         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
32254         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
32255         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
32256         Moved ...
32257         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
32258         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
32259         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
32260
32261         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
32262         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
32263         (libpthread-sysdep_routines): Add elision-related stuff here instead.
32264         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
32265         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
32266         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
32267         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
32268         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
32269         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
32270         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
32271         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
32272         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
32273         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
32274         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
32275         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
32276         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
32277         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
32278         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
32279         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
32280         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
32281         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
32282         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
32283         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
32284         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
32285         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
32286         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
32287         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
32288         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
32289         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
32290         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
32291         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
32292
32293         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
32294         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
32295
32296         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
32297         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
32298         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
32299         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
32300         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
32301         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
32302         Moved ...
32303         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
32304         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
32305         Moved ...
32306         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
32307         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
32308         Moved ...
32309         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
32310         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
32311         Moved ...
32312         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
32313         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
32314         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
32315         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
32316         Moved ...
32317         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
32318         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
32319         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
32320         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
32321         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
32322         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
32323         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
32324         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
32325         Moved ...
32326         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
32327         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32328         Moved ...
32329         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32330         ... here.
32331         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
32332         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
32333         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
32334         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
32335         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32336         Moved ...
32337         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32338         ... here.
32339         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
32340         Moved ...
32341         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
32342         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
32343         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
32344         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
32345         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
32346         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
32347         Moved ...
32348         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
32349         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
32350         Moved ...
32351         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
32352         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
32353         Moved ...
32354         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
32355         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
32356         Moved ...
32357         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
32358         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
32359         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
32360         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
32361         Moved ...
32362         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
32363         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
32364         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
32365         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
32366         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
32367         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
32368         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
32369         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
32370         Moved ...
32371         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
32372         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32373         Moved ...
32374         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32375         ... here.
32376         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
32377         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
32378         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
32379         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
32380         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32381         Moved ...
32382         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32383         ... here.
32384         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
32385         Moved ...
32386         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
32387         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
32388         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
32389         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
32390         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
32391         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
32392         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
32393         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
32394         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
32395         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
32396         Moved ...
32397         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
32398         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
32399         Moved ...
32400         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
32401         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
32402         Moved ...
32403         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
32404         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
32405         Moved ...
32406         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
32407         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
32408         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
32409         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
32410         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
32411         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
32412         Moved ...
32413         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
32414         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
32415         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
32416         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
32417         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
32418         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
32419         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
32420         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
32421         Moved ...
32422         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
32423         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
32424         Moved ...
32425         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
32426         ... here.
32427         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
32428         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
32429         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
32430         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
32431         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
32432         Moved ...
32433         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
32434         ... here.
32435         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
32436         Moved ...
32437         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
32438         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
32439         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
32440         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
32441         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
32442         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
32443         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
32444         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
32445         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
32446         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
32447         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
32448
32449         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
32450         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
32451
32452         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
32453         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
32454
32455         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
32456         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
32457         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
32458         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
32459         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
32460         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
32461         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
32462         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
32463         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
32464         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
32465         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
32466         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
32467         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
32468         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
32469         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
32470         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
32471         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
32472         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
32473         Moved ...
32474         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
32475         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
32476         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
32477         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
32478         Moved ...
32479         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
32480         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
32481         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
32482         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
32483         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
32484         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
32485         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
32486         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
32487         Moved ...
32488         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
32489         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
32490         Moved ...
32491         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
32492         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
32493         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
32494         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
32495         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
32496         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
32497         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
32498         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
32499         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
32500         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
32501         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
32502         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
32503         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
32504         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
32505         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
32506         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
32507         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
32508
32509         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
32510         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
32511         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
32512         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
32513         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
32514
32515         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
32516         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
32517         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
32518         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
32519         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
32520         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
32521         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
32522         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
32523         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
32524         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
32525
32526         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
32527         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
32528
32529         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
32530         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
32531         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
32532         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
32533         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
32534         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
32535         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
32536         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
32537         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
32538         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
32539         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
32540         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
32541         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
32542         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
32543         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
32544         Update #include.
32545         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
32546         Likewise.
32547         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
32548         Likewise.
32549         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
32550         Likewise.
32551         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
32552         Likewise.
32553         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
32554         Likewise.
32555         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
32556         Likewise.
32557         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
32558         Likewise.
32559         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
32560         Likewise.
32561         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
32562         Likewise.
32563         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
32564         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
32565         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
32566         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
32567         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
32568         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
32569         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
32570         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
32571         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
32572         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
32573         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
32574         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
32575         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
32576         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
32577         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
32578
32579         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
32580         that was previously under [RESET_PID].
32581         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
32582         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
32583         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
32584
32585         * sysdeps/i386/nptl/Implies: New file.
32586         * sysdeps/x86_64/nptl/Implies: New file.
32587         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
32588         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
32589         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
32590         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
32591
32592         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
32593         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32594         (__libc_vfork): New strong alias.
32595         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
32596         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
32597
32598         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
32599         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32600         (__libc_vfork): New strong alias.
32601         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
32602         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
32603
32604         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
32605         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32606         (__libc_vfork): New strong alias.
32607         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
32608         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
32609         * nptl/pt-vfork.c: New file.
32610         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
32611         (libpthread: GLIBC_2.20): New version set (empty).
32612
32613 2014-05-14  Will Newton  <will.newton@linaro.org>
32614
32615         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
32616         rather than #if.
32617
32618 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
32619
32620         [BZ #16564]
32621         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
32622         arguments with exponent 65 or above.
32623         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
32624         arguments 0x1p113L or above.
32625         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
32626         to arguments 0x1p107L or above.
32627         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
32628         positive arguments with exponent 65 or above.
32629         * math/auto-libm-test-in: Add more tests of log1p.
32630         * math/auto-libm-test-out: Regenerated.
32631
32632         [BZ #16928]
32633         * math/s_cacos.c (__cacos): Ensure zero real part of result from
32634         non-finite arguments is +0.
32635         * math/s_cacosf.c (__cacosf): Likewise.
32636         * math/s_cacosl.c (__cacosl): Likewise.
32637         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
32638         * sysdeps/i386/fpu/libm-test-ulps: Update.
32639         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32640
32641         [BZ #16927]
32642         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
32643         value.
32644         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
32645         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
32646         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
32647         for explicit high bit of mantissa when testing for argument equal
32648         to 1.
32649         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
32650         * sysdeps/i386/fpu/libm-test-ulps: Update.
32651         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32652
32653         [BZ #16516]
32654         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
32655         (__erf): Scale by 16 instead of 8 in potentially underflowing
32656         case.  Ensure exception if result actually underflows.
32657         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
32658         (__erff): Scale by 16 instead of 8 in potentially underflowing
32659         case.  Ensure exception if result actually underflows.
32660         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
32661         (efx8): Remove variable.
32662         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32663         case.  Ensure exception if result actually underflows.
32664         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
32665         (efx8): Remove variable.
32666         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32667         case.  Ensure exception if result actually underflows.
32668         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
32669         (efx8): Remove variable.
32670         (__erfl): Scale by 16 instead of 8 in potentially underflowing
32671         case.  Ensure exception if result actually underflows.
32672         * math/auto-libm-test-in: Add more tests of erf.
32673         * math/auto-libm-test-out: Regenerated.
32674
32675 2014-05-14  Andreas Schwab  <schwab@suse.de>
32676
32677         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
32678         Remove code conditionalized on USE___THREAD.
32679
32680         * config.h.in (HAVE_PT_CHOWN): Define as 0.
32681         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
32682         not definedness.
32683
32684 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
32685
32686         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
32687         Define unconditionally.
32688         (__ASSUME_O_CLOEXEC): Likewise.
32689         (__ASSUME_SOCK_CLOEXEC): Likewise.
32690         (__ASSUME_IN_NONBLOCK): Likewise.
32691         (__ASSUME_PIPE2): Likewise.
32692         (__ASSUME_EVENTFD2): Likewise.
32693         (__ASSUME_SIGNALFD4): Likewise.
32694         (__ASSUME_DUP3): Likewise.
32695         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
32696         (__ASSUME_DUP3): Do not define.
32697         (__ASSUME_EVENTFD2): Likewise.
32698         (__ASSUME_IN_NONBLOCK): Likewise.
32699         (__ASSUME_O_CLOEXEC): Likewise.
32700         (__ASSUME_PIPE2): Likewise.
32701         (__ASSUME_SIGNALFD4): Likewise.
32702         (__ASSUME_SOCK_CLOEXEC): Likewise.
32703         (__ASSUME_UTIMES): Undefine.
32704         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
32705         (__ASSUME_UTIMES): Do not define.
32706         (__ASSUME_O_CLOEXEC): Likewise.
32707         (__ASSUME_SOCK_CLOEXEC): Likewise.
32708         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
32709         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
32710         0x020621].
32711         (__ASSUME_PIPE2): Likewise.
32712         (__ASSUME_EVENTFD2): Likewise.
32713         (__ASSUME_SIGNALFD4): Likewise.
32714         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
32715         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
32716         Do not define.
32717         (__ASSUME_EVENTFD2): Likewise.
32718         (__ASSUME_SIGNALFD4): Likewise.
32719         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
32720         (__ASSUME_32BITUIDS): Likewise.
32721         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
32722         (__ASSUME_IPC64): Likewise.
32723         (__ASSUME_ST_INO_64_BIT): Likewise.
32724         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
32725         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
32726         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
32727         (__ASSUME_UTIMES): Do not define.
32728         (__ASSUME_PSELECT): Likewise.
32729         (__ASSUME_PPOLL): Likewise.
32730         (__ASSUME_O_CLOEXEC): Likewise.
32731         (__ASSUME_SOCK_CLOEXEC): Likewise.
32732         (__ASSUME_IN_NONBLOCK): Likewise.
32733         (__ASSUME_PIPE2): Likewise.
32734         (__ASSUME_EVENTFD2): Likewise.
32735         (__ASSUME_SIGNALFD4): Likewise.
32736         (__ASSUME_DUP3): Likewise.
32737         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
32738         (__ASSUME_UTIMES): Likewise.
32739         (__ASSUME_O_CLOEXEC): Likewise.
32740         (__ASSUME_SOCK_CLOEXEC): Likewise.
32741         (__ASSUME_IN_NONBLOCK): Likewise.
32742         (__ASSUME_PIPE2): Likewise.
32743         (__ASSUME_EVENTFD2): Likewise.
32744         (__ASSUME_SIGNALFD4): Likewise.
32745         (__ASSUME_DUP3): Likewise.
32746         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
32747         (__ASSUME_UTIMES): Likewise.
32748         (__ASSUME_O_CLOEXEC): Likewise.
32749         (__ASSUME_SOCK_CLOEXEC): Likewise.
32750         (__ASSUME_IN_NONBLOCK): Likewise.
32751         (__ASSUME_PIPE2): Likewise.
32752         (__ASSUME_EVENTFD2): Likewise.
32753         (__ASSUME_SIGNALFD4): Likewise.
32754         (__ASSUME_DUP3): Likewise.
32755         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
32756         Likewise.
32757         (__ASSUME_UTIMES): Likewise.
32758         (__ASSUME_EVENTFD2): Likewise.
32759         (__ASSUME_SIGNALFD4): Likewise.
32760         * sysdeps/unix/sysv/linux/tile/kernel-features.h
32761         (__ASSUME_O_CLOEXEC): Likewise.
32762         (__ASSUME_SOCK_CLOEXEC): Likewise.
32763         (__ASSUME_IN_NONBLOCK): Likewise.
32764         (__ASSUME_PIPE2): Likewise.
32765         (__ASSUME_EVENTFD2): Likewise.
32766         (__ASSUME_SIGNALFD4): Likewise.
32767         (__ASSUME_DUP3): Likewise.
32768         (__ASSUME_UTIMES): Undefine.
32769
32770         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
32771         feclearexcept.  Remove symbol versioning code.
32772         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
32773         symbol versioning code.
32774         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
32775         symbol versioning code.
32776         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
32777         feupdateenv.  Remove symbol versioning code.
32778         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
32779         fegetexceptflag.  Remove symbol versioning code.
32780         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
32781         fesetexceptflag.  Remove symbol versioning code.
32782         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
32783         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
32784         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
32785         (__posix_fadvise64_l32): Remove prototype.
32786         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
32787         code.
32788
32789 2014-05-13  Roland McGrath  <roland@hack.frob.com>
32790
32791         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
32792         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
32793         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
32794         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
32795
32796 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
32797
32798         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
32799         current working directory
32800
32801 2014-05-13  Roland McGrath  <roland@hack.frob.com>
32802
32803         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
32804         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
32805         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
32806         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
32807         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
32808         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
32809         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
32810         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
32811         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
32812         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
32813         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
32814         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
32815         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
32816         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
32817         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
32818         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
32819         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
32820         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
32821         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
32822         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
32823         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
32824         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
32825         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
32826         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
32827         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
32828         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
32829         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
32830         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
32831         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
32832         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
32833         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
32834         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
32835         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
32836         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
32837         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
32838         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
32839         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
32840         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
32841         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
32842         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
32843         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
32844         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
32845
32846         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
32847         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
32848
32849         * sysdeps/unix/sysv/linux/arm/Makefile
32850         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
32851         Add rt-aeabi_unwind_cpp_pr1.
32852         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
32853         Add nptl-aeabi_unwind_cpp_pr1.
32854         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
32855         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
32856         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
32857         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
32858         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
32859         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
32860
32861         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
32862         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
32863         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
32864         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
32865
32866         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
32867         Deconditionalize the code that was previously under [RESET_PID].
32868         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
32869
32870         * sysdeps/generic/exit-thread.h: New file.
32871         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
32872         * include/unistd.h (__exit_thread): Remove declaration.
32873         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
32874         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
32875         * csu/libc-start.c: Include <exit-thread.h>.
32876         (LIBC_START_MAIN): Pass no argument to __exit_thread.
32877         * nptl/pthread_create.c: Include <exit-thread.h>.
32878         (start_thread): Call __exit_thread in place of __exit_thread_inline.
32879         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
32880         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
32881         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
32882         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
32883         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
32884         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
32885         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
32886         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
32887         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
32888         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
32889         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
32890         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
32891         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
32892         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
32893         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
32894         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
32895
32896 2014-05-13  Andreas Schwab  <schwab@suse.de>
32897
32898         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
32899
32900 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
32901
32902         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
32903         (__ASSUME_UTIMES): Do not condition on kernel version.
32904         (__ASSUME_PSELECT): Define unconditionally.
32905         (__ASSUME_PPOLL): Likewise.
32906         (__ASSUME_ATFCTS): Likewise.
32907         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
32908         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
32909         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
32910         (__ASSUME_UTIMENSAT): Define unconditionally.
32911         (__ASSUME_PRIVATE_FUTEX): Likewise.
32912         (__ASSUME_FALLOCATE): Likewise.
32913         (__ASSUME_O_CLOEXEC): Likewise.
32914         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
32915         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
32916         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
32917         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
32918         (__ASSUME_IN_NONBLOCK): Likewise.
32919         (__ASSUME_PIPE2): Likewise.
32920         (__ASSUME_EVENTFD2): Likewise.
32921         (__ASSUME_SIGNALFD4): Likewise.
32922         (__ASSUME_DUP3): Likewise.
32923         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
32924         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
32925         (__ASSUME_AT_RANDOM): Likewise.
32926         (__ASSUME_PREADV): Likewise.
32927         (__ASSUME_PWRITEV): Likewise.
32928         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
32929         (__ASSUME_F_GETOWN_EX): Define unconditionally.
32930         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
32931         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
32932         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
32933         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
32934         (__ASSUME_O_CLOEXEC): Define unconditionally.
32935         (__ASSUME_PSELECT): Do not undefine conditionally.
32936         (__ASSUME_PPOLL): Likewise.
32937         (__ASSUME_ATFCTS): Likewise.
32938         (__ASSUME_SET_ROBUST_LIST): Likewise.
32939         (__ASSUME_UTIMENSAT): Likewise.
32940         (__ASSUME_FDATASYNC): Define unconditionally.
32941         * sysdeps/unix/sysv/linux/arm/kernel-features.h
32942         (__ASSUME_SIGFRAME_V2): Likewise.
32943         )__ASSUME_EVENTFD2): Likewise.
32944         (__ASSUME_SIGNALFD4): Likewise.
32945         (__ASSUME_PSELECT): Do not undefine conditionally.
32946         (__ASSUME_PPOLL): Likewise.
32947         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
32948         (__ASSUME_PSELECT): Define unconditionally.
32949         (__ASSUME_PPOLL): Likewise.
32950         (__ASSUME_O_CLOEXEC): Likewise.
32951         (__ASSUME_SOCK_CLOEXEC): Likewise.
32952         (__ASSUME_IN_NONBLOCK): Likewise.
32953         (__ASSUME_PIPE2): Likewise.
32954         (__ASSUME_EVENTFD2): Likewise.
32955         (__ASSUME_SIGNALFD4): Likewise.
32956         (__ASSUME_DUP3): Likewise.
32957         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
32958         (__ASSUME_O_CLOEXEC): Likewise.
32959         (__ASSUME_SOCK_CLOEXEC): Likewise.
32960         (__ASSUME_IN_NONBLOCK): Likewise.
32961         (__ASSUME_PIPE2): Likewise.
32962         (__ASSUME_EVENTFD2): Likewise.
32963         (__ASSUME_SIGNALFD4): Likewise.
32964         (__ASSUME_DUP3): Likewise.
32965         * sysdeps/unix/sysv/linux/mips/kernel-features.h
32966         (__ASSUME_EVENTFD2): Likewise.
32967         (__ASSUME_SIGNALFD4): Likewise.
32968         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
32969
32970 2014-05-12  Andreas Schwab  <schwab@suse.de>
32971
32972         [BZ #16932]
32973         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
32974         (_nss_nis_gethostbyname4_r): Return error if item length is larger
32975         than maximum RPC packet size.
32976         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
32977         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
32978         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
32979         (_nss_nis_getservbyport_r): Likewise.
32980
32981 2014-05-12  Will Newton  <will.newton@linaro.org>
32982
32983         * malloc/Makefile (tests): Add tst-mallopt.
32984         * malloc/tst-mallopt.c: New file.
32985
32986 2014-05-09  Roland McGrath  <roland@hack.frob.com>
32987
32988         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
32989         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
32990
32991 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32992
32993         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
32994         (tst-tlsmod6.so): Likewise.
32995
32996 2014-05-09  Roland McGrath  <roland@hack.frob.com>
32997
32998         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
32999
33000 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
33001
33002         [BZ #16064]
33003         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
33004         and <dl-procinfo.h>.
33005         (__fegetenv): Save SSE state in envp->__eip if supported.
33006         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
33007         envp->__eip if supported.
33008         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
33009         and <dl-procinfo.h>.
33010         (__fesetenv): Always set __eip, __cs_selector, __opcode,
33011         __data_offset and __data_selector in environment to 0.  Set SSE
33012         state if supported.
33013         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
33014         test-fenv-sse.
33015         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
33016         -mfpmath=sse.
33017         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
33018
33019 2014-05-09  Will Newton  <will.newton@linaro.org>
33020
33021         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
33022         and libc_relro_required for ARM.
33023         * sysdeps/arm/preconfigure: Regenerate.
33024
33025 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33026             Stefan Liebler  <stli@linux.vnet.ibm.com>
33027
33028         * config.make.in (enable-lock-elision): New Makefile variable.
33029         * configure.ac: Likewise.
33030         * configure: Regenerate.
33031         * sysdeps/s390/configure.ac:
33032         Add check for gcc transactions support.
33033         * sysdeps/s390/configure: Regenerate.
33034         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
33035         Build elision files if enabled.
33036         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
33037         Add lock elision support for s390.
33038         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
33039         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
33040         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
33041         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
33042         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
33043         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
33044         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
33045         Likewise.
33046         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
33047         Likewise.
33048         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
33049         Likewise.
33050         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
33051         Likewise.
33052         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
33053         (__lll_timedlock_elision, __lll_lock_elision)
33054         (__lll_unlock_elision, __lll_trylock_elision)
33055         (lll_timedlock_elision, lll_lock_elision)
33056         (lll_unlock_elision, lll_trylock_elision): Add.
33057         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
33058         (pthread_mutex_t): Add lock elision support for s390.
33059
33060 2014-05-14  Wilco  <wdijkstr@arm.com>
33061
33062         * sysdeps/arm/fclrexcpt.c: Cleanup.
33063         * sysdeps/arm/fedisblxcpt.c: Cleanup.
33064         * sysdeps/arm/feenablxcpt.c: Cleanup.
33065         * sysdeps/arm/fegetenv.c: Cleanup.
33066         * sysdeps/arm/fegetexcept.c: Cleanup.
33067         * sysdeps/arm/fegetround.c: Cleanup.
33068         * sysdeps/arm/feholdexcpt.c: Cleanup.
33069         * sysdeps/arm/fesetenv.c: Cleanup.
33070         * sysdeps/arm/fesetround.c: Cleanup.
33071         * sysdeps/arm/feupdateenv.c: Cleanup.
33072         * sysdeps/arm/fgetexcptflg.c: Cleanup.
33073         * sysdeps/arm/fraiseexcpt.c: Cleanup.
33074         * sysdeps/arm/fsetexcptflg.c: Cleanup.
33075         * sysdeps/arm/ftestexcept.c: Cleanup.
33076         * sysdeps/arm/get-rounding-mode.h: Cleanup.
33077         * sysdeps/arm/setfpucw.c: Cleanup.
33078
33079 2014-05-09  Will Newton  <will.newton@linaro.org>
33080
33081         * sysdeps/arm/armv7/strcmp.S: New file.
33082         * NEWS: Mention addition of ARMv7 optimized strcmp.
33083
33084 2014-05-08  Roland McGrath  <roland@hack.frob.com>
33085
33086         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
33087         look for %.ac rather than %.in.
33088
33089         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
33090         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
33091         * sysdeps/mach/hurd/configure: Regenerated.
33092         * sysdeps/unix/sysv/linux/configure: Regenerated.
33093
33094         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
33095
33096 2014-05-07  Steve Ellcey  <sellcey@mips.com>
33097
33098         [BZ# 16922]
33099         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
33100         (LONG_SUB): Ditto.
33101         (PTR_SUB): Ditto.
33102
33103 2014-05-07  Andreas Schwab  <schwab@suse.de>
33104
33105         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
33106         when skipping over non-matching result from nscd.
33107
33108 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
33109
33110         [BZ #16876]
33111         * nptl/sockperf.c (client): Check socket return value.
33112
33113         [BZ #16877]
33114         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
33115         nscd security class.
33116
33117 2014-05-06  Roland McGrath  <roland@hack.frob.com>
33118
33119         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
33120         * sysdeps/arm/unwind.h: ... here.
33121
33122 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
33123
33124         [BZ# 16916]
33125         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
33126         Define.
33127
33128 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
33129
33130         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
33131         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
33132         multiarch strncpy for PPC64.
33133         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
33134         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
33135         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
33136         multiarch optimizations.
33137         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
33138         (__libc_ifunc_impl_list): Likewise.
33139         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
33140         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
33141         multiarch stpncpy for PPC64.
33142         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
33143         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
33144
33145 2014-05-06  Andreas Schwab  <schwab@suse.de>
33146
33147         [BZ #16912]
33148         * gmon/mcount.c (_MCOUNT_DECL): Use
33149         atomic_compare_and_exchange_bool_acq instead of
33150         catomic_compare_and_exchange_bool_acq.
33151
33152 2014-05-05  Roland McGrath  <roland@hack.frob.com>
33153
33154         * elf/Makefile (others, install-bin): Remove pldd.
33155         (pldd-modules): Variable removed.
33156         ($(objpfx)pldd): Target removed.
33157         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
33158         (others, install-bin): Append pldd here.
33159         ($(objpfx)pldd): New target.
33160
33161         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
33162         to 0, so the first #if test emitted later doesn't see it undefined.
33163         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
33164         * sysdeps/gnu/errlist.c: Regenerated.
33165
33166 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33167
33168         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
33169         [libc_hidden_builtin_def]: Define to empty value.
33170         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
33171         [libc_hidden_builtin_def]: Likewise.
33172         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
33173         [libc_hidden_builtin_def]: Likewise.
33174         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
33175         [libc_hidden_builtin_def]: Likewise.
33176         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
33177         __redirect_memcpy and define ifunc as default hidden symbol.
33178         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
33179         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
33180
33181 2014-05-04  Adam Conrad  <adconrad@0c3.net>
33182
33183         * locale/iso-4217.def: Reintroduce XDR currency.
33184
33185 2014-05-04  Allan McRae  <allan@archlinux.org>
33186
33187         * po/eo.po: Update Esperanto translation from translation project.
33188
33189 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
33190
33191         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
33192         and FEATURE_INDEX_MAX to 1.
33193         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
33194
33195 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33196
33197         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
33198         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
33199         * iconvdata/big5.c (ONE_DIRECTION): Define.
33200         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
33201         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
33202         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
33203         * iconvdata/cp932.c (ONE_DIRECTION): Define.
33204         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
33205         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
33206         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
33207         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
33208         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
33209         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
33210         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
33211         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
33212         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
33213         * iconvdata/gbk.c (ONE_DIRECTION): Define.
33214         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
33215         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
33216         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
33217         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
33218         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
33219         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
33220         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
33221         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
33222         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
33223         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
33224         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
33225         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
33226         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
33227         * iconvdata/iso646.c (ONE_DIRECTION): Define.
33228         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
33229         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
33230         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
33231         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
33232         * iconvdata/johab.c (ONE_DIRECTION): Define.
33233         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
33234         * iconvdata/sjis.c (ONE_DIRECTION): Define.
33235         * iconvdata/t.61.c (ONE_DIRECTION): Define.
33236         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
33237         * iconvdata/tscii.c (ONE_DIRECTION): Define.
33238         * iconvdata/uhc.c (ONE_DIRECTION): Define.
33239         * iconvdata/unicode.c (ONE_DIRECTION): Define.
33240         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
33241         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
33242         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
33243
33244 2014-05-01  Roland McGrath  <roland@hack.frob.com>
33245
33246         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
33247         (_IO_JUMPS_OFFSET): Define to 0.
33248
33249         * nptl/sysdeps/pthread/bits/libc-lock.h
33250         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
33251         (__libc_lock_define_initialized_recursive): Always define using
33252         initializer.  Modern compilers treat uninitialized (implicit zero) and
33253         explicit zero initializers the same (i.e. put the datum in bss).
33254
33255 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33256
33257         * nscd/nscd-client.h: Include <string.h>.
33258
33259 2014-05-01  David S. Miller  <davem@davemloft.net>
33260
33261         [BZ #16885]
33262         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
33263         multiple zero bytes exist at the end of a string.
33264         Reported by Aurelien Jarno <aurelien@aurel32.net>
33265
33266         * string/test-strcmp.c (check): Add explicit test for situations where
33267         there are multiple zero bytes after the first.
33268
33269 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33270
33271         [BZ #16890]
33272         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
33273         when compiling wprintf.
33274         * stdio-common/tstdiomisc.c (t3): New function.
33275         (main): Call it.
33276
33277 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33278
33279         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
33280         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
33281         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
33282         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
33283
33284 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33285
33286         * stdlib/longlong.h: Updated from GCC.
33287
33288 2014-05-01  Will Newton  <will.newton@linaro.org>
33289             Bernard Ogden  <bernie.ogden@linaro.org>
33290
33291         * NEWS: Update fixed bug list.
33292
33293         [BZ #15119]
33294         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
33295
33296 2014-04-30  David S. Miller  <davem@davemloft.net>
33297
33298         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
33299         (libc_feholdexcept_setround_sparc_ctx): New function.
33300         (libc_fesetenv_sparc_ctx): Likewise.
33301         (libc_feupdateenv_sparc_ctx): Likewise.
33302         (libc_feholdsetround_sparc_ctx): Likewise.
33303         (libc_feholdexcept_setround_ctx): Define.
33304         (libc_feholdexcept_setroundf_ctx): Likewise.
33305         (libc_feholdexcept_setroundl_ctx): Likewise.
33306         (libc_fesetenv_ctx): Likewise.
33307         (libc_fesetenvf_ctx): Likewise.
33308         (libc_fesetenvl_ctx): Likewise.
33309         (libc_feupdateenv_ctx): Likewise.
33310         (libc_feupdateenvf_ctx): Likewise.
33311         (libc_feupdateenvl_ctx): Likewise.
33312         (libc_feresetround_ctx): Likewise.
33313         (libc_feresetroundf_ctx): Likewise.
33314         (libc_feresetroundl_ctx): Likewise.
33315         (libc_feholdsetround_ctx): Likewise.
33316         (libc_feholdsetroundf_ctx): Likewise.
33317         (libc_feholdsetroundl_ctx): Likewise.
33318
33319         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33320         with __USE_GNU instead of XOPEN cpp guards.
33321
33322         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
33323         0.
33324
33325         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33326         with XOPEN cpp guards.
33327
33328 2014-04-30  Julian Brown  <julian@codesourcery.com>
33329
33330         [BZ #16888]
33331         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
33332         handling.
33333
33334 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
33335
33336         [BZ #9894]
33337         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
33338         Change to 2.6.32.
33339         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
33340         * sysdeps/unix/sysv/linux/configure: Regenerated.
33341         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
33342         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
33343         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
33344         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
33345         * README: Update reference to required Linux kernel version.
33346         * manual/install.texi (Linux): Update reference to required Linux
33347         kernel headers version.
33348         * INSTALL: Regenerated.
33349
33350         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
33351         header inclusion.
33352         [POSIX] (limits.h): Likewise.
33353         [POSIX] (math.h): Likewise.
33354         [POSIX] (sys/wait.h): Likewise.
33355         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
33356         function.
33357         [POSIX] (stddef.h): Do not allow header inclusion.
33358
33359 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33360
33361         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
33362
33363 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
33364
33365         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
33366         Return immediately after lll_futex_wake.
33367
33368 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33369
33370         [BZ #16791]
33371         * nscd/nscd-client.h (datahead_init_common): Initialize entire
33372         structure.
33373         (datahead_init_pos): Call datahead_init_common early.
33374         (datahead_init_neg): Likewise.
33375
33376         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
33377         datahead_init_neg): New functions.
33378         * nscd/aicache.c (addhstaiX): Use them.
33379         * nscd/grpcache.c (cache_addgr): Likewise.
33380         * nscd/hstcache.c (cache_addhst): Likewise.
33381         * nscd/initgrcache.c (addinitgroupsX): Likewise.
33382         * nscd/netgroupcache.c (do_notfound): Likewise.
33383         (addgetnetgrentX): Likewise.
33384         (addinnetgrX): Likewise.
33385         * nscd/pwdcache.c (cache_addpw): Likewise.
33386         * nscd/servicescache.c (cache_addserv): Likewise.
33387
33388 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33389             Atsushi Onoe  <atsushi@onoe.org>
33390
33391         [BZ #14308]
33392         [BZ #12994]
33393         [BZ #13651]
33394         * resolv/res_query.c (__libc_res_nsearch): Return if at least
33395         one response is valid.
33396         * resolv/res_send.c (send_dg): Check for validity of other
33397         response if the current response is a referral.
33398
33399 2014-04-29  Steve Ellcey  <sellcey@mips.com>
33400
33401         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
33402
33403 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
33404
33405         [BZ #16823]
33406         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
33407         Always divide by positive zero when computing -Inf result.
33408         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
33409         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
33410
33411 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33412
33413         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
33414         FPSCR if value do not change.
33415         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
33416         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
33417         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
33418         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
33419         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
33420         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
33421         function.
33422
33423 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
33424
33425         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
33426         * sysdeps/unix/sysv/linux/hppa: Move directory from
33427         ports/systeps/unix/sysv/linux/hppa.
33428         * README: Update listing for hppa-*-linux-gnu.
33429
33430 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
33431
33432         [BZ #16754]
33433         * manual/stdio.texi (Hook functions): Fix types of stream hook
33434         functions.
33435         [BZ #16854]
33436         * socket/sys/socket.h: Fix typo in comment.
33437
33438 2014-04-28  Wilco  <wdijkstr@arm.com>
33439
33440         * sysdeps/arm/fenv_private.h: New file.
33441         * sysdeps/arm/math_private.h: New file.
33442         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
33443
33444 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
33445
33446         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
33447         with __int128_t.
33448         (La_x86_64_retval): Likewise.
33449
33450 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
33451
33452         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
33453         fpsr if value didn't change.
33454         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
33455         to fpcr if value didn't change.
33456         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
33457         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
33458         fpsr or fpcr if value didn't change.
33459         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
33460         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
33461         fpcr if value didn't change.
33462         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
33463         to fpsr if value didn't change.
33464
33465 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
33466
33467         * nptl/tst-sem3.c: Use test-skeleton.c
33468         (main): Rename to do_test.  Use return instead of
33469         exit.
33470         * nptl/tst-sem4.c: Use test-skeleton.c
33471         (main): Rename to do_test.
33472
33473 2014-04-22  David S. Miller  <davem@davemloft.net>
33474
33475         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
33476         (struct sigaction): New struct member __glibc_reserved0, change
33477         type of sa_flags to int.
33478
33479 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
33480
33481         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
33482         (COUNT_LEADING_ZEROS_0): Define for AArch64.
33483
33484 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
33485
33486         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
33487         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
33488
33489 2014-04-22  Will Newton  <will.newton@linaro.org>
33490             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
33491
33492         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
33493         (__longjmp): Add longjmp and longjmp_target SystemTap
33494         probes.
33495         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
33496         (__sigsetjmp): Add setjmp SystemTap probe.
33497
33498 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
33499
33500         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
33501         match manual order.
33502
33503 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33504
33505         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
33506
33507         * sysdeps/powerpc/fpu/fenv_private.h
33508         (libc_feholdexcept_setroundl_ctx): Define to
33509         libc_feholdexcept_setround_ppc_ctx.
33510         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
33511         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
33512         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
33513         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
33514
33515 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
33516
33517         * sysdeps/aarch64/math-tests.h: New file.
33518
33519 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
33520
33521         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
33522         New.
33523         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33524         Check and set bit_AVX2_Usable.
33525         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
33526         macro.
33527         (bit_AVX2): Likewise.
33528         (index_AVX2_Usable): Likewise.
33529         (CPUID_AVX2): Likewise.
33530         (HAS_AVX2): Likewise.
33531
33532 2014-04-17  Will Newton  <will.newton@linaro.org>
33533
33534         * manual/setjmp.texi (System V contexts): Add note that
33535         calling setcontext on a context created by a call to a
33536         signal handler is undefined.  Update text to note that
33537         setcontext from a signal handler is possible but not
33538         recommended.
33539
33540         [BZ #16629]
33541         * stdlib/tst-setcontext.c: Include signal.h.
33542         (main): Check that the signal stack before and
33543         after swapcontext is the same.
33544
33545         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
33546         Re-implement to restore registers in user code and avoid
33547         rt_sigreturn system call.
33548
33549 2014-04-17  Wilco  <wdijkstr@arm.com>
33550
33551         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
33552         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
33553         * math/test-fenv.c: Skip exception trap tests on targets which only
33554         support non-stop mode.
33555
33556 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
33557             Wilco Dijkstra  <wilco.dijkstra@arm.com>
33558
33559         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
33560         (libc_feholdsetround_aarch64_ctx)
33561         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
33562         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
33563         (libc_feresetround_ctx, libc_feresetroundf_ctx)
33564         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
33565         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
33566         (libc_feresetround_noexl_ctx): Define.
33567
33568 2014-04-16  Richard Henderson  <rth@redhat.com>
33569
33570         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
33571
33572         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
33573         unwind tables.
33574
33575         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
33576         const from the non-libc, non-ldso copy.
33577
33578         * sysdeps/alpha/libm-test-ulps: Regenerate.
33579
33580 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
33581             Wilco Dijkstra  <wilco.dijkstra@arm.com>
33582
33583         * sysdeps/aarch64/fpu/math_private.h: New file.
33584
33585 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33586
33587         * sysdeps/aarch64/libm-test-ulps: Regenerate.
33588
33589 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
33590
33591         [BZ #16275]
33592         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
33593         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
33594         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
33595         Intel MPX bound registers before _dl_profile_fixup.
33596         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
33597         registers after _dl_profile_fixup.  Save and restore bound
33598         registers bnd0/bnd1 when calling _dl_call_pltexit.
33599         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
33600         (LR_BND_OFFSET): Likewise.
33601         (LRV_BND0_OFFSET): Likewise.
33602         (LRV_BND1_OFFSET): Likewise.
33603
33604 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33605
33606         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
33607         to...
33608         * sysdeps/mach/hurd/i386/tls.h: ... here.
33609         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
33610         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
33611         fields.
33612
33613 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33614
33615         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
33616
33617 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
33618
33619         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
33620
33621 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
33622
33623         [BZ #14770]
33624         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
33625         * sysdeps/s390/configure: Regenerate.
33626
33627         [BZ #16824]
33628         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
33629         Set round-to-nearest internally to reduce error accumulation.
33630
33631 2014-04-16  Alan Modra  <amodra@gmail.com>
33632
33633         [BZ #16740]
33634         [BZ #16619]
33635         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
33636         * math/libm-test.inc (frexp_test_data): Add tests.
33637         * NEWS: Update fixed bug list.
33638
33639 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
33640
33641         * benchtests/Makefile: Depend on libraries in build directory.
33642         (bench-math): Separate out math tests.
33643         (bench-pthread): Separate out pthread tests.
33644         (bench): Include math and pthread tests.
33645
33646 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
33647
33648         [BZ #16831]
33649         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
33650         _dl_debug_initialize.
33651
33652         * configure.ac: Remove SELinux header check.
33653         * configure: Regenerate.
33654         * nscd/selinux.c (perms): Array of const char* to permission names.
33655         (nscd_request_avc_has_perm): Call security_deny_unknown to find
33656         default policy. Call string_to_security_class and string_to_av_perm to
33657         translate strings. Enforce default policy and call avs_has_perm with
33658         results of translated strings.
33659
33660 2014-04-13  David S. Miller  <davem@davemloft.net>
33661
33662         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33663
33664 2014-04-12  Allan McRae  <allan@archlinux.org>
33665
33666         [BZ #16838]
33667         * manual/string.texi (Collation Functions): Fix qsort argument
33668         order in example.
33669         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
33670
33671 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
33672
33673         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
33674         Make the test a no-op if there are no exceptions defined.
33675
33676 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
33677
33678         * elf/Makefile (tests): make tst-dlopen-aout conditional on
33679         enable-hardcoded-path-in-tests
33680
33681 2014-04-11  Will Newton  <will.newton@linaro.org>
33682
33683         * benchtests/Makefile (extra-objs): Add json-lib.o.
33684         (bench-func): Tidy up JSON output.
33685         * benchtests/bench-skeleton.c: Include json-lib.h.
33686         (main): Use JSON library functions to do output of
33687         benchmark results.
33688         * benchtests/bench-timing-type.c (main): Output the
33689         timing type simply, leaving formatting to the user.
33690         * benchtests/json-lib.c: New file.
33691         * benchtests/json-lib.h: Likewise.
33692
33693 2014-04-11  Torvald Riegel  <triegel@redhat.com>
33694
33695         [BZ #15215]
33696         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
33697         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
33698         memory barriers.  Add comments.
33699         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
33700         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
33701         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
33702         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
33703         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
33704         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
33705
33706 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
33707
33708         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
33709         * sysdeps/s390/s390-64/configure.ac: ... this ...
33710         * sysdeps/s390/configure.ac: ... to here.
33711         * sysdeps/s390/s390-32/configure: Delete file.
33712         * sysdeps/s390/s390-64/configure: Delete file.
33713         * sysdeps/s390/configure: Regenerate.
33714
33715 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
33716
33717         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
33718
33719 2014-04-11  Will Newton  <will.newton@linaro.org>
33720
33721         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
33722         to zero if it is not defined elsewhere.  (mtrim): Test
33723         the value of MALLOC_DEBUG with #if rather than #ifdef.
33724
33725 2014-04-10 Torvald Riegel  <triegel@redhat.com>
33726
33727         * benchtests/pthread_once-inputs: New file.
33728         * benchtests/pthread_once-source.c: New file.
33729         * benchtests/README: Update documentation.
33730
33731 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
33732             H.J. Lu  <hongjiu.lu@intel.com>
33733
33734         [BZ #16275]
33735         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
33736         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
33737         * sysdeps/x86_64/configure: Regenerated.
33738         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
33739         macro.
33740         (REGISTER_SAVE_RAX): Likewise.
33741         (REGISTER_SAVE_RCX): Likewise.
33742         (REGISTER_SAVE_RDX): Likewise.
33743         (REGISTER_SAVE_RSI): Likewise.
33744         (REGISTER_SAVE_RDI): Likewise.
33745         (REGISTER_SAVE_R8): Likewise.
33746         (REGISTER_SAVE_R9): Likewise.
33747         (REGISTER_SAVE_BND0): Likewise.
33748         (REGISTER_SAVE_BND1): Likewise.
33749         (REGISTER_SAVE_BND2): Likewise.
33750         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
33751         bound registers when calling _dl_fixup.
33752
33753 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33754
33755         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
33756         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
33757         of its definition.
33758         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
33759         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
33760         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
33761         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
33762         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
33763         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
33764         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
33765
33766 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
33767
33768         [BZ #15514]
33769         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
33770         pathconf(_PC_NAME_MAX).
33771
33772 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33773
33774         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
33775         Remove macro usage.
33776         (__PTHREAD_SPINS): Move definition to ...
33777         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
33778         (__PTHREAD_SPINS): ... here.
33779         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
33780         (__PTHREAD_SPIN): Likewise.
33781         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
33782         (__PTHREAD_SPIN): Likewise.
33783         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
33784         (__PTHREAD_SPIN): Likewise.
33785         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
33786         (__PTHREAD_SPIN): Likewise.
33787         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
33788         (__PTHREAD_SPIN): Likewise.
33789         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
33790         (__PTHREAD_SPIN): Likewise.
33791         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
33792         (__PTHREAD_SPIN): Likewise.
33793         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
33794         (__PTHREAD_SPIN): Likewise.
33795         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
33796         (__PTHREAD_SPIN): Likewise.
33797         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
33798         (__PTHREAD_SPIN): Likewise.
33799         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
33800         (__PTHREAD_SPIN): Likewise.
33801         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
33802         (__PTHREAD_SPIN): Likewise.
33803
33804         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
33805         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
33806         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
33807         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
33808         imply folder.
33809         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
33810         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
33811         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
33812         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
33813         correct imply path.
33814         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
33815         strlen symbol for non multi-arch builds.
33816         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
33817         missing hidden_def and weak_alias.
33818
33819 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
33820
33821         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
33822
33823 2014-04-07  Will Newton  <will.newton@linaro.org>
33824
33825         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
33826         and contents.  [!_LIBC] Remove #ifndef and contents.
33827         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
33828         * string/memccpy.c (__memccpy): Use ANSI prototype.
33829         * string/memfrob.c (memfrob): Likewise.
33830         * string/strcoll.c (STRCOLL): Likewise.
33831         * string/strlen.c (strlen): Likewise.
33832         * string/strtok.c (STRTOK): Likewise.
33833         * string/strcat.c: Remove unused #include of memcopy.h.
33834         (strcat): Use ANSI prototype.
33835         * string/strchr.c: Remove unused #include of memcopy.h.
33836         (strchr): Use ANSI prototype.
33837         * string/strcmp.c: Remove unused #include of memcopy.h.
33838         (strcmp): Use ANSI prototype.
33839         * string/strcpy.c: Remove unused #include of memcopy.h.
33840         (strcpy): Use ANSI prototype.
33841
33842 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33843
33844         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
33845         * config.make.in (config-extra-cppflags): Set it from
33846         libc_extra_cppflags.
33847         * configure.ac (libc_extra_cflags): Make it accumulate over
33848         configure fragments.
33849         (libc_extra_cppflags): New flag.
33850         * configure. Regenerate.
33851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
33852         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
33853         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
33854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
33855
33856         [BZ #16815]
33857         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
33858         result for FE_DOWNWARD rounding mode.
33859         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
33860         Likewise.
33861         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33862
33863 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
33864
33865         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
33866         in function argument name.
33867
33868 2014-04-03  David Svoboda  <svoboda@cert.org>
33869
33870         [BZ #5666]
33871         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
33872         explicitly.
33873
33874 2014-04-03  Roland McGrath  <roland@hack.frob.com>
33875
33876         * elf/dl-unmap-segments.h: New file.
33877         * sysdeps/generic/ldsodefs.h
33878         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
33879         * elf/dl-close.c: Include <dl-unmap-segments.h>.
33880         * elf/dl-fptr.c: Likewise.
33881         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
33882         * sysdeps/aarch64/tlsdesc.c: Likewise.
33883         * sysdeps/arm/tlsdesc.c: Likewise.
33884         * sysdeps/i386/tlsdesc.c: Likewise.
33885         * sysdeps/tile/dl-runtime.c: Likewise.
33886         * sysdeps/x86_64/tlsdesc.c: Likewise.
33887         * elf/dl-load.h: New file.
33888         * elf/dl-load.c: Include it.
33889         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
33890         Macros moved to dl-load.h.
33891         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
33892         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
33893         Use _dl_unmap_segments in place of __munmap.
33894         Break out segment-mapping loop into ...
33895         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
33896
33897 2014-04-03  Will Newton  <will.newton@linaro.org>
33898
33899         * elf/dl-lookup.c (do_lookup_x): Remove comment
33900         referring to nested function and move variable
33901         declarations down to before first use.
33902
33903 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
33904
33905         [BZ #16799]
33906         [BZ #16800]
33907         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
33908         with 0 numerator.
33909         * math/s_catanf.c (__catanf): Likewise.
33910         * math/s_catanh.c (__catanh): Likewise.
33911         * math/s_catanhf.c (__catanhf): Likewise.
33912         * math/s_catanhl.c (__catanhl): Likewise.
33913         * math/s_catanl.c (__catanl): Likewise.
33914         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
33915         by positive zero when computing -Inf result.
33916         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
33917         (catanh_test): Likewise.
33918         * sysdeps/i386/fpu/libm-test-ulps: Update.
33919         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33920
33921         [BZ #16789]
33922         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
33923         instead of using underflowing value in computing result.
33924         * math/s_clog10.c (__clog10): Likewise.
33925         * math/s_clog10f.c (__clog10f): Likewise.
33926         * math/s_clog10l.c (__clog10l): Likewise.
33927         * math/s_clogf.c (__clogf): Likewise.
33928         * math/s_clogl.c (__clogl): Likewise.
33929         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
33930         (clog10_test): Likewise.
33931         * sysdeps/i386/fpu/libm-test-ulps: Update.
33932         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33933
33934 2014-04-02  Alan Modra  <amodra@gmail.com>
33935
33936         [BZ #16739]
33937         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
33938         output when value is near a power of two.  Use int64_t for lx and
33939         remove casts.  Use decimal rather than hex exponent constants.
33940         Don't use long double multiplication when double will suffice.
33941         * math/libm-test.inc (nextafter_test_data): Add tests.
33942         * NEWS: Add 16739 and 16786 to bug list.
33943
33944         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
33945
33946         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
33947
33948 2014-04-01  Will Newton  <will.newton@linaro.org>
33949
33950         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
33951         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
33952
33953 2014-04-01  Florian Weimer  <fweimer@redhat.com>
33954
33955         [BZ #13347]
33956         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
33957         * nptl/tst-setuid2.c: New file.
33958         * nptl/Makefile (xtests): Add tst-setuid2.
33959
33960 2014-04-01  Alan Modra  <amodra@gmail.com>
33961
33962         [BZ #16786]
33963         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
33964
33965 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
33966
33967         [BZ #6803]
33968         [BZ #6804]
33969         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
33970         set errno as appropriate.
33971         * math/w_scalbf.c (__scalbf): Likewise.
33972         * math/w_scalbl.c (__scalbl): Likewise.
33973         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
33974         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
33975         * math/libm-test.inc (scalb_test_data): Add errno expectations.
33976         Add more NaN tests.
33977
33978         [BZ #16349]
33979         * math/w_atan2.c: Include <errno.h>.
33980         (__atan2): Set errno for result underflowing to zero.
33981         * math/w_atan2f.c: Include <errno.h>.
33982         (__atan2f): Set errno for result underflowing to zero.
33983         * math/w_atan2l.c: Include <errno.h>.
33984         (__atan2l): Set errno for result underflowing to zero.
33985         * math/auto-libm-test-in: Don't allow missing errno for some atan2
33986         tests.
33987         * math/auto-libm-test-out: Regenerated.
33988
33989 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33990
33991         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
33992         Encode instruction correctly in little endian.
33993         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
33994         Likewise.
33995         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
33996         Likewise.
33997         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
33998         Likewise.
33999         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
34000         Likewise.
34001
34002 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34003
34004         [BZ #9894]
34005         * sysdeps/unix/sysv/linux/kernel-features.h
34006         [__sparc__ && !__arch64__ && !__sparc_v9__]
34007         (__ASSUME_SET_ROBUST_LIST): Do not define.
34008         [__sparc__ && !__arch64__ && !__sparc_v9__]
34009         (__ASSUME_FUTEX_LOCK_PI): Likewise.
34010         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
34011         Likewise.
34012         * sysdeps/unix/sysv/linux/arm/kernel-features.h
34013         (__ASSUME_FUTEX_LOCK_PI): Undefine.
34014         (__ASSUME_REQUEUE_PI): Likewise.
34015         (__ASSUME_SET_ROBUST_LIST): Likewise.
34016         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
34017         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
34018         Undefine.
34019         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34020         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
34021         Likewise.
34022         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
34023         Likewise.
34024         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
34025         Likewise.
34026         * sysdeps/unix/sysv/linux/mips/kernel-features.h
34027         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
34028         Undefine.
34029         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
34030         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
34031         Likewise.
34032
34033         [BZ #16648]
34034         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34035         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
34036         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
34037
34038 2014-03-31  Will Newton  <will.newton@linaro.org>
34039
34040         * benchtests/Makefile (bench): Add ffs and ffsll to list
34041         of tests.
34042         * benchtests/ffs-inputs: New file.
34043         * benchtests/ffsll-inputs: Likewise.
34044
34045 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
34046
34047         [BZ #16770]
34048         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
34049         too large before casting to int.
34050         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
34051         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
34052         * math/libm-test.inc (scalb_test_data): Add more tests.
34053
34054 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
34055
34056         * benchtests/Makefile (DETAILED_OPT): New make option.
34057         (bench-func): Run benchmark program with -d if DETAILED_OPT is
34058         set.
34059         * benchtests/bench-skeleton.c: Include stdbool.h.
34060         (main): Store and print timings per input.
34061         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
34062         member to each argument value.
34063         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
34064         (_print_arg_data): Initialize per-input timing to 0.
34065
34066         * benchtests/Makefile (timing-type): New binary.
34067         (bench-clean): Also remove bench-timing-type.
34068         (bench): New target for timing-type.
34069         (bench-func): Print output in JSON format.
34070         * benchtests/bench-skeleton.c (main): Print output in JSON
34071         format.
34072         * benchtests/bench-timing-type.c: New file.
34073         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
34074         (TIMING_PRINT_STATS): Remove.
34075         * benchtests/scripts/bench.py (_print_arg_data): Store variant
34076         name separately.
34077
34078         * benchtests/bench-modf.c: Remove.
34079         * benchtests/modf-inputs: New inputs file.
34080
34081 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
34082
34083         [BZ #16362]
34084         * math/s_clog10.c (M_PI_LOG10E): New macro.
34085         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
34086         imaginary parts are 0.
34087         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
34088         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
34089         imaginary parts are 0.
34090         * math/s_clog10l.c (M_PI_LOG10El): New macro.
34091         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
34092         imaginary parts are 0.
34093         * math/libm-test.inc (clog10_test_data): Update expected results
34094         for when real and imaginary parts are 0.
34095
34096 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
34097
34098         * elf/dl-load.c: Finish conversion of __builtin_expect into
34099         __glibc_{un}likely.
34100
34101 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
34102
34103         [BZ #16348]
34104         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
34105         1+x for argument with exponent below -67.
34106         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
34107         Likewise.
34108         * math/auto-libm-test-in: Add more tests of exp.
34109         * math/auto-libm-test-out: Regenerated.
34110
34111 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34112
34113         [BZ #16759]
34114         * inet/getnetgrent_r.c (get_nonempty_val): New function.
34115         (nscd_getnetgrent): Use it.
34116
34117         [BZ #16760]
34118         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
34119         of stpcpy.
34120
34121 2014-03-27  Andi Kleen  <ak@linux.intel.com>
34122
34123         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
34124         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34125         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34126         (lll_robust_unlock): Remove out of line section. Use cfi
34127         intrinsics.
34128         (LLL_STUB_UNWIND_INFO*): Remove.
34129         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
34130         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34131         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34132         (lll_robust_unlock): Remove out of line section. Use cfi
34133         intrinsics.
34134         (LLL_STUB_UNWIND_INFO*): Remove.
34135
34136 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34137
34138         [BZ #16758]
34139         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
34140         blank values.
34141
34142 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
34143
34144         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
34145
34146 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
34147
34148         [BZ #16198]
34149         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
34150         fnstenv.
34151         * math/test-fenv-preserve.c: New file.
34152         * math/Makefile (tests): Add test-fenv-preserve.
34153
34154 2014-03-26  Will Newton <will.newton@linaro.org>
34155
34156         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
34157
34158 2014-03-25  Roland McGrath  <roland@hack.frob.com>
34159
34160         * scripts/versionlist.awk: Partition the version sets and emit all
34161         GLIBC_* (sorted) before all others (sorted).
34162
34163 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34164
34165         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
34166         GLIBC_2.2.5 version.
34167
34168 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34169
34170         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
34171         calls.
34172
34173         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
34174         previous change.
34175
34176         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34177
34178 2014-03-25  Andreas Schwab  <schwab@suse.de>
34179
34180         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
34181         label to be used after in6ailist is initialized.
34182
34183 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34184
34185         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34186         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34187
34188 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34189
34190         [BZ #16357]
34191         [BZ #16599]
34192         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
34193         min_plus_half.
34194         (fp_formats): Update initializers.
34195         (init_fp_formats): Initialize new field.
34196         (output_for_one_input_case): Allow underflow for results up to
34197         min_plus_half.
34198         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
34199         * math/auto-libm-test-in: Don't mark some underflows from asin and
34200         atanh as spurious.
34201         * math/auto-libm-test-out: Regenerated.
34202         * sysdeps/i386/fpu/libm-test-ulps: Update.
34203         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34204
34205 2014-03-25  Andreas Schwab  <schwab@suse.de>
34206
34207         * libio/Makefile (tst-ftell-partial-wide-ENV)
34208         (tst-ftell-active-handler-ENV): Define.
34209
34210 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
34211
34212         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
34213
34214 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34215
34216         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
34217
34218 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34219
34220         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
34221         * sysdeps/x86_64/fpu/multiarch/e_exp.c
34222         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
34223
34224 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34225
34226         [BZ #16634]
34227         * elf/dl-load.c (open_verify): Add mode parameter.
34228         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
34229         (open_path): Change from boolean 'secure' to complete flag 'mode'
34230         (_dl_map_object): Adjust.
34231         * elf/Makefile (tests): Add tst-dlopen-aout.
34232         * elf/tst-dlopen-aout.c: New test.
34233
34234 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
34235
34236         [BZ #16714]
34237         * sysdeps/unix/sysv/linux/s390/bits/stat.h
34238         (struct stat): Rename member pad0 to __glibc_reserved0.
34239
34240         [BZ #16712]
34241         * sysdeps/s390/s390-32/bits/wordsize.h
34242         (__WORDSIZE32_SIZE_ULONG): New define.
34243         * sysdeps/s390/s390-64/bits/wordsize.h
34244         (__WORDSIZE32_SIZE_ULONG): Likewise.
34245         * sysdeps/generic/stdint.h (SIZE_MAX):
34246         Define as UL if __WORDSIZE32_SIZE_ULONG.
34247
34248         [BZ #16713]
34249         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34250         (__glibc_reserved0): New variable.
34251         (sa_flags): Change type to int.
34252
34253         * posix/Makefile (before-compile): Use += before-compile instead
34254         of a :=.
34255
34256         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34257         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34258
34259 2014-03-20  Andreas Schwab  <schwab@suse.de>
34260
34261         [BZ #16743]
34262         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
34263         non-matching result from nscd.
34264
34265 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
34266
34267         * scripts/bench.py: Moved to ...
34268         * benchtests/scripts/bench.py: ... here.
34269         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
34270
34271 2014-03-24  Andreas Schwab  <schwab@suse.de>
34272
34273         [BZ #16002]
34274         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
34275         alloca_account and account alloca use for struct in6ailist.
34276
34277 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34278
34279         [BZ #16284]
34280         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
34281         rounding mode to recompute results that overflow to infinity or
34282         underflow to zero.
34283         * math/auto-libm-test-in: Don't mark tests as expected to fail for
34284         bug 16284.
34285         * math/auto-libm-test-out: Regenerated.
34286         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
34287         (ccosh_test): Likewise.
34288         (csin_test_data): Use plus_oflow.
34289         (csin_test): Use ALL_RM_TEST.
34290         (csinh_test_data): Use plus_oflow.
34291         (csinh_test): Use ALL_RM_TEST.
34292         * sysdeps/i386/fpu/libm-test-ulps: Update.
34293         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34294
34295 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
34296
34297         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
34298         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
34299         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
34300
34301         [BZ #16731]
34302         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
34303         when x - 1 is zero.
34304         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
34305         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
34306         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
34307         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
34308         argument is 1.
34309         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
34310         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
34311         zero.
34312         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
34313         * sysdeps/i386/fpu/libm-test-ulps: Update.
34314         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34315
34316 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
34317
34318         * scripts/bench.pl: Remove file.
34319         * scripts/bench.py: New benchmark script.
34320         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
34321         * benchtests/README: Mention python dependency.
34322         * scripts/pylintrc: New file.
34323         * scripts/pylint: New file.
34324
34325         * bits/mathdef.h: Use #ifdef instead of #if.
34326         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
34327         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34328         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
34329         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34330         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
34331         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34332
34333 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34334             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34335
34336         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
34337         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
34338         and strpbrk-ppc64 objects.
34339         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34340         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
34341         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
34342         multiarch strpbrk for POWER7.
34343         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
34344         multiarch strpbrk for PPC64.
34345         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
34346         ifunc selector.
34347         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
34348         strpbrk for POWER7.
34349
34350 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34351
34352         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
34353         (atan_test): Likewise.
34354         (atanh_test_data): Use NO_TEST_INLINE for two tests.
34355         (atanh_test): Use ALL_RM_TEST.
34356         (atan2_test_data): Likewise.
34357         (cabs_test): Likewise.
34358         (cacosh_test): Likewise.
34359         (carg_test): Likewise.
34360         (casin_test): Likewise.
34361         (casinh_test): Likewise.
34362         (cbrt_test): Likewise.
34363         (csqrt_test): Likewise.
34364         (erf_test): Likewise.
34365         (erfc_test): Likewise.
34366         (pow10_test): Likewise.
34367         (exp2_test): Likewise.
34368         (hypot_test): Likewise.
34369         (j0_test): Likewise.
34370         (j1_test): Likewise.
34371         (lgamma_test): Likewise.
34372         (gamma_test): Likewise.
34373         (sincos_test): Likewise.
34374         (tanh_test): Likewise.
34375         (y0_test): Likewise.
34376         (y1_test): Likewise.
34377         * sysdeps/i386/fpu/libm-test-ulps: Update.
34378         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34379
34380 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34381
34382         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
34383         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
34384         and strcspn-ppc64 objects.
34385         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34386         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
34387         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
34388         multiarch strcspn for POWER7.
34389         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
34390         multiarch strcspn for PPC64.
34391         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
34392         ifunc selector.
34393         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
34394         strcspn for POWER7.
34395
34396 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34397
34398         * math/gen-libm-test.pl (generate_testfile): Expect only function
34399         name as argument to AUTO_TESTS_* and pass results for all rounding
34400         modes to parse_args.
34401         (parse_auto_input): Separate inputs of automatic tests from
34402         outputs before storing in %auto_tests.
34403         * math/libm-test.inc (acos_test_data): Update call to
34404         AUTO_TESTS_f_f.
34405         (acos_test): Use ALL_RM_TEST.
34406         (acos_tonearest_test_data): Remove.
34407         (acos_test_tonearest): Likewise.
34408         (acos_towardzero_test_data): Likewise.
34409         (acos_test_towardzero): Likewise.
34410         (acos_downward_test_data): Likewise.
34411         (acos_test_downward): Likewise.
34412         (acos_upward_test_data): Likewise.
34413         (acos_test_upward): Likewise.
34414         (acosh_test_data): Update call to AUTO_TESTS_f_f.
34415         (asin_test_data): Likewise.
34416         (asin_test): Use ALL_RM_TEST.
34417         (asin_tonearest_test_data): Remove.
34418         (asin_test_tonearest): Likewise.
34419         (asin_towardzero_test_data): Likewise.
34420         (asin_test_towardzero): Likewise.
34421         (asin_downward_test_data): Likewise.
34422         (asin_test_downward): Likewise.
34423         (asin_upward_test_data): Likewise.
34424         (asin_test_upward): Likewise.
34425         (asinh_test_data): Update call to AUTO_TESTS_f_f.
34426         (atan_test_data): Likewise.
34427         (atanh_test_data): Likewise.
34428         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
34429         (cabs_test_data): Update call to AUTO_TESTS_c_f.
34430         (carg_test_data): Likewise.
34431         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
34432         (ccos_test_data): Update call to AUTO_TESTS_c_c.
34433         (ccosh_test_data): Likewise.
34434         (cexp_test_data): Likewise.
34435         (clog_test_data): Likewise.
34436         (clog10_test_data): Likewise.
34437         (cos_test_data): Update call to AUTO_TESTS_f_f.
34438         (cos_test): Use ALL_RM_TEST.
34439         (cos_tonearest_test_data): Remove.
34440         (cos_test_tonearest): Likewise.
34441         (cos_towardzero_test_data): Likewise.
34442         (cos_test_towardzero): Likewise.
34443         (cos_downward_test_data): Likewise.
34444         (cos_test_downward): Likewise.
34445         (cos_upward_test_data): Likewise.
34446         (cos_test_upward): Likewise.
34447         (cosh_test_data): Update call to AUTO_TESTS_f_f.
34448         (cosh_test): Use ALL_RM_TEST.
34449         (cosh_tonearest_test_data): Remove.
34450         (cosh_test_tonearest): Likewise.
34451         (cosh_towardzero_test_data): Likewise.
34452         (cosh_test_towardzero): Likewise.
34453         (cosh_downward_test_data): Likewise.
34454         (cosh_test_downward): Likewise.
34455         (cosh_upward_test_data): Likewise.
34456         (cosh_test_upward): Likewise.
34457         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
34458         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
34459         (ctan_test_data): Likewise.
34460         (ctan_test): Use ALL_RM_TEST.
34461         (ctan_tonearest_test_data): Remove.
34462         (ctan_test_tonearest): Likewise.
34463         (ctan_towardzero_test_data): Likewise.
34464         (ctan_test_towardzero): Likewise.
34465         (ctan_downward_test_data): Likewise.
34466         (ctan_test_downward): Likewise.
34467         (ctan_upward_test_data): Likewise.
34468         (ctan_test_upward): Likewise.
34469         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
34470         (ctanh_test): Use ALL_RM_TEST.
34471         (ctanh_tonearest_test_data): Remove.
34472         (ctanh_test_tonearest): Likewise.
34473         (ctanh_towardzero_test_data): Likewise.
34474         (ctanh_test_towardzero): Likewise.
34475         (ctanh_downward_test_data): Likewise.
34476         (ctanh_test_downward): Likewise.
34477         (ctanh_upward_test_data): Likewise.
34478         (ctanh_test_upward): Likewise.
34479         (erf_test_data): Update call to AUTO_TESTS_f_f.
34480         (erfc_test_data): Likewise.
34481         (exp_test_data): Likewise.
34482         (exp_test): Use ALL_RM_TEST.
34483         (exp_tonearest_test_data): Remove.
34484         (exp_test_tonearest): Likewise.
34485         (exp_towardzero_test_data): Likewise.
34486         (exp_test_towardzero): Likewise.
34487         (exp_downward_test_data): Likewise.
34488         (exp_test_downward): Likewise.
34489         (exp_upward_test_data): Likewise.
34490         (exp_test_upward): Likewise.
34491         (exp10_test_data): Update call to AUTO_TESTS_f_f.
34492         (exp10_test): Use ALL_RM_TEST.
34493         (exp10_tonearest_test_data): Remove.
34494         (exp10_test_tonearest): Likewise.
34495         (exp10_towardzero_test_data): Likewise.
34496         (exp10_test_towardzero): Likewise.
34497         (exp10_downward_test_data): Likewise.
34498         (exp10_test_downward): Likewise.
34499         (exp10_upward_test_data): Likewise.
34500         (exp10_test_upward): Likewise.
34501         (exp2_test_data): Update call to AUTO_TESTS_f_f.
34502         (expm1_test_data): Likewise.
34503         (expm1_test): Use ALL_RM_TEST.
34504         (expm1_tonearest_test_data): Remove.
34505         (expm1_test_tonearest): Likewise.
34506         (expm1_towardzero_test_data): Likewise.
34507         (expm1_test_towardzero): Likewise.
34508         (expm1_downward_test_data): Likewise.
34509         (expm1_test_downward): Likewise.
34510         (expm1_upward_test_data): Likewise.
34511         (expm1_test_upward): Likewise.
34512         (fma_test_data): Update call to AUTO_TESTS_fff_f.
34513         (fma_test): Use ALL_RM_TEST.
34514         (fma_towardzero_test_data): Remove.
34515         (fma_test_towardzero): Likewise.
34516         (fma_downward_test_data): Likewise.
34517         (fma_test_downward): Likewise.
34518         (fma_upward_test_data): Likewise.
34519         (fma_test_upward): Likewise.
34520         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
34521         (j0_test_data): Update call to AUTO_TESTS_f_f.
34522         (j1_test_data): Likewise.
34523         (jn_test_data): Update call to AUTO_TESTS_if_f.
34524         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
34525         (log_test_data): Update call to AUTO_TESTS_f_f.
34526         (log10_test_data): Likewise.
34527         (log1p_test_data): Likewise.
34528         (log2_test_data): Likewise.
34529         (pow_test_data): Update call to AUTO_TESTS_ff_f.
34530         (pow_tonearest_test_data): Likewise.
34531         (sin_test_data): Update call to AUTO_TESTS_f_f.
34532         (sin_test): Use ALL_RM_TEST.
34533         (sin_tonearest_test_data): Remove.
34534         (sin_test_tonearest): Likewise.
34535         (sin_towardzero_test_data): Likewise.
34536         (sin_test_towardzero): Likewise.
34537         (sin_downward_test_data): Likewise.
34538         (sin_test_downward): Likewise.
34539         (sin_upward_test_data): Likewise.
34540         (sin_test_upward): Likewise.
34541         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
34542         (sinh_test_data): Update call to AUTO_TESTS_f_f.
34543         (sinh_test): Use ALL_RM_TEST.
34544         (sinh_tonearest_test_data): Remove.
34545         (sinh_test_tonearest): Likewise.
34546         (sinh_towardzero_test_data): Likewise.
34547         (sinh_test_towardzero): Likewise.
34548         (sinh_downward_test_data): Likewise.
34549         (sinh_test_downward): Likewise.
34550         (sinh_upward_test_data): Likewise.
34551         (sinh_test_upward): Likewise.
34552         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
34553         (sqrt_test): Use ALL_RM_TEST.
34554         (sqrt_tonearest_test_data): Remove.
34555         (sqrt_test_tonearest): Likewise.
34556         (sqrt_towardzero_test_data): Likewise.
34557         (sqrt_test_towardzero): Likewise.
34558         (sqrt_downward_test_data): Likewise.
34559         (sqrt_test_downward): Likewise.
34560         (sqrt_upward_test_data): Likewise.
34561         (sqrt_test_upward): Likewise.
34562         (tan_test_data): Update call to AUTO_TESTS_f_f.
34563         (tan_test): Use ALL_RM_TEST.
34564         (tan_tonearest_test_data): Remove.
34565         (tan_test_tonearest): Likewise.
34566         (tan_towardzero_test_data): Likewise.
34567         (tan_test_towardzero): Likewise.
34568         (tan_downward_test_data): Likewise.
34569         (tan_test_downward): Likewise.
34570         (tan_upward_test_data): Likewise.
34571         (tan_test_upward): Likewise.
34572         (tanh_test_data): Update call to AUTO_TESTS_f_f.
34573         (tgamma_test_data): Likewise.
34574         (y0_test_data): Likewise.
34575         (y1_test_data): Likewise.
34576         (yn_test_data): Update call to AUTO_TESTS_if_f.
34577         (main): Do not call removed functions.
34578
34579 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
34580
34581         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
34582         (ldexp_test_data): Remove.
34583         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
34584         scalbn_test_data.
34585         (scalb_test): Use ALL_RM_TEST.
34586
34587 2014-03-19  Andreas Schwab  <schwab@suse.de>
34588
34589         * nscd/nscd.service: Also invalidate netgroup cache on reload.
34590
34591 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
34592
34593         [BZ #16649]
34594         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
34595         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
34596         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
34597         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34598         (__ASSUME_PREADV): Undefine.
34599         (__ASSUME_PWRITEV): Likewise.
34600
34601 2014-03-18  Roland McGrath  <roland@hack.frob.com>
34602
34603         * bits/mman-linux.h: Add comment about non-Linux use.
34604         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
34605         bits/mman-linux.h resting place.
34606
34607         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
34608         * bits/mman-linux.h: ... here.
34609
34610 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34611
34612         * conform/conformtest.pl: Add standard definition when calling C
34613         preprocessor on data files.
34614         (checknamespace): Remove unused variable.
34615
34616 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
34617
34618         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
34619         minus_oflow, plus_uflow and minus_uflow in expected results.
34620         * math/libm-test.inc (scalbn_test_data): Add more tests of
34621         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
34622         minus_uflow.
34623         (scalbn_test): Use ALL_RM_TEST.
34624         (scalbln_test_data): Add more tests of negative arguments.  Use
34625         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
34626         (scalbln_test): Use ALL_RM_TEST.
34627
34628 2014-03-18  Roland McGrath  <roland@hack.frob.com>
34629
34630         * scripts/abilist.awk: Ignore symbols marked with .hidden.
34631
34632 2014-03-18  Will Newton  <will.newton@linaro.org>
34633
34634         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
34635         inaccurate comment.
34636
34637 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
34638
34639         * Makerules [!subdir] (check-abi): Exit with error status if a
34640         test failed.
34641
34642 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
34643
34644         * math/libm-test.inc (nearbyint_test_data): Include all tests used
34645         for rint.  Include results for all rounding modes.
34646         (nearbyint_test): Use ALL_RM_TEST.
34647         (rint_test_data): Include all tests used for nearbyint.
34648
34649 2014-03-17  Will Newton  <will.newton@linaro.org>
34650
34651         * nptl/sysdeps/pthread/pthread.h: Revert previous
34652         change.
34653
34654         * sysdeps/generic/ldsodefs.h: Revert previous
34655         change.
34656
34657         * libio/genops.c: Revert previous change.
34658         * libio/libioP.h: Likewise.
34659         * stdio-common/vfprintf.c: Likewise.
34660
34661         * sysdeps/generic/math_private.h: Revert previous
34662         change.
34663
34664         * sysdeps/generic/math_private.h: Check whether
34665         HAVE_RM_CTX is defined with #ifdef rather
34666         than #if.
34667
34668         * argp/argp-fmtstream.h: Check whether
34669         __STRICT_ANSI__ is defined with #ifdef rather
34670         than #if.
34671         * argp/argp.h: Likewise.
34672
34673         * libio/genops.c: Check whether
34674         _IO_JUMPS_OFFSET is defined with #ifdef rather
34675         than #if.
34676         * libio/libioP.h: Likewise.
34677         * stdio-common/vfprintf.c: Likewise.
34678
34679         * sysdeps/generic/ldsodefs.h: Check whether
34680         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
34681         than #if.
34682
34683         * nptl/sysdeps/pthread/pthread.h: Check
34684         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
34685         its value.
34686
34687 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
34688
34689         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
34690         setting O_APPEND.
34691         * libio/tst-ftell-active-handler.c (do_append_test): Add a
34692         test case.
34693
34694         [BZ #16680]
34695         * libio/fileops.c (_IO_file_open): Seek to end of file but
34696         don't cache the offset.
34697         (get_file_offset): Remove function.
34698         (do_ftell): Use cached offset when available.
34699         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
34700         don't cache the offset.
34701         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
34702         case.
34703         (do_one_test): Call it.
34704         (do_ftell_test): Fix up expected old offset for a+ mode.
34705         * libio/wfileops.c (do_ftell_wide): Used cached offset when
34706         available.
34707
34708         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
34709         up test status with function return status.
34710         (do_write_test): Likewise.
34711         (do_append_test): Likewise.
34712
34713         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
34714         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
34715         Remove.
34716
34717 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
34718
34719         * math/gen-libm-test.pl (parse_args): Handle results specified for
34720         each rounding mode separately.
34721         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
34722         tests and results from lrint_tonearest_test_data,
34723         lrint_towardzero_test_data, lrint_downward_test_data and
34724         lrint_upward_test_data.
34725         (lrint_test): Use ALL_RM_TEST.
34726         (lrint_tonearest_test_data): Remove.
34727         (lrint_test_tonearest): Likewise.
34728         (lrint_towardzero_test_data): Likewise.
34729         (lrint_test_towardzero): Likewise.
34730         (lrint_downward_test_data): Likewise.
34731         (lrint_test_downward): Likewise.
34732         (lrint_upward_test_data): Likewise.
34733         (lrint_test_upward): Likewise.
34734         (llrint_test_data): Merge in per-rounding-mode tests and results
34735         from llrint_tonearest_test_data, llrint_towardzero_test_data,
34736         llrint_downward_test_data and llrint_upward_test_data.
34737         (llrint_test): Use ALL_RM_TEST.
34738         (llrint_tonearest_test_data): Remove.
34739         (llrint_test_tonearest): Likewise.
34740         (llrint_towardzero_test_data): Likewise.
34741         (llrint_test_towardzero): Likewise.
34742         (llrint_downward_test_data): Likewise.
34743         (llrint_test_downward): Likewise.
34744         (llrint_upward_test_data): Likewise.
34745         (llrint_test_upward): Likewise.
34746         (rint_test_data): Merge in per-rounding-mode tests and results
34747         from rint_tonearest_test_data, rint_towardzero_test_data,
34748         rint_downward_test_data and rint_upward_test_data.  Add
34749         per-rounding-mode results for tests not in those arrays.
34750         (rint_test): Use ALL_RM_TEST.
34751         (rint_tonearest_test_data): Remove.
34752         (rint_test_tonearest): Likewise.
34753         (rint_towardzero_test_data): Likewise.
34754         (rint_test_towardzero): Likewise.
34755         (rint_downward_test_data): Likewise.
34756         (rint_test_downward): Likewise.
34757         (rint_upward_test_data): Likewise.
34758         (rint_test_upward): Likewise.
34759         (main): Don't call removed functions.
34760
34761 2014-03-14  Roland McGrath  <roland@hack.frob.com>
34762
34763         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
34764         "Compiled on ..." crapola.  It is anti-useful.
34765
34766 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
34767
34768         * scripts/evaluate-test.sh: Handle fourth argument to determine
34769         whether test run should stop on failure.
34770         * Makeconfig (stop-on-test-failure): New variable.
34771         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
34772         $(stop-on-test-failure).
34773         * Makefile (tests): Give a summary of results from testing and
34774         exit with failure status if they include an ERROR or FAIL.
34775         (xtests): Likewise.
34776         * manual/install.texi (Configuring and compiling): Mention
34777         stop-on-test-failure=y.
34778         * INSTALL: Regenerated.
34779
34780 2014-03-14  Roland McGrath  <roland@hack.frob.com>
34781
34782         * scripts/versionlist.awk: New file.
34783         * Makerules [$(build-shared) = yes]
34784         (postclean-generated): Add Versions.def, not Versions.def.v and
34785         Versions.def.v.i.
34786         ($(common-objpfx)Versions.def.v.i): Target removed.
34787         ($(common-objpfx)Versions.def): New target.
34788         ($(common-objpfx)Versions.all): Depend on that rather that
34789         $(common-objpfx)Versions.def.v.
34790         * Versions.def: File removed.
34791
34792         * Makeconfig (+gccwarn): Add -Wundef.
34793         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
34794         a dl-sysdep.h breaking its contract.
34795         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
34796         * include/stackinfo.h: New file.
34797         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
34798         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
34799         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
34800         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
34801         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
34802         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
34803         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34804         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34805         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34806         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34807         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34808         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
34809         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34810         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34811         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
34812
34813 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34814
34815         [BZ #16707]
34816         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
34817         implementation.
34818         * math/libm-test.inc (round_test_data): Add more tests.
34819
34820         [BZ #16706]
34821         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
34822         implementation.
34823         * math/libm-test.inc (nearbyint_test_data): Add more tests.
34824
34825         [BZ #16701]
34826         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
34827         implementation.
34828         * math/libm-test.inc (ceil_test_data): Add more tests.
34829
34830         * math/libm-test.inc (trunc_test_data): Add more tests related to
34831         BZ#16414.
34832
34833 2014-03-14  Roland McGrath  <roland@hack.frob.com>
34834
34835         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
34836         with #if rather than #ifdef.
34837         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
34838
34839 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
34840
34841         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
34842         first.  Disable AVX-512 GCC support if assembler doesn't support
34843         it.
34844         * sysdeps/x86_64/configure: Regenerated.
34845
34846 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
34847
34848         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
34849         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
34850         (__old_pthread_attr_setstack): Likewise.
34851         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
34852         [!_STACK_GROWS_DOWN]: Likewise.
34853
34854 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
34855
34856         * config.make.in (have-bash2): Delete.
34857         * configure.ac (libc_cv_have_bash2): Delete.
34858         * configure: Regenerate.
34859         * elf/Makefile (common-ldd-rewrite): Rename to ...
34860         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
34861         (sh-ldd-rewrite): Delete.
34862         (bash-ldd-rewrite): Delete.
34863         (have-bash2): Delete checks.
34864         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
34865         ldd-rewrite.
34866
34867         * config.make.in (have-ksh): Delete.
34868         (KSH): Delete.
34869         * configure.ac (libc_cv_have_ksh): Delete.
34870         * configure: Regenerate.
34871
34872         * elf/Makefile: Delete $(have-ksh) check.
34873         ($(objpfx)sotruss): Change KSH to BASH.
34874         * elf/sotruss.ksh: Rename to ...
34875         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
34876         function style to match POSIX.  Drop ksh vim mode setting.
34877
34878         * manual/time.texi (Specifying the Time Zone with TZ): Change
34879         Tuesday to Thursday.
34880
34881         * debug/tst-longjmp_chk2.c: Update header comment.
34882         (stackoverflow_handler): Add comment.  Call assert on pass value.
34883
34884 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
34885
34886         [BZ #16194]
34887         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
34888         (HAVE_AVX512_ASM_SUPPORT): Likewise.
34889         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
34890         (La_x86_64_vector): Add zmm.
34891         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
34892         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
34893         ($(objpfx)tst-audit10): New target.
34894         ($(objpfx)tst-audit10.out): Likewise.
34895         (tst-audit10-ENV): New.
34896         (AVX512-CFLAGS): Likewise.
34897         (CFLAGS-tst-audit10.c): Likewise.
34898         (CFLAGS-tst-auditmod10a.c): Likewise.
34899         (CFLAGS-tst-auditmod10b.c): Likewise.
34900         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
34901         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
34902         * sysdeps/x86_64/configure: Regenerated.
34903         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
34904         AVX-512 zmm register support.
34905         (_dl_x86_64_save_sse): Likewise.
34906         (_dl_x86_64_restore_sse): Likewise.
34907         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
34908         size vector registers.
34909         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
34910         (ZMM_SIZE): Likewise.
34911         * sysdeps/x86_64/tst-audit10.c: New file.
34912         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
34913         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
34914
34915 2014-03-13  Roland McGrath  <roland@hack.frob.com>
34916
34917         * configure.ac (HAVE_EHDR_START): New check.
34918         * configure: Regenerated.
34919         * config.h.in (HAVE_EHDR_START): New #undef.
34920         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
34921         assuming the lowest-addressed segment maps the start of the file.
34922
34923 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
34924
34925         * INSTALL: Regenerated.
34926
34927 2014-03-13  Will Newton  <will.newton@linaro.org>
34928
34929         * manual/setjmp.texi (System V contexts): Improve
34930         clarity and grammar of documentation.
34931
34932 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
34933
34934         [BZ #16381]
34935         * elf/Makefile (tests): Add tst-pie2.
34936         (tests-pie): Add tst-pie2.
34937         * elf/tst-pie2.c: New file.
34938         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
34939         for ET_EXEC.
34940         * elf/rtld.c (map_doit): Load executable as lt_executable.
34941         (dl_main): Likewise.
34942
34943 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
34944
34945         [BZ #16642]
34946         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34947         (__ASSUME_PSELECT): Undefine.
34948
34949 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34950
34951         [BZ #16689]
34952         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
34953         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
34954         static build.
34955         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
34956         selector for static builds.
34957
34958 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
34959
34960         [BZ #16695]
34961         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
34962         key in the buffer.
34963
34964 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34965
34966         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
34967         IFUNC selector for static builds.
34968
34969 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
34970
34971         * sysdeps/mips/math_private.h [__mips_hard_float]
34972         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
34973         libc_feresetround_mips_ctx.
34974         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
34975         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
34976         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
34977
34978         [BZ #16677]
34979         * math/s_nextafter.c (__nextafter): Do not return value from
34980         overflowing computation.
34981         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
34982         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
34983         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
34984         Likewise.
34985         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
34986         Likewise.
34987         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
34988         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
34989
34990 2014-03-11  Roland McGrath  <roland@hack.frob.com>
34991
34992         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
34993         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
34994         Move sfi_sp use from the load-multiple (that no longer sets sp) to
34995         the new mov targetting sp.
34996
34997 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34998
34999         [BZ #16683]
35000         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
35001         Define it for static builds as well.
35002         (NO_BZERO_IMPL): Likewise.
35003
35004 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35005
35006         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
35007         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
35008         multiarch strspn for PPC64.
35009         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
35010         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
35011         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35012         (__libc_ifunc_impl_list): Likewise.
35013         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
35014         multiarch optimizations
35015         * string/strspn.c (strspn): Using macro to redefine symbol name.
35016
35017 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35018             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35019
35020         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
35021         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
35022         multiarch strncat for PPC64.
35023         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
35024         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
35025         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35026         (__libc_ifunc_impl_list): Likewise.
35027         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
35028         multiarch optimizations
35029
35030 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35031
35032         [BZ #16639]
35033         * nscd/nscd.service: Make service type forking.
35034
35035 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35036
35037         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
35038         sign in non default rounding modes.
35039         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
35040
35041 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
35042
35043         * math/libm-test.inc (ALL_RM_TEST): New macro.
35044         (ceil_test): Use ALL_RM_TEST.
35045         (cimag_test): Likewise.
35046         (conj_test): Likewise.
35047         (copysign_test): Likewise.
35048         (cproj_test): Likewise.
35049         (creal_test): Likewise.
35050         (fabs_test): Likewise.
35051         (floor_test): Likewise.
35052         (fmax_test): Likewise.
35053         (fmin_test): Likewise.
35054         (fmod_test): Likewise.
35055         (fpclassify_test): Likewise.
35056         (frexp_test): Likewise.
35057         (ilogb_test): Likewise.
35058         (isfinite_test): Likewise.
35059         (finite_test): Likewise.
35060         (isgreater_test): Likewise.
35061         (isgreaterequal_test): Likewise.
35062         (isinf_test): Likewise.
35063         (isless_test): Likewise.
35064         (islessequal_test): Likewise.
35065         (islessgreater_test): Likewise.
35066         (isnan_test): Likewise.
35067         (isnormal_test): Likewise.
35068         (issignaling_test): Likewise.
35069         (isunordered_test): Likewise.
35070         (logb_test): Likewise.
35071         (logb_downward_test_data): Remove.
35072         (logb_test_downward): Likewise.
35073         (lround_test): Use ALL_RM_TEST.
35074         (llround_test): Likewise.
35075         (modf_test): Likewise.
35076         (nexttoward_test): Likewise.
35077         (remainder_test): Likewise.
35078         (drem_test): Likewise.
35079         (remainder_tonearest_test_data): Likewise.
35080         (remainder_test_tonearest): Likewise.
35081         (drem_test_tonearest): Likewise.
35082         (remainder_towardzero_test_data): Likewise.
35083         (remainder_test_towardzero): Likewise.
35084         (drem_test_towardzero): Likewise.
35085         (remainder_downward_test_data): Likewise.
35086         (remainder_test_downward): Likewise.
35087         (drem_test_downward): Likewise.
35088         (remainder_upward_test_data): Likewise.
35089         (remainder_test_upward): Likewise.
35090         (drem_test_upward): Likewise.
35091         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
35092         (round_test): Use ALL_RM_TEST.
35093         (signbit_test): Likewise.
35094         (trunc_test): Likewise.
35095         (significand_test): Likewise.
35096         (main): Don't call removed functions.
35097
35098 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35099
35100         [BZ #16674]
35101         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
35102         || __USE_XOPEN2K8].
35103         (ILL_ILLOPN): Likewise.
35104         (ILL_ILLADR): Likewise.
35105         (ILL_ILLTRP): Likewise.
35106         (ILL_PRVOPC): Likewise.
35107         (ILL_PRVREG): Likewise.
35108         (ILL_COPROC): Likewise.
35109         (ILL_BADSTK): Likewise.
35110         (FPE_INTDIV): Likewise.
35111         (FPE_INTOVF): Likewise.
35112         (FPE_FLTDIV): Likewise.
35113         (FPE_FLTOVF): Likewise.
35114         (FPE_FLTUND): Likewise.
35115         (FPE_FLTRES): Likewise.
35116         (FPE_FLTINV): Likewise.
35117         (FPE_FLTSUB): Likewise.
35118         (SEGV_MAPERR): Likewise.
35119         (SEGV_ACCERR): Likewise.
35120         (BUS_ADRALN): Likewise.
35121         (BUS_ADRERR): Likewise.
35122         (BUS_OBJERR): Likewise.
35123         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35124         (TRAP_TRACE): Likewise.
35125         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35126         __USE_XOPEN2K8].
35127         (CLD_KILLED): Likewise.
35128         (CLD_DUMPED): Likewise.
35129         (CLD_TRAPPED): Likewise.
35130         (CLD_STOPPED): Likewise.
35131         (CLD_CONTINUED): Likewise.
35132         (POLL_IN): Likewise.
35133         (POLL_OUT): Likewise.
35134         (POLL_MSG): Likewise.
35135         (POLL_ERR): Likewise.
35136         (POLL_PRI): Likewise.
35137         (POLL_HUP): Likewise.
35138         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
35139         Likewise.
35140         (ILL_ILLOPN): Likewise.
35141         (ILL_ILLADR): Likewise.
35142         (ILL_ILLTRP): Likewise.
35143         (ILL_PRVOPC): Likewise.
35144         (ILL_PRVREG): Likewise.
35145         (ILL_COPROC): Likewise.
35146         (ILL_BADSTK): Likewise.
35147         (FPE_INTDIV): Likewise.
35148         (FPE_INTOVF): Likewise.
35149         (FPE_FLTDIV): Likewise.
35150         (FPE_FLTOVF): Likewise.
35151         (FPE_FLTUND): Likewise.
35152         (FPE_FLTRES): Likewise.
35153         (FPE_FLTINV): Likewise.
35154         (FPE_FLTSUB): Likewise.
35155         (SEGV_MAPERR): Likewise.
35156         (SEGV_ACCERR): Likewise.
35157         (BUS_ADRALN): Likewise.
35158         (BUS_ADRERR): Likewise.
35159         (BUS_OBJERR): Likewise.
35160         (BUS_MCEERR_AR): Likewise.
35161         (BUS_MCEERR_AO): Likewise.
35162         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35163         (TRAP_TRACE): Likewise.
35164         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35165         __USE_XOPEN2K8].
35166         (CLD_KILLED): Likewise.
35167         (CLD_DUMPED): Likewise.
35168         (CLD_TRAPPED): Likewise.
35169         (CLD_STOPPED): Likewise.
35170         (CLD_CONTINUED): Likewise.
35171         (POLL_IN): Likewise.
35172         (POLL_OUT): Likewise.
35173         (POLL_MSG): Likewise.
35174         (POLL_ERR): Likewise.
35175         (POLL_PRI): Likewise.
35176         (POLL_HUP): Likewise.
35177         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
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         (BUS_MCEERR_AR): Likewise.
35199         (BUS_MCEERR_AO): Likewise.
35200         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35201         (TRAP_TRACE): Likewise.
35202         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35203         __USE_XOPEN2K8].
35204         (CLD_KILLED): Likewise.
35205         (CLD_DUMPED): Likewise.
35206         (CLD_TRAPPED): Likewise.
35207         (CLD_STOPPED): Likewise.
35208         (CLD_CONTINUED): Likewise.
35209         (POLL_IN): Likewise.
35210         (POLL_OUT): Likewise.
35211         (POLL_MSG): Likewise.
35212         (POLL_ERR): Likewise.
35213         (POLL_PRI): Likewise.
35214         (POLL_HUP): Likewise.
35215         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
35216         Likewise.
35217         (ILL_ILLOPN): Likewise.
35218         (ILL_ILLADR): Likewise.
35219         (ILL_ILLTRP): Likewise.
35220         (ILL_PRVOPC): Likewise.
35221         (ILL_PRVREG): Likewise.
35222         (ILL_COPROC): Likewise.
35223         (ILL_BADSTK): Likewise.
35224         (ILL_BADIADDR): Likewise.
35225         (ILL_BREAK): Likewise.
35226         (FPE_INTDIV): Likewise.
35227         (FPE_INTOVF): Likewise.
35228         (FPE_FLTDIV): Likewise.
35229         (FPE_FLTOVF): Likewise.
35230         (FPE_FLTUND): Likewise.
35231         (FPE_FLTRES): Likewise.
35232         (FPE_FLTINV): Likewise.
35233         (FPE_FLTSUB): Likewise.
35234         (FPE_DECOVF): Likewise.
35235         (FPE_DECDIV): Likewise.
35236         (FPE_DECERR): Likewise.
35237         (FPE_INVASC): Likewise.
35238         (FPE_INVDEC): Likewise.
35239         (SEGV_MAPERR): Likewise.
35240         (SEGV_ACCERR): Likewise.
35241         (SEGV_PSTKOVF): Likewise.
35242         (BUS_ADRALN): Likewise.
35243         (BUS_ADRERR): Likewise.
35244         (BUS_OBJERR): Likewise.
35245         (BUS_MCEERR_AR): Likewise.
35246         (BUS_MCEERR_AO): Likewise.
35247         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35248         (TRAP_TRACE): Likewise.
35249         (TRAP_BRANCH): Likewise.
35250         (TRAP_HWBKPT): Likewise.
35251         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35252         __USE_XOPEN2K8].
35253         (CLD_KILLED): Likewise.
35254         (CLD_DUMPED): Likewise.
35255         (CLD_TRAPPED): Likewise.
35256         (CLD_STOPPED): Likewise.
35257         (CLD_CONTINUED): Likewise.
35258         (POLL_IN): Likewise.
35259         (POLL_OUT): Likewise.
35260         (POLL_MSG): Likewise.
35261         (POLL_ERR): Likewise.
35262         (POLL_PRI): Likewise.
35263         (POLL_HUP): Likewise.
35264         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
35265         (ILL_ILLOPN): Likewise.
35266         (ILL_ILLADR): Likewise.
35267         (ILL_ILLTRP): Likewise.
35268         (ILL_PRVOPC): Likewise.
35269         (ILL_PRVREG): Likewise.
35270         (ILL_COPROC): Likewise.
35271         (ILL_BADSTK): Likewise.
35272         (FPE_INTDIV): Likewise.
35273         (FPE_INTOVF): Likewise.
35274         (FPE_FLTDIV): Likewise.
35275         (FPE_FLTOVF): Likewise.
35276         (FPE_FLTUND): Likewise.
35277         (FPE_FLTRES): Likewise.
35278         (FPE_FLTINV): Likewise.
35279         (FPE_FLTSUB): Likewise.
35280         (SEGV_MAPERR): Likewise.
35281         (SEGV_ACCERR): Likewise.
35282         (BUS_ADRALN): Likewise.
35283         (BUS_ADRERR): Likewise.
35284         (BUS_OBJERR): Likewise.
35285         (BUS_MCEERR_AR): Likewise.
35286         (BUS_MCEERR_AO): Likewise.
35287         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35288         (TRAP_TRACE): Likewise.
35289         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35290         __USE_XOPEN2K8].
35291         (CLD_KILLED): Likewise.
35292         (CLD_DUMPED): Likewise.
35293         (CLD_TRAPPED): Likewise.
35294         (CLD_STOPPED): Likewise.
35295         (CLD_CONTINUED): Likewise.
35296         (POLL_IN): Likewise.
35297         (POLL_OUT): Likewise.
35298         (POLL_MSG): Likewise.
35299         (POLL_ERR): Likewise.
35300         (POLL_PRI): Likewise.
35301         (POLL_HUP): Likewise.
35302         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
35303         (ILL_ILLOPN): Likewise.
35304         (ILL_ILLADR): Likewise.
35305         (ILL_ILLTRP): Likewise.
35306         (ILL_PRVOPC): Likewise.
35307         (ILL_PRVREG): Likewise.
35308         (ILL_COPROC): Likewise.
35309         (ILL_BADSTK): Likewise.
35310         (FPE_INTDIV): Likewise.
35311         (FPE_INTOVF): Likewise.
35312         (FPE_FLTDIV): Likewise.
35313         (FPE_FLTOVF): Likewise.
35314         (FPE_FLTUND): Likewise.
35315         (FPE_FLTRES): Likewise.
35316         (FPE_FLTINV): Likewise.
35317         (FPE_FLTSUB): Likewise.
35318         (SEGV_MAPERR): Likewise.
35319         (SEGV_ACCERR): Likewise.
35320         (BUS_ADRALN): Likewise.
35321         (BUS_ADRERR): Likewise.
35322         (BUS_OBJERR): Likewise.
35323         (BUS_MCEERR_AR): Likewise.
35324         (BUS_MCEERR_AO): Likewise.
35325         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35326         (TRAP_TRACE): Likewise.
35327         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35328         __USE_XOPEN2K8].
35329         (CLD_KILLED): Likewise.
35330         (CLD_DUMPED): Likewise.
35331         (CLD_TRAPPED): Likewise.
35332         (CLD_STOPPED): Likewise.
35333         (CLD_CONTINUED): Likewise.
35334         (POLL_IN): Likewise.
35335         (POLL_OUT): Likewise.
35336         (POLL_MSG): Likewise.
35337         (POLL_ERR): Likewise.
35338         (POLL_PRI): Likewise.
35339         (POLL_HUP): Likewise.
35340         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
35341         (ILL_ILLOPN): Likewise.
35342         (ILL_ILLADR): Likewise.
35343         (ILL_ILLTRP): Likewise.
35344         (ILL_PRVOPC): Likewise.
35345         (ILL_PRVREG): Likewise.
35346         (ILL_COPROC): Likewise.
35347         (ILL_BADSTK): Likewise.
35348         (FPE_INTDIV): Likewise.
35349         (FPE_INTOVF): Likewise.
35350         (FPE_FLTDIV): Likewise.
35351         (FPE_FLTOVF): Likewise.
35352         (FPE_FLTUND): Likewise.
35353         (FPE_FLTRES): Likewise.
35354         (FPE_FLTINV): Likewise.
35355         (FPE_FLTSUB): Likewise.
35356         (SEGV_MAPERR): Likewise.
35357         (SEGV_ACCERR): Likewise.
35358         (BUS_ADRALN): Likewise.
35359         (BUS_ADRERR): Likewise.
35360         (BUS_OBJERR): Likewise.
35361         (BUS_MCEERR_AR): Likewise.
35362         (BUS_MCEERR_AO): Likewise.
35363         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35364         (TRAP_TRACE): Likewise.
35365         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35366         __USE_XOPEN2K8].
35367         (CLD_KILLED): Likewise.
35368         (CLD_DUMPED): Likewise.
35369         (CLD_TRAPPED): Likewise.
35370         (CLD_STOPPED): Likewise.
35371         (CLD_CONTINUED): Likewise.
35372         (POLL_IN): Likewise.
35373         (POLL_OUT): Likewise.
35374         (POLL_MSG): Likewise.
35375         (POLL_ERR): Likewise.
35376         (POLL_PRI): Likewise.
35377         (POLL_HUP): Likewise.
35378         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
35379         (ILL_ILLOPN): Likewise.
35380         (ILL_ILLADR): Likewise.
35381         (ILL_ILLTRP): Likewise.
35382         (ILL_PRVOPC): Likewise.
35383         (ILL_PRVREG): Likewise.
35384         (ILL_COPROC): Likewise.
35385         (ILL_BADSTK): Likewise.
35386         (ILL_DBLFLT): Likewise.
35387         (ILL_HARDWALL): Likewise.
35388         (FPE_INTDIV): Likewise.
35389         (FPE_INTOVF): Likewise.
35390         (FPE_FLTDIV): Likewise.
35391         (FPE_FLTOVF): Likewise.
35392         (FPE_FLTUND): Likewise.
35393         (FPE_FLTRES): Likewise.
35394         (FPE_FLTINV): Likewise.
35395         (FPE_FLTSUB): Likewise.
35396         (SEGV_MAPERR): Likewise.
35397         (SEGV_ACCERR): Likewise.
35398         (BUS_ADRALN): Likewise.
35399         (BUS_ADRERR): Likewise.
35400         (BUS_OBJERR): Likewise.
35401         (BUS_MCEERR_AR): Likewise.
35402         (BUS_MCEERR_AO): Likewise.
35403         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35404         (TRAP_TRACE): Likewise.
35405         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35406         __USE_XOPEN2K8].
35407         (CLD_KILLED): Likewise.
35408         (CLD_DUMPED): Likewise.
35409         (CLD_TRAPPED): Likewise.
35410         (CLD_STOPPED): Likewise.
35411         (CLD_CONTINUED): Likewise.
35412         (POLL_IN): Likewise.
35413         (POLL_OUT): Likewise.
35414         (POLL_MSG): Likewise.
35415         (POLL_ERR): Likewise.
35416         (POLL_PRI): Likewise.
35417         (POLL_HUP): Likewise.
35418         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
35419         (ILL_ILLOPN): Likewise.
35420         (ILL_ILLADR): Likewise.
35421         (ILL_ILLTRP): Likewise.
35422         (ILL_PRVOPC): Likewise.
35423         (ILL_PRVREG): Likewise.
35424         (ILL_COPROC): Likewise.
35425         (ILL_BADSTK): Likewise.
35426         (FPE_INTDIV): Likewise.
35427         (FPE_INTOVF): Likewise.
35428         (FPE_FLTDIV): Likewise.
35429         (FPE_FLTOVF): Likewise.
35430         (FPE_FLTUND): Likewise.
35431         (FPE_FLTRES): Likewise.
35432         (FPE_FLTINV): Likewise.
35433         (FPE_FLTSUB): Likewise.
35434         (SEGV_MAPERR): Likewise.
35435         (SEGV_ACCERR): Likewise.
35436         (BUS_ADRALN): Likewise.
35437         (BUS_ADRERR): Likewise.
35438         (BUS_OBJERR): Likewise.
35439         (BUS_MCEERR_AR): Likewise.
35440         (BUS_MCEERR_AO): Likewise.
35441         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35442         (TRAP_TRACE): Likewise.
35443         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35444         __USE_XOPEN2K8].
35445         (CLD_KILLED): Likewise.
35446         (CLD_DUMPED): Likewise.
35447         (CLD_TRAPPED): Likewise.
35448         (CLD_STOPPED): Likewise.
35449         (CLD_CONTINUED): Likewise.
35450         (POLL_IN): Likewise.
35451         (POLL_OUT): Likewise.
35452         (POLL_MSG): Likewise.
35453         (POLL_ERR): Likewise.
35454         (POLL_PRI): Likewise.
35455         (POLL_HUP): Likewise.
35456         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
35457         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
35458
35459         [BZ #16670]
35460         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
35461         before #include of <time.h>.
35462         [!__USE_XOPEN2K] (__need_timespec): Likewise.
35463         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
35464         (test-xfail-UNIX98/sched.h/conform): Likewise.
35465
35466 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
35467
35468         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
35469         error absence of trapping exception support.
35470         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
35471
35472 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35473
35474         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
35475         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
35476         * timezone/Makefile (testdata): Move definition above include of
35477         Rules.
35478         (test-zones): New variable.
35479         (tests-special): Add zone files.
35480         (build-testdata): Use $(evaluate-test).
35481
35482         * elf/Makefile (tests-special): Rename tests to end with .out.
35483         ($(objpfx)noload-mem): Likewise.
35484         ($(objpfx)tst-leaks1-mem): Likewise.
35485         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
35486         * iconv/Makefile (xtests-special): Change test-iconvconfig to
35487         $(objpfx)test-iconvconfig.out.
35488         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
35489         set -e inside subshell and redirect output to file.
35490         * iconvdata/Makefile (generated): Rename tests to end with .out.
35491         Correct type.
35492         (tests-special): Rename tests to end with .out.
35493         ($(objpfx)mtrace-tst-loading): Likewise.
35494         * intl/Makefile (generated): Likewise.
35495         (tests-special): Likewise.
35496         ($(objpfx)mtrace-tst-gettext): Likewise.
35497         * misc/Makefile (generated): Likewise.
35498         (tests-special): Likewise.
35499         ($(objpfx)tst-error1-mem): Likewise.
35500         * nptl/Makefile (tests-special): Likewise.
35501         ($(objpfx)tst-stack3-mem): Likewise.
35502         (generated): Likewise.
35503         * posix/Makefile (generated): Likewise.
35504         (tests-special): Likewise.
35505         (xtests-special): Likewise.
35506         ($(objpfx)tst-fnmatch-mem): Likewise.
35507         ($(objpfx)bug-regex2-mem): Likewise.
35508         ($(objpfx)bug-regex14-mem): Likewise.
35509         ($(objpfx)bug-regex21-mem): Likewise.
35510         ($(objpfx)bug-regex31-mem): Likewise.
35511         ($(objpfx)tst-vfork3-mem): Likewise.
35512         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
35513         ($(objpfx)tst-pcre-mem): Likewise.
35514         ($(objpfx)tst-boost-mem): Likewise.
35515         ($(objpfx)bug-ga2-mem): Likewise.
35516         ($(objpfx)bug-glob2-mem): Likewise.
35517         * resolv/Makefile (generate): Likewise.
35518         (tests-special): Likewise.
35519         (xtests-special): Likewise.
35520         (generated): Likewise.
35521         ($(objpfx)mtrace-tst-leaks): Likewise.
35522         ($(objpfx)mtrace-tst-leaks2): Likewise.
35523
35524         * scripts/merge-test-results.sh: New file.
35525         * Makefile (tests-special-notdir): New variable.
35526         (tests): Run merge-test-results.sh.
35527         (xtests): Likewise.
35528         * Rules (tests-special-notdir): New variable.
35529         (xtests-special-notdir): Likewise.
35530         (tests): Run merge-test-results.sh
35531         (xtests): Likewise.
35532
35533         * Makeconfig (test-xfail-name): New variable.
35534         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
35535         compute variable name for expected failures.
35536         * conform/Makefile (conformtest-headers-data): New variable.
35537         (conformtest-standards): Likewise.
35538         (conformtest-headers-ISO): Likewise.
35539         (conformtest-headers-ISO99): Likewise.
35540         (conformtest-headers-ISO11): Likewise.
35541         (conformtest-headers-POSIX): Likewise.
35542         (conformtest-headers-XPG3): Likewise.
35543         (conformtest-headers-XPG4): Likewise.
35544         (conformtest-headers-UNIX98): Likewise.
35545         (conformtest-headers-XOPEN2K): Likewise.
35546         (conformtest-headers-POSIX2008): Likewise.
35547         (conformtest-headers-XOPEN2K8): Likewise.
35548         (conformtest-header-list-base): Likewise.
35549         (conformtest-header-list-tests): Likewise.
35550         (conformtest-header-base): Likewise.
35551         (conformtest-header-tests): Likewise.
35552         (tests-special): Add $(conformtest-header-list-tests).  If
35553         [$(fast-check) && !$(cross-compiling)], add
35554         $(conformtest-header-tests) instead of
35555         $(objpfx)run-conformtest.out.
35556         (generated): Add $(conformtest-header-list-base).  If
35557         [$(fast-check) && !$(cross-compiling)], add
35558         $(conformtest-header-base).  Remove previous setting.
35559         ($(conformtest-header-list-tests)): New target.
35560         (test-xfail-run-conformtest): Remove variable.
35561         ($(objpfx)run-conformtest.out): Remove target.
35562         (test-xfail-ISO11/complex.h/conform): New variable.
35563         (test-xfail-ISO11/stdalign.h/conform): Likewise.
35564         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
35565         (test-xfail-XPG3/varargs.h/conform): Likewise.
35566         (test-xfail-XPG4/varargs.h/conform): Likewise.
35567         (test-xfail-UNIX98/varargs.h/conform): Likewise.
35568         (test-xfail-XPG4/ndbm.h/conform): Likewise.
35569         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
35570         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
35571         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
35572         (test-xfail-XPG3/fcntl.h/conform): Likewise.
35573         (test-xfail-XPG3/ftw.h/conform): Likewise.
35574         (test-xfail-XPG3/grp.h/conform): Likewise.
35575         (test-xfail-XPG3/langinfo.h/conform): Likewise.
35576         (test-xfail-XPG3/limits.h/conform): Likewise.
35577         (test-xfail-XPG3/pwd.h/conform): Likewise.
35578         (test-xfail-XPG3/search.h/conform): Likewise.
35579         (test-xfail-XPG3/signal.h/conform): Likewise.
35580         (test-xfail-XPG3/stdio.h/conform): Likewise.
35581         (test-xfail-XPG3/stdlib.h/conform): Likewise.
35582         (test-xfail-XPG3/string.h/conform): Likewise.
35583         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
35584         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
35585         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
35586         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
35587         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
35588         (test-xfail-XPG3/sys/types.h/conform): Likewise.
35589         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
35590         (test-xfail-XPG3/termios.h/conform): Likewise.
35591         (test-xfail-XPG3/time.h/conform): Likewise.
35592         (test-xfail-XPG3/unistd.h/conform): Likewise.
35593         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
35594         (test-xfail-XPG4/fcntl.h/conform): Likewise.
35595         (test-xfail-XPG4/langinfo.h/conform): Likewise.
35596         (test-xfail-XPG4/netdb.h/conform): Likewise.
35597         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
35598         (test-xfail-XPG4/signal.h/conform): Likewise.
35599         (test-xfail-XPG4/stdio.h/conform): Likewise.
35600         (test-xfail-XPG4/stdlib.h/conform): Likewise.
35601         (test-xfail-XPG4/stropts.h/conform): Likewise.
35602         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
35603         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
35604         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
35605         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
35606         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
35607         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
35608         (test-xfail-XPG4/sys/time.h/conform): Likewise.
35609         (test-xfail-XPG4/sys/types.h/conform): Likewise.
35610         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
35611         (test-xfail-XPG4/termios.h/conform): Likewise.
35612         (test-xfail-XPG4/ucontext.h/conform): Likewise.
35613         (test-xfail-XPG4/unistd.h/conform): Likewise.
35614         (test-xfail-XPG4/utmpx.h/conform): Likewise.
35615         (test-xfail-POSIX/sched.h/conform): Likewise.
35616         (test-xfail-POSIX/signal.h/conform): Likewise.
35617         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
35618         (test-xfail-POSIX/tar.h/conform): Likewise.
35619         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
35620         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
35621         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
35622         (test-xfail-UNIX98/netdb.h/conform): Likewise.
35623         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
35624         (test-xfail-UNIX98/sched.h/conform): Likewise.
35625         (test-xfail-UNIX98/signal.h/conform): Likewise.
35626         (test-xfail-UNIX98/stdio.h/conform): Likewise.
35627         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
35628         (test-xfail-UNIX98/stropts.h/conform): Likewise.
35629         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
35630         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
35631         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
35632         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
35633         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
35634         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
35635         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
35636         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
35637         (test-xfail-UNIX98/unistd.h/conform): Likewise.
35638         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
35639         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
35640         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
35641         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
35642         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
35643         (test-xfail-XOPEN2K/math.h/conform): Likewise.
35644         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
35645         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
35646         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
35647         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
35648         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
35649         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
35650         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
35651         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
35652         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
35653         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
35654         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
35655         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
35656         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
35657         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
35658         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
35659         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
35660         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
35661         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
35662         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
35663         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
35664         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
35665         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
35666         (test-xfail-POSIX2008/signal.h/conform): Likewise.
35667         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
35668         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
35669         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
35670         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
35671         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
35672         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
35673         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
35674         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
35675         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
35676         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
35677         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
35678         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
35679         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
35680         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
35681         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
35682         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
35683         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
35684         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
35685         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
35686         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
35687         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
35688         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
35689         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
35690         (conformtest-cc-flags): Likewise.
35691         ($(conformtest-header-tests): New target.
35692         * conform/check-header-lists.sh: New file.
35693         * conform/run-conformtest.sh: Remove.
35694
35695         * conform/conformtest.pl: Allow ' and \ in values given for
35696         constants.
35697         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
35698         inclusion.
35699         [POSIX] (sys/types.h): Likewise.
35700         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
35701         inclusion.
35702         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
35703         inclusion.
35704         * conform/data/signal.h-data (SIGIO): Remove expectation.
35705         [XPG3] (SIGBUS): Do not expect.
35706         [POSIX || XPG3] (SIGPOLL): Likewise.
35707         [POSIX || XPG3] (SIGPROF): Likewise.
35708         [POSIX || XPG3] (SIGSYS): Likewise.
35709         [XPG3] (SIGTRAP): Likewise.
35710         [POSIX || XPG3] (SIGURG): Likewise.
35711         [POSIX || XPG3] (SIGVTALRM): Likewise.
35712         [POSIX || XPG3] (SIGXCPU): Likewise.
35713         [POSIX || XPG3] (SIGXFSZ): Likewise.
35714         [POSIX] (SA_SIGINFO): Expect.
35715         [XPG3] (siginfo_t): Do not expect type or contents.
35716         [POSIX] (si_pid): Do not expect element.
35717         [POSIX] (si_uid): Likewise.
35718         [POSIX] (si_addr): Likewise.
35719         [POSIX] (si_status): Likewise.
35720         [POSIX] (si_band): Likewise.
35721         [XPG4] (si_value): Likewise.
35722         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
35723         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
35724         [POSIX || XPG3] (ILL_ILLADR): Likewise.
35725         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
35726         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
35727         [POSIX || XPG3] (ILL_PRVREG): Likewise.
35728         [POSIX || XPG3] (ILL_COPROC): Likewise.
35729         [POSIX || XPG3] (ILL_BADSTK): Likewise.
35730         [POSIX || XPG3] (FPE_INTDIV): Likewise.
35731         [POSIX || XPG3] (FPE_INTOVF): Likewise.
35732         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
35733         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
35734         [POSIX || XPG3] (FPE_FLTUND): Likewise.
35735         [POSIX || XPG3] (FPE_FLTRES): Likewise.
35736         [POSIX || XPG3] (FPE_FLTINV): Likewise.
35737         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
35738         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
35739         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
35740         [POSIX || XPG3] (BUS_ADRALN): Likewise.
35741         [POSIX || XPG3] (BUS_ADRERR): Likewise.
35742         [POSIX || XPG3] (BUS_OBJERR): Likewise.
35743         [POSIX || XPG3] (CLD_EXITED): Likewise.
35744         [POSIX || XPG3] (CLD_KILLED): Likewise.
35745         [POSIX || XPG3] (CLD_DUMPED): Likewise.
35746         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
35747         [POSIX || XPG3] (CLD_STOPPED): Likewise.
35748         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
35749         [POSIX || XPG3] (POLL_IN): Likewise.
35750         [POSIX || XPG3] (POLL_OUT): Likewise.
35751         [POSIX || XPG3] (POLL_MSG): Likewise.
35752         [POSIX || XPG3] (POLL_ERR): Likewise.
35753         [POSIX || XPG3] (POLL_PRI): Likewise.
35754         [POSIX || XPG3] (POLL_HUP): Likewise.
35755         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
35756         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
35757         (SIG*): Do not allow.
35758         [XPG3] (si_*): Likewise.
35759         [XPG3] (SI_*): Likewise.
35760         [XPG3 || XPG4] (sigev_*): Likewise.
35761         [XPG3 || XPG4] (SIGEV_*): Likewise.
35762         [XPG3 || XPG4] (sival_*): Likewise.
35763         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
35764         [POSIX || XPG3] (BUS_*): Likewise.
35765         [POSIX || XPG3] (CLD_*): Likewise.
35766         [POSIX || XPG3] (FPE_*): Likewise.
35767         [POSIX || XPG3] (ILL_*): Likewise.
35768         [POSIX || XPG3] (POLL_*): Likewise.
35769         [POSIX || XPG3] (SEGV_*): Likewise.
35770         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
35771         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
35772         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
35773         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
35774         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
35775         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
35776         Specify type and value.
35777         (TVERSLEN): Likewise.
35778         (REGTYPE): Likewise.
35779         (AREGTYPE): Likewise.
35780         (LNKTYPE): Likewise.
35781         (SYMTYPE): Likewise.
35782         (CHRTYPE): Likewise.
35783         (BLKTYPE): Likewise.
35784         (DIRTYPE): Likewise.
35785         (FIFOTYPE): Likewise.
35786         (CONTTYPE): Likewise.
35787         (TSUID): Likewise.
35788         (TSGID): Likewise.
35789         (TSVTX): Likewise.
35790         (TUREAD): Likewise.
35791         (TUWRITE): Likewise.
35792         (TUEXEC): Likewise.
35793         (TGREAD): Likewise.
35794         (TGWRITE): Likewise.
35795         (TGEXEC): Likewise.
35796         (TOREAD): Likewise.
35797         (TOWRITE): Likewise.
35798         (TOEXEC): Likewise.
35799         [POSIX] (TSVTX): Expect constant.
35800
35801 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
35802
35803         * Makefile (tests): Change dependencies to ....
35804         (tests-special): ... additions to this variable.
35805         (tests): Depend on $(tests-special).
35806         * Makerules (check-abi-list): New variable.
35807         (check-abi): Depend on $(check-abi-list).
35808         [$(subdir) = elf] (tests-special): Add
35809         $(objpfx)check-abi-libc.out.
35810         [$(build-shared) = yes && subdir] (tests-special): Add
35811         $(check-abi-list).
35812         [$(build-shared) = yes && subdir] (tests): Do not depend on
35813         check-abi.
35814         * Rules (tests): Depend on $(tests-special).
35815         (xtests): Depend on $(xtests-special).
35816         * catgets/Makefile (tests): Change dependencies to ....
35817         (tests-special): ... additions to this variable.
35818         * conform/Makefile (tests): Change dependencies to ....
35819         (tests-special): ... additions to this variable.
35820         * elf/Makefile (tests): Change dependencies to ....
35821         (tests-special): ... additions to this variable.
35822         * grp/Makefile (tests): Change dependencies to ....
35823         (tests-special): ... additions to this variable.
35824         * iconv/Makefile (xtests): Change dependencies to ....
35825         (xtests-special): ... additions to this variable.
35826         * iconvdata/Makefile (tests): Change dependencies to ....
35827         (tests-special): ... additions to this variable.
35828         * intl/Makefile (tests): Change dependencies to ....
35829         (tests-special): ... additions to this variable.  Also add
35830         $(objpfx)tst-gettext.out.
35831         * io/Makefile (tests): Change dependencies to ....
35832         (tests-special): ... additions to this variable.
35833         * libio/Makefile (tests): Change dependencies to ....
35834         (tests-special): ... additions to this variable.
35835         * malloc/Makefile (tests): Change dependencies to ....
35836         (tests-special): ... additions to this variable.
35837         * misc/Makefile (tests): Change dependencies to ....
35838         (tests-special): ... additions to this variable.
35839         * nptl/Makefile (tests): Change dependencies to ....
35840         (tests-special): ... additions to this variable.
35841         * nptl_db/Makefile (tests): Change dependencies to ....
35842         (tests-special): ... additions to this variable.
35843         * posix/Makefile (tests): Change dependencies to ....
35844         (tests-special): ... additions to this variable.
35845         (xtests): Change dependencies to ....
35846         (xtests-special): ... additions to this variable.
35847         * resolv/Makefile (tests): Change dependencies to ....
35848         (tests-special): ... additions to this variable.
35849         (xtests): Change dependencies to ....
35850         (xtests-special): ... additions to this variable.
35851         * stdio-common/Makefile (tests): Change dependencies to ....
35852         (tests-special): ... additions to this variable.
35853         (do-tst-unbputc): Remove target.
35854         (do-tst-printf): Likewise.
35855         * stdlib/Makefile (tests): Change dependencies to ....
35856         (tests-special): ... additions to this variable.
35857         * string/Makefile (tests): Change dependencies to ....
35858         (tests-special): ... additions to this variable.
35859         * sysdeps/x86/Makefile (tests): Change dependencies to ....
35860         (tests-special): ... additions to this variable.
35861
35862         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
35863         whole file.
35864         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
35865         whole file.
35866         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
35867         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
35868
35869         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
35870         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
35871         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
35872         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
35873         * conform/data/libgen.h-data [XPG3]: Likewise.
35874         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
35875         * conform/data/ndbm.h-data [XPG3]: Likewise.
35876         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
35877         * conform/data/netdb.h-data [XPG3]: Likewise.
35878         * conform/data/netinet/in.h-data [XPG3]: Likewise.
35879         * conform/data/poll.h-data [XPG3]: Likewise.
35880         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
35881         * conform/data/strings.h-data [XPG3]: Likewise.
35882         * conform/data/stropts.h-data [XPG3]: Likewise.
35883         * conform/data/sys/mman.h-data [XPG3]: Likewise.
35884         * conform/data/sys/resource.h-data [XPG3]: Likewise.
35885         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
35886         Likewise.
35887         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
35888         * conform/data/sys/time.h-data [XPG3]: Likewise.
35889         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
35890         * conform/data/sys/uio.h-data [XPG3]: Likewise.
35891         * conform/data/sys/un.h-data [XPG3]: Likewise.
35892         * conform/data/syslog.h-data [XPG3]: Likewise.
35893         * conform/data/ucontext.h-data [XPG3]: Likewise.
35894         * conform/data/utmpx.h-data [XPG3]: Likewise.
35895         * conform/data/varargs.h-data [UNIX98]: Enable file.
35896
35897         * manual/Makefile (INSTALL_INFO): Remove variable setting.
35898
35899         * math/libm-test.inc (struct test_f_f_data): Move expected results
35900         into structure for each rounding mode.
35901         (struct test_ff_f_data): Likewise.
35902         (struct test_ff_f_data_nexttoward): Likewise.
35903         (struct test_fi_f_data): Likewise.
35904         (struct test_fl_f_data): Likewise.
35905         (struct test_if_f_data): Likewise.
35906         (struct test_fff_f_data): Likewise.
35907         (struct test_c_f_data): Likewise.
35908         (struct test_f_f1_data): Likewise.
35909         (struct test_fF_f1_data): Likewise.
35910         (struct test_ffI_f1_data): Likewise.
35911         (struct test_c_c_data): Likewise.
35912         (struct test_cc_c_data): Likewise.
35913         (struct test_f_i_data): Likewise.
35914         (struct test_ff_i_data): Likewise.
35915         (struct test_f_l_data): Likewise.
35916         (struct test_f_L_data): Likewise.
35917         (struct test_fFF_11_data): Likewise.
35918         (RM_): New macro.
35919         (RM_FE_DOWNWARD): Likewise.
35920         (RM_FE_TONEAREST): Likewise.
35921         (RM_FE_TOWARDZERO): Likewise.
35922         (RM_FE_UPWARD): Likewise.
35923         (RUN_TEST_LOOP_f_f): Update references to expected results.
35924         (RUN_TEST_LOOP_2_f): Likewise.
35925         (RUN_TEST_LOOP_fff_f): Likewise.
35926         (RUN_TEST_LOOP_c_f): Likewise.
35927         (RUN_TEST_LOOP_f_f1): Likewise.
35928         (RUN_TEST_LOOP_fF_f1): Likewise.
35929         (RUN_TEST_LOOP_fI_f1): Likewise.
35930         (RUN_TEST_LOOP_ffI_f1): Likewise.
35931         (RUN_TEST_LOOP_c_c): Likewise.
35932         (RUN_TEST_LOOP_cc_c): Likewise.
35933         (RUN_TEST_LOOP_f_i): Likewise.
35934         (RUN_TEST_LOOP_f_i_tg): Likewise.
35935         (RUN_TEST_LOOP_ff_i_tg): Likewise.
35936         (RUN_TEST_LOOP_f_b): Likewise.
35937         (RUN_TEST_LOOP_f_b_tg): Likewise.
35938         (RUN_TEST_LOOP_f_l): Likewise.
35939         (RUN_TEST_LOOP_f_L): Likewise.
35940         (RUN_TEST_LOOP_fFF_11): Likewise.
35941         * math/gen-libm-test.pl (parse_args): Output four copies of
35942         expected results for each test.
35943
35944         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
35945         (__ASSUME_UTIMES): Remove.
35946         * sysdeps/unix/sysv/linux/tile/kernel-features.h
35947         (__ASSUME_UTIMES): Likewise.
35948
35949         * math/gen-auto-libm-tests.c: Update comment on output format.
35950         (output_for_one_input_case): Generate before-rounding and
35951         after-rounding information as conditions on output flags not
35952         floating-point format.
35953         * math/auto-libm-test-out: Regenerated.
35954         * math/gen-libm-test.pl (cond_value): New function.
35955         (or_cond_value): Use cond_value.
35956         (generate_testfile): Handle conditional exceptions.
35957
35958 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
35959
35960         * math/libm-test.inc (max_valid_error): New variable.
35961         (init_max_error): Take new argument specifying whether function
35962         results are exactly determined.  Set max_valid_error and bound
35963         other variables for errors based on this argument.
35964         (set_max_error): Do not record results above max_valid_error.
35965         (check_float_internal): Only accept errors of up to 0.5ulps if
35966         also at most max_valid_error.
35967         (START): Take new argument EXACT and pass it to init_max_error.
35968         (acos_test): Update call to START.
35969         (acos_test_tonearest): Likewise.
35970         (acos_test_towardzero): Likewise.
35971         (acos_test_downward): Likewise.
35972         (acos_test_upward): Likewise.
35973         (acosh_test): Likewise.
35974         (asin_test): Likewise.
35975         (asin_test_tonearest): Likewise.
35976         (asin_test_towardzero): Likewise.
35977         (asin_test_downward): Likewise.
35978         (asin_test_upward): Likewise.
35979         (asinh_test): Likewise.
35980         (atan_test): Likewise.
35981         (atanh_test): Likewise.
35982         (atan2_test): Likewise.
35983         (cabs_test): Likewise.
35984         (cacos_test): Likewise.
35985         (cacosh_test): Likewise.
35986         (carg_test): Likewise.
35987         (casin_test): Likewise.
35988         (casinh_test): Likewise.
35989         (catan_test): Likewise.
35990         (catanh_test): Likewise.
35991         (cbrt_test): Likewise.
35992         (ccos_test): Likewise.
35993         (ccosh_test): Likewise.
35994         (ceil_test): Likewise.
35995         (cexp_test): Likewise.
35996         (cimag_test): Likewise.
35997         (clog_test): Likewise.
35998         (clog10_test): Likewise.
35999         (conj_test): Likewise.
36000         (copysign_test): Likewise.
36001         (cos_test): Likewise.
36002         (cos_test_tonearest): Likewise.
36003         (cos_test_towardzero): Likewise.
36004         (cos_test_downward): Likewise.
36005         (cos_test_upward): Likewise.
36006         (cosh_test): Likewise.
36007         (cosh_test_tonearest): Likewise.
36008         (cosh_test_towardzero): Likewise.
36009         (cosh_test_downward): Likewise.
36010         (cosh_test_upward): Likewise.
36011         (cpow_test): Likewise.
36012         (cproj_test): Likewise.
36013         (creal_test): Likewise.
36014         (csin_test): Likewise.
36015         (csinh_test): Likewise.
36016         (csqrt_test): Likewise.
36017         (ctan_test): Likewise.
36018         (ctan_test_tonearest): Likewise.
36019         (ctan_test_towardzero): Likewise.
36020         (ctan_test_downward): Likewise.
36021         (ctan_test_upward): Likewise.
36022         (ctanh_test): Likewise.
36023         (ctanh_test_tonearest): Likewise.
36024         (ctanh_test_towardzero): Likewise.
36025         (ctanh_test_downward): Likewise.
36026         (ctanh_test_upward): Likewise.
36027         (erf_test): Likewise.
36028         (erfc_test): Likewise.
36029         (exp_test): Likewise.
36030         (exp_test_tonearest): Likewise.
36031         (exp_test_towardzero): Likewise.
36032         (exp_test_downward): Likewise.
36033         (exp_test_upward): Likewise.
36034         (exp10_test): Likewise.
36035         (exp10_test_tonearest): Likewise.
36036         (exp10_test_towardzero): Likewise.
36037         (exp10_test_downward): Likewise.
36038         (exp10_test_upward): Likewise.
36039         (pow10_test): Likewise.
36040         (exp2_test): Likewise.
36041         (expm1_test): Likewise.
36042         (expm1_test_tonearest): Likewise.
36043         (expm1_test_towardzero): Likewise.
36044         (expm1_test_downward): Likewise.
36045         (expm1_test_upward): Likewise.
36046         (fabs_test): Likewise.
36047         (fdim_test): Likewise.
36048         (floor_test): Likewise.
36049         (fma_test): Likewise.
36050         (fma_test_towardzero): Likewise.
36051         (fma_test_downward): Likewise.
36052         (fma_test_upward): Likewise.
36053         (fmax_test): Likewise.
36054         (fmin_test): Likewise.
36055         (fmod_test): Likewise.
36056         (fpclassify_test): Likewise.
36057         (frexp_test): Likewise.
36058         (hypot_test): Likewise.
36059         (ilogb_test): Likewise.
36060         (isfinite_test): Likewise.
36061         (finite_test): Likewise.
36062         (isgreater_test): Likewise.
36063         (isgreaterequal_test): Likewise.
36064         (isinf_test): Likewise.
36065         (isless_test): Likewise.
36066         (islessequal_test): Likewise.
36067         (islessgreater_test): Likewise.
36068         (isnan_test): Likewise.
36069         (isnormal_test): Likewise.
36070         (issignaling_test): Likewise.
36071         (isunordered_test): Likewise.
36072         (j0_test): Likewise.
36073         (j1_test): Likewise.
36074         (jn_test): Likewise.
36075         (ldexp_test): Likewise.
36076         (lgamma_test): Likewise.
36077         (gamma_test): Likewise.
36078         (lrint_test): Likewise.
36079         (lrint_test_tonearest): Likewise.
36080         (lrint_test_towardzero): Likewise.
36081         (lrint_test_downward): Likewise.
36082         (lrint_test_upward): Likewise.
36083         (llrint_test): Likewise.
36084         (llrint_test_tonearest): Likewise.
36085         (llrint_test_towardzero): Likewise.
36086         (llrint_test_downward): Likewise.
36087         (llrint_test_upward): Likewise.
36088         (log_test): Likewise.
36089         (log10_test): Likewise.
36090         (log1p_test): Likewise.
36091         (log2_test): Likewise.
36092         (logb_test): Likewise.
36093         (logb_test_downward): Likewise.
36094         (lround_test): Likewise.
36095         (llround_test): Likewise.
36096         (modf_test): Likewise.
36097         (nearbyint_test): Likewise.
36098         (nextafter_test): Likewise.
36099         (nexttoward_test): Likewise.
36100         (pow_test): Likewise.
36101         (pow_test_tonearest): Likewise.
36102         (pow_test_towardzero): Likewise.
36103         (pow_test_downward): Likewise.
36104         (pow_test_upward): Likewise.
36105         (remainder_test): Likewise.
36106         (drem_test): Likewise.
36107         (remainder_test_tonearest): Likewise.
36108         (drem_test_tonearest): Likewise.
36109         (remainder_test_towardzero): Likewise.
36110         (drem_test_towardzero): Likewise.
36111         (remainder_test_downward): Likewise.
36112         (drem_test_downward): Likewise.
36113         (remainder_test_upward): Likewise.
36114         (drem_test_upward): Likewise.
36115         (remquo_test): Likewise.
36116         (rint_test): Likewise.
36117         (rint_test_tonearest): Likewise.
36118         (rint_test_towardzero): Likewise.
36119         (rint_test_downward): Likewise.
36120         (rint_test_upward): Likewise.
36121         (round_test): Likewise.
36122         (scalb_test): Likewise.
36123         (scalbn_test): Likewise.
36124         (scalbln_test): Likewise.
36125         (signbit_test): Likewise.
36126         (sin_test): Likewise.
36127         (sin_test_tonearest): Likewise.
36128         (sin_test_towardzero): Likewise.
36129         (sin_test_downward): Likewise.
36130         (sin_test_upward): Likewise.
36131         (sincos_test): Likewise.
36132         (sinh_test): Likewise.
36133         (sinh_test_tonearest): Likewise.
36134         (sinh_test_towardzero): Likewise.
36135         (sinh_test_downward): Likewise.
36136         (sinh_test_upward): Likewise.
36137         (sqrt_test): Likewise.
36138         (sqrt_test_tonearest): Likewise.
36139         (sqrt_test_towardzero): Likewise.
36140         (sqrt_test_downward): Likewise.
36141         (sqrt_test_upward): Likewise.
36142         (tan_test): Likewise.
36143         (tan_test_tonearest): Likewise.
36144         (tan_test_towardzero): Likewise.
36145         (tan_test_downward): Likewise.
36146         (tan_test_upward): Likewise.
36147         (tanh_test): Likewise.
36148         (tgamma_test): Likewise.
36149         (trunc_test): Likewise.
36150         (y0_test): Likewise.
36151         (y1_test): Likewise.
36152         (yn_test): Likewise.
36153         (significand_test): Likewise.
36154
36155         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
36156         individual tests in comment.
36157         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
36158         (prev_max_error): New variable.
36159         (prev_real_max_error): Likewise.
36160         (prev_imag_max_error): Likewise.
36161         (compare_ulp_data): Don't refer to test names in comment.
36162         (find_test_ulps): Remove function.
36163         (find_function_ulps): Likewise.
36164         (find_complex_function_ulps): Likewise.
36165         (init_max_error): Take function name as argument.  Look up ulps
36166         for that function.
36167         (print_ulps): Remove function.
36168         (print_max_error): Use prev_max_error instead of calling
36169         find_function_ulps.
36170         (print_complex_max_error): Use prev_real_max_error and
36171         prev_imag_max_error instead of calling find_complex_function_ulps.
36172         (check_float_internal): Take max_ulp parameter instead of calling
36173         find_test_ulps.  Don't call print_ulps.
36174         (check_float): Update call to check_float_internal.
36175         (check_complex): Update calls to check_float_internal.
36176         (START): Pass argument to init_max_error.
36177         * math/gen-libm-test.pl (%results): Don't include "kind"
36178         information.
36179         (parse_ulps): Don't handle ulps of individual tests.
36180         (print_ulps_file): Likewise.
36181         (output_ulps): Likewise.
36182         * math/README.libm-test: Update.
36183         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
36184         individual tests.
36185         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
36186         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
36187         * sysdeps/arm/libm-test-ulps: Likewise.
36188         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
36189         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
36190         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
36191         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
36192         * sysdeps/microblaze/libm-test-ulps: Likewise.
36193         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
36194         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
36195         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
36196         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
36197         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
36198         * sysdeps/sh/libm-test-ulps: Likewise.
36199         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
36200         * sysdeps/tile/libm-test-ulps: Likewise.
36201         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36202
36203 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
36204
36205         * math/libm-test.inc (print_complex_max_error): Check separately
36206         whether real and imaginary errors are within allowed range and
36207         pass 0 to print_complex_function_ulps instead of value within
36208         allowed range.
36209
36210 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
36211
36212         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
36213         formatting.
36214         (get_handles_fopen): Likewise.
36215         (do_write_test): Likewise.
36216
36217         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
36218
36219         * libio/fileops.c (do_ftell): Use cached offset when
36220         available.
36221         * libio/iofwide.c (do_ftell_wide): Likewise.
36222         * libio/iofdopen.c (_IO_new_fdopen): Don't use
36223         _IO_file_attach.
36224         * libio/wfileops.c (_IO_fwide): Don't cache offset.
36225
36226         [BZ #16532]
36227         * libio/libioP.h (get_file_offset): New function.
36228         * libio/fileops.c (get_file_offset): Likewise.
36229         (do_ftell): Likewise.
36230         (_IO_new_file_seekoff): Split out ftell logic.
36231         * libio/wfileops.c (do_ftell_wide): Likewise.
36232         (_IO_wfile_seekoff): Split out ftell logic.
36233         * libio/tst-ftell-active-handler.c: New test case.
36234         * libio/Makefile (tests): Add it.
36235
36236 2014-03-03  Roland McGrath  <roland@hack.frob.com>
36237
36238         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
36239         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
36240
36241 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
36242
36243         [BZ #16639]
36244         * nscd/connections.c (nscd_init): Call do_exit.
36245         (start_threads): Call do_exit and notify_parent.
36246         (begin_drop_privileges): Call do_exit.
36247         (finish_drop_privileges): Likewise.
36248         * nscd/selinux.c (preserve_capabilities): Likewise.
36249         (install_real_capabilities): Likewise.
36250         (nscd_selinux_enabled): Likewise.
36251         (avc_create_thread): Likewise.
36252         (avc_alloc_lock): Likewise.
36253         (nscd_avc_init): Likewise.
36254         * nscd/nscd.c (parent_fd): New static variable.
36255         (main): Create a pipe between parent and child processes.
36256         Skip closing parent_fd.
36257         (monitor_child): New function.
36258         (do_exit): Likewise.
36259         (notify_parent): Likewise.
36260         * nscd/nscd.h (notify_parent): Likewise.
36261         (do_exit): Likewise.
36262
36263 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
36264
36265         * malloc/malloc.c (__libc_calloc): Revert last change.
36266
36267 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36268
36269         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36270
36271 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
36272
36273         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
36274         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
36275         implementation.
36276         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
36277         (__libc_ifunc_impl_list): Likewise.
36278         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
36279         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
36280         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
36281         * string/strrchr.c: Define STRRCHR.
36282
36283 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
36284
36285         * benchtest/bench-strtok.c (simple_strtok): Delete.
36286         (strtok_string): Use as benchmark.
36287         * string/strtok (STRTOK): New macro.
36288
36289 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
36290
36291         * manual/threads.texi: Add header and standard comments to all
36292         functions.
36293
36294         * elf/dl-lookup.c (check_match): New function.
36295         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
36296         (do_lookup_x): Remove nested function check_match. Use non-nested
36297         function check_match.
36298
36299 2014-02-28  Roland McGrath  <roland@hack.frob.com>
36300
36301         * csu/Makefile (generated, before-compile): Use += rather than =.
36302         * catgets/Makefile (generated, generated-dirs): Likewise.
36303         * debug/Makefile (generated): Likewise.
36304         * dlfcn/Makefile (generated): Likewise.
36305         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
36306         * iconvdata/Makefile (before-compile, generated): Likewise.
36307         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
36308         * libio/Makefile (generated): Likewise.
36309         * malloc/Makefile (generated): Likewise.
36310         * manual/Makefile (generated, generated-dirs): Likewise.
36311         * misc/Makefile (generated): Likewise.
36312         * posix/Makefile (generated): Likewise.
36313         * resolv/Makefile (generated): Likewise.
36314         * sunrpc/Makefile (generated, generated-dirs): Likewise.
36315         * timezone/Makefile (generated, generated-dirs): Likewise.
36316
36317         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
36318
36319 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36320
36321         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
36322         power8 implementation.
36323         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
36324         file: POWER8 llround ifunc implementation.
36325         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
36326         (__lllround): Add POWER8 implementation.
36327         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
36328         POWER8 llround implementation.
36329
36330         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
36331         power8 implementation.
36332         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
36333         file: POWER8 llrint ifunc implementation.
36334         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
36335         Add POWER8 implementation.
36336         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
36337         POWER8 llrint implementation.
36338
36339         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
36340         power8 implementation.
36341         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
36342         file: POWER8 finite ifunc implementation.
36343         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
36344         Add POWER8 implementation.
36345         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
36346         Likewise.
36347         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
36348         POWER8 finite implementation.
36349         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
36350
36351         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
36352         power8 implementation.
36353         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
36354         file: POWER8 isinf ifunc implementation.
36355         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
36356         POWER8 implementation.
36357         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
36358         Likewise.
36359         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
36360         isinf implementation.
36361         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
36362
36363         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
36364         (INIT_ARCH): Add hwcap2 initialization.
36365         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
36366         power8 implementation.
36367         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
36368         file: POWER8 isnan ifunc implementation.
36369         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
36370         POWER8 implementation.
36371         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
36372         Likewise.
36373         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
36374         isnan implementation.
36375         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
36376
36377 2014-02-27  Joey Ye  <joey.ye@arm.com>
36378
36379         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
36380         (_FP_NANFRAC_Q): Set to zero.
36381
36382 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
36383
36384         [BZ #16623]
36385         * math/auto-libm-test-in: New test inputs.
36386         * math/auto-libm-test-out: Regenerate.
36387         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
36388         and DA.
36389         (__cos): Likewise.
36390         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
36391
36392 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
36393
36394         * scripts/evaluate-test.sh: Take new argument indicating whether
36395         failure is expected.
36396         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
36397         indicating whether failure is expected.
36398         * conform/Makefile (test-xfail-run-conformtest): New variable.
36399         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
36400         level.
36401         * posix/Makefile (test-xfail-annexc): New variable.
36402         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
36403
36404 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
36405
36406         * argp/Makefile: Include Makeconfig immediately after defining
36407         subdir.
36408         * assert/Makefile: Likewise.
36409         * benchtests/Makefile: Likewise.
36410         * catgets/Makefile: Likewise.
36411         * conform/Makefile: Likewise.
36412         * crypt/Makefile: Likewise.
36413         * csu/Makefile: Likewise.
36414         (all): Remove target.
36415         * ctype/Makefile: Include Makeconfig immediately after defining
36416         subdir.
36417         * debug/Makefile: Likewise.
36418         * dirent/Makefile: Likewise.
36419         * dlfcn/Makefile: Likewise.
36420         * gmon/Makefile: Likewise.
36421         * gnulib/Makefile: Likewise.
36422         * grp/Makefile: Likewise.
36423         * gshadow/Makefile: Likewise.
36424         * hesiod/Makefile: Likewise.
36425         * hurd/Makefile: Likewise.
36426         (all): Remove target.
36427         * iconvdata/Makefile: Include Makeconfig immediately after
36428         defining subdir.
36429         * inet/Makefile: Likewise.
36430         * intl/Makefile: Likewise.
36431         * io/Makefile: Likewise.
36432         * libio/Makefile: Likewise.
36433         (all): Remove target.
36434         * locale/Makefile: Include Makeconfig immediately after defining
36435         subdir.
36436         * login/Makefile: Likewise.
36437         * mach/Makefile: Likewise.
36438         (all): Remove target.
36439         * malloc/Makefile: Include Makeconfig immediately after defining
36440         subdir.
36441         (all): Remove target.
36442         * manual/Makefile: Include Makeconfig immediately after defining
36443         subdir.
36444         * math/Makefile: Likewise.
36445         * misc/Makefile: Likewise.
36446         * nis/Makefile: Likewise.
36447         * nss/Makefile: Likewise.
36448         * po/Makefile: Likewise.
36449         (all): Remove target.
36450         * posix/Makefile: Include Makeconfig immediately after defining
36451         subdir.
36452         * pwd/Makefile: Likewise.
36453         * resolv/Makefile: Likewise.
36454         * resource/Makefile: Likewise.
36455         * rt/Makefile: Likewise.
36456         * setjmp/Makefile: Likewise.
36457         * shadow/Makefile: Likewise.
36458         * signal/Makefile: Likewise.
36459         * socket/Makefile: Likewise.
36460         * soft-fp/Makefile: Likewise.
36461         * stdio-common/Makefile: Likewise.
36462         * stdlib/Makefile: Likewise.
36463         * streams/Makefile: Likewise.
36464         * string/Makefile: Likewise.
36465         * sunrpc/Makefile: Likewise.
36466         (all): Remove target.
36467         * sysvipc/Makefile: Include Makeconfig immediately after defining
36468         subdir.
36469         * termios/Makefile: Likewise.
36470         * time/Makefile: Likewise.
36471         * timezone/Makefile: Likewise.
36472         (all): Remove target.
36473         * wcsmbs/Makefile: Include Makeconfig immediately after defining
36474         subdir.
36475         * wctype/Makefile: Likewise.
36476
36477 2014-02-26  Steve Ellcey  <sellcey@mips.com>
36478
36479         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
36480         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
36481         (libc_feholdexcept_setround_mips): Ditto.
36482         (libc_feholdsetround): New.
36483         (libc_feholdsetroundf): New.
36484         (libc_feholdsetroundl): New.
36485         (libc_feupdateenv_test_mips): New.
36486         (libc_feupdateenv_test): New.
36487         (libc_feupdateenv_testf): New.
36488         (libc_feupdateenv_testl): New.
36489         (libc_feresetround): New.
36490         (libc_feresetroundf): New.
36491         (libc_feresetroundl): New.
36492         (libc_fetestexcept_mips): New.
36493         (libc_fetestexcept): New.
36494         (libc_fetestexceptf): New.
36495         (libc_fetestexceptl): New.
36496         (HAVE_RM_CTX): New.
36497         (libc_feholdexcept_setround_mips_ctx): New.
36498         (libc_feholdexcept_setround_ctx): New.
36499         (libc_feholdexcept_setroundf_ctx): New.
36500         (libc_feholdexcept_setroundl_ctx): New.
36501         (libc_fesetenv_mips_ctx): New.
36502         (libc_fesetenv_ctx): New.
36503         (libc_fesetenv_ctxf): New.
36504         (libc_fesetenv_ctxl): New.
36505         (libc_feupdateenv_mips_ctx): New.
36506         (libc_feupdateenv_ctx): New.
36507         (libc_feupdateenvf_ctx): New.
36508         (libc_feupdateenvl_ctx): New.
36509         (libc_feholdsetround_mips_ctx): New.
36510         (libc_feholdsetround_ctx): New.
36511         (libc_feholdsetroundf_ctx): New.
36512         (libc_feholdsetroundl_ctx): New.
36513         (libc_feresetround_mips_ctx): New.
36514         (libc_feresetround_ctx): New.
36515         (libc_feresetroundf_ctx): New.
36516         (libc_feresetroundl_ctx): New.
36517
36518 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
36519
36520         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
36521
36522         * manual/ipc.texi: New file.
36523         * manual/Makefile (chapters): Add ipc.
36524         * manual/job.texi: Add "Inter-Process Communication" to next.
36525         * manual/process.texi: Add "Inter-Process Communication" to prev.
36526
36527 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36528
36529         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36530
36531 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
36532
36533         * malloc/malloc.c (__libc_calloc): Simplify implementation.
36534
36535         * manual/arith.texi: Fix spaces after sentences.
36536         * manual/charset.texi: Likewise.
36537         * manual/errno.texi: Likewise.
36538         * manual/install.texi: Likewise.
36539         * manual/llio.texi: Likewise.
36540         * manual/locale.texi: Likewise.
36541         * manual/maint.texi: Likewise.
36542         * manual/math.texi: Likewise.
36543         * manual/memory.texi: Likewise.
36544         * manual/message.texi: Likewise.
36545         * manual/probes.texi: Likewise.
36546         * manual/resource.texi: Likewise.
36547         * manual/signal.texi: Likewise.
36548         * manual/socket.texi: Likewise.
36549         * manual/stdio.texi: Likewise.
36550         * manual/string.texi: Likewise.
36551         * manual/time.texi: Likewise.
36552         * manual/users.texi: Likewise.
36553
36554 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
36555
36556         [BZ #16632]
36557         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
36558         _DEFAULT_SOURCE is defined.
36559
36560 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
36561             Carlos O'Donell  <carlos@redhat.com>
36562
36563         [BZ #16613]
36564         * elf/dl-tls.c (_dl_count_modids): New function.
36565         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
36566         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
36567         audit library and increment generation counter.
36568         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
36569         * elf/tst-audit9.c: New file.
36570         * elf/tst-auditmod9a.c: New file.
36571         * elf/tst-auditmod9b.c: New file.
36572         * elf/Makefile: Add rules to build and run tst-audit9.
36573
36574 2014-02-25  Florian Weimer  <fweimer@redhat.com>
36575
36576         [BZ #15347]
36577         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
36578
36579 2014-02-25  Will Newton  <will.newton@linaro.org>
36580
36581         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
36582         (__longjmp): Restore sp and lr before restoring callee
36583         saved registers.  Add longjmp and longjmp_target
36584         SystemTap probe point.
36585         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
36586         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
36587         Define to zero to match jmpbuf layout.
36588         * sysdeps/arm/setjmp.S: Include stap-probe.h.
36589         (__sigsetjmp): Save sp and lr before saving callee
36590         saved registers.  Add setjmp SystemTap probe point.
36591
36592 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
36593
36594         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
36595
36596 2014-02-24  Andreas Schwab  <schwab@suse.de>
36597
36598         [BZ #15804]
36599         * elf/pldd.c (wait_for_ptrace_stop): New function.
36600         (main): Call it after attaching.
36601
36602 2014-02-22  Roland McGrath  <roland@hack.frob.com>
36603
36604         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
36605         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
36606         Versions files is now verboten.
36607         * hurd/Versions (libc: GLIBC_2.0):
36608         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
36609         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
36610         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
36611         * mach/Versions: Likewise.
36612
36613         * csu/Versions: Remove unused %include.
36614         * resolv/Versions: Likewise.
36615
36616 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
36617
36618         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
36619         ($(objpfx)check-local-headers.out): Likewise.
36620         ($(objpfx)begin-end-check.out): Likewise.
36621         * Makerules (check-abi-%.out): Likewise.
36622         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
36623         ($(objpfx)test2.cat): Likewise.
36624         ($(objpfx)de/libc.cat): Likewise.
36625         ($(objpfx)test-gencat.out): Likewise.
36626         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
36627         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
36628         ($(objpfx)noload-mem): Likewise.
36629         ($(objpfx)tst-pathopt.out): Likewise.
36630         ($(objpfx)tst-rtld-load-self.out): Likewise.
36631         ($(objpfx)tst-array1-cmp.out): Likewise.
36632         ($(objpfx)tst-array1-static-cmp.out): Likewise.
36633         ($(objpfx)tst-array2-cmp.out): Likewise.
36634         ($(objpfx)tst-array3-cmp.out): Likewise.
36635         ($(objpfx)tst-array4-cmp.out): Likewise.
36636         ($(objpfx)tst-array5-cmp.out): Likewise.
36637         ($(objpfx)tst-array5-static-cmp.out): Likewise.
36638         ($(objpfx)check-textrel.out): Likewise.
36639         ($(objpfx)check-execstack.out): Likewise.
36640         ($(objpfx)check-localplt.out): Likewise.
36641         ($(objpfx)order2-cmp.out): Likewise.
36642         ($(objpfx)tst-leaks1-mem): Likewise.
36643         ($(objpfx)tst-leaks1-static-mem): Likewise.
36644         ($(objpfx)tst-initorder-cmp.out): Likewise.
36645         ($(objpfx)tst-initorder2-cmp.out): Likewise.
36646         ($(objpfx)tst-unused-dep.out): Likewise.
36647         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
36648         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
36649         * iconv/Makefile (test-iconvconfig): Likewise.
36650         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
36651         ($(objpfx)iconv-test.out): Likewise.
36652         ($(objpfx)tst-tables.out): Likewise.
36653         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
36654         ($(objpfx)tst-gettext.out): Likewise.
36655         ($(objpfx)tst-translit.out): Likewise.
36656         ($(objpfx)tst-gettext2.out): Likewise.
36657         ($(objpfx)tst-gettext4.out): Likewise.
36658         ($(objpfx)tst-gettext6.out): Likewise.
36659         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
36660         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
36661         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
36662         ($(objpfx)tst-fopenloc-mem.out): Likewise.
36663         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
36664         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
36665         * posix/Makefile ($(objpfx)globtest.out): Likewise.
36666         ($(objpfx)wordexp-tst.out): Likewise.
36667         ($(objpfx)annexc.out): Likewise.
36668         ($(objpfx)tst-fnmatch-mem): Likewise.
36669         ($(objpfx)bug-regex2-mem): Likewise.
36670         ($(objpfx)bug-regex14-mem): Likewise.
36671         ($(objpfx)bug-regex21-mem): Likewise.
36672         ($(objpfx)bug-regex31-mem): Likewise.
36673         ($(objpfx)tst-vfork3-mem): Likewise.
36674         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
36675         ($(objpfx)tst-pcre-mem): Likewise.
36676         ($(objpfx)tst-boost-mem): Likewise.
36677         ($(objpfx)tst-getconf.out): Likewise.
36678         ($(objpfx)bug-ga2-mem): Likewise.
36679         ($(objpfx)bug-glob2-mem): Likewise.
36680         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
36681         ($(objpfx)mtrace-tst-leaks2): Likewise.
36682         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
36683         ($(objpfx)tst-printf.out): Likewise.
36684         ($(objpfx)tst-setvbuf1.out): Likewise.
36685         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
36686         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
36687         ($(objpfx)tst-fmtmsg.out): Likewise.
36688         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
36689         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
36690
36691         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
36692         * bits/sigaction.h [__USE_MISC]: Likewise.
36693         * bits/waitstatus.h: Update #endif comments.
36694         * ctype/ctype.h: Likewise.
36695         * dirent/dirent.h: Likewise.
36696         [__USE_MISC]: Remove redundant conditionals.
36697         * grp/grp.h: Update #endif comments.
36698         [__USE_GNU]: Remove redundant conditionals.
36699         [__USE_MISC]: Likewise.
36700         * inet/netinet/in.h [__USE_GNU]: Likewise.
36701         * io/sys/stat.h [__USE_MISC]: Likewise.
36702         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
36703         * libio/bits/stdio.h: Update #endif comments.
36704         [__USE_MISC]: Remove redundant conditionals.
36705         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
36706         * libio/stdio.h: Update #endif comments.
36707         [__USE_MISC]: Remove redundant conditionals.
36708         * math/bits/math-finite.h [__USE_MISC]: Likewise.
36709         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
36710         * math/math.h: Update #else and #endif comments.
36711         [__USE_MISC]: Remove redundant conditionals.
36712         * misc/sys/uio.h: Update #endif comments.
36713         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
36714         * posix/glob.h [__USE_MISC]: Likewise.
36715         * posix/sys/types.h: Update #endif comments.
36716         [__USE_MISC]: Remove redundant conditionals.
36717         * posix/sys/wait.h: Update #endif comments.
36718         [__USE_MISC]: Remove redundant conditionals.
36719         * posix/unistd.h: Update #endif comments.
36720         [__USE_MISC]: Remove redundant conditionals.
36721         * pwd/pwd.h [__USE_GNU]: Likewise.
36722         [__USE_MISC]: Likewise.
36723         * resolv/netdb.h [__USE_GNU]: Likewise.
36724         * signal/signal.h: Update #endif comments.
36725         [__USE_MISC]: Remove redundant conditionals.
36726         * stdlib/stdlib.h: Update #else and #endif comments.
36727         [__USE_MISC]: Remove redundant conditionals.
36728         [__USE_GNU]: Likewise.
36729         * string/bits/string2.h [__USE_MISC]: Likewise.
36730         * string/string.h: Update #endif comments.
36731         [__USE_MISC]: Remove redundant conditionals.
36732         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
36733         Likewise.
36734         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
36735         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
36736         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
36737         Likewise.
36738         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
36739         Likewise.
36740         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
36741         comments.
36742         [__USE_MISC]: Remove redundant conditionals.
36743         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
36744         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
36745         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
36746         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
36747         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
36748         Likewise.
36749         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
36750         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
36751         Likewise.
36752         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
36753         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
36754         Likewise.
36755         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
36756         Likewise.
36757         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
36758         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
36759         Likewise.
36760         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
36761         Likewise.
36762         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
36763         * sysdeps/x86/bits/string.h: Update #endif comments.
36764         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
36765         conditionals.
36766         * time/sys/time.h: Update #endif comments.
36767         * time/time.h: Likewise.
36768         [__USE_MISC]: Remove redundant conditionals.
36769
36770 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
36771
36772         [BZ #16600]
36773         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
36774
36775 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
36776
36777         * Versions.def (librt): Add GLIBC_2.17.
36778
36779 2014-02-21  Adam Conrad  <adconrad@0c3.net>
36780
36781         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
36782         synonym for _SYS_AUXV_H to allow direct inclusion.
36783         * sysdeps/sparc/bits/hwcap.h: Likewise.
36784         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
36785         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
36786         * sysdeps/sparc/sysdep.h: Likewise.
36787
36788 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
36789
36790         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
36791
36792 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
36793
36794         * benchtests/bench-strrchr.c: Print length instead of position.
36795
36796 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
36797
36798         [BZ #16611]
36799         * sysdeps/unix/sysv/linux/kernel-features.h
36800         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
36801         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
36802         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
36803         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
36804         Likewise.
36805         [__i386__ || __powerpc__ || __sh__ || __sparc__]
36806         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
36807         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
36808         (__ASSUME_SENDMMSG): Define instead of using previous
36809         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
36810         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36811         (__ASSUME_SENDMMSG_SYSCALL): Define.
36812         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
36813         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
36814         Likewise.
36815         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36816         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
36817         Likewise.
36818         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
36819         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
36820         Likewise.
36821         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
36822         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
36823         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
36824         [__ASSUME_SENDMMSG]: Change conditionals to
36825         [__ASSUME_SENDMMSG_SOCKETCALL].
36826         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
36827         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
36828         Define.
36829         * sysdeps/unix/sysv/linux/mips/kernel-features.h
36830         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
36831         Likewise.
36832         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
36833         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
36834         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
36835         [!__ASSUME_SENDMMSG]: Change conditional to
36836         [!__ASSUME_SENDMMSG_SOCKETCALL].
36837         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36838         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
36839         Define.
36840
36841         [BZ #16610]
36842         * sysdeps/unix/sysv/linux/kernel-features.h
36843         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
36844         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
36845         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
36846         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
36847         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
36848         [__i386__ || __sparc__]
36849         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
36850         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
36851         (__ASSUME_RECVMMSG): Define instead of using previous
36852         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
36853         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36854         (__ASSUME_RECVMMSG_SYSCALL): Define.
36855         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
36856         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36857         Likewise.
36858         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36859         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36860         Likewise.
36861         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
36862         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36863         Likewise.
36864         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
36865         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
36866         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
36867         [__ASSUME_RECVMMSG]: Change condition to
36868         [__ASSUME_RECVMMSG_SOCKETCALL].
36869         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
36870         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36871         Define.
36872         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
36873         * sysdeps/unix/sysv/linux/mips/kernel-features.h
36874         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
36875         Likewise.
36876         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
36877         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
36878         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
36879         [!__ASSUME_RECVMMSG]: Change condition to
36880         [!__ASSUME_RECVMMSG_SOCKETCALL].
36881         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36882         (__ASSUME_RECVMMSG_SYSCALL): Define.
36883
36884         [BZ #16609]
36885         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
36886         __powerpc__ || __s390__ || __sh__ || __sparc__]
36887         (__ASSUME_SOCKETCALL): Define.
36888         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
36889         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
36890         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
36891         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
36892         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
36893         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
36894         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
36895         (__ASSUME_ACCEPT4): Define instead of using previous
36896         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
36897         __powerpc__ || __sparc__ || __s390__)] condition.
36898         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36899         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
36900         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
36901         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
36902         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
36903         [!__ASSUME_ACCEPT4]: Change condition to
36904         [!__ASSUME_ACCEPT4_SOCKETCALL].
36905         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
36906         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
36907         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
36908         * sysdeps/unix/sysv/linux/arm/kernel-features.h
36909         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
36910         __ASSUME_ACCEPT4_SYSCALL.
36911         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
36912         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
36913         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
36914         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
36915         __ASSUME_ACCEPT4_SYSCALL.
36916         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
36917         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
36918         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
36919         [__ASSUME_ACCEPT4]: Change condition to
36920         [__ASSUME_ACCEPT4_SOCKETCALL].
36921         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
36922         (__ASSUME_SOCKETCALL): Define.
36923         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
36924         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
36925         (__ASSUME_SOCKETCALL): Define.
36926         (__ASSUME_ACCEPT4): Remove.
36927         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
36928         Define.
36929         * sysdeps/unix/sysv/linux/mips/kernel-features.h
36930         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
36931         Likewise.
36932         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36933         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
36934
36935         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
36936         macro.
36937         (HWCAP_ARM_LPAE): Likewise.
36938         (HWCAP_ARM_EVTSTRM): Likewise.
36939         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
36940         Add vpfd32, lpae and evtstrm.
36941         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
36942         Increase to 22.
36943
36944 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
36945
36946         * math/auto-libm-test-in: Add tests of clog10.
36947         * math/auto-libm-test-out: Regenerated.
36948         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
36949         * sysdeps/i386/fpu/libm-test-ulps: Update.
36950         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36951
36952 2014-02-18  Andreas Schwab  <schwab@suse.de>
36953
36954         [BZ #16574]
36955         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
36956         Store non-zero if the second buffer was newly allocated.
36957         (send_dg): Likewise.
36958         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
36959         to send_vc and send_dg.
36960         (res_nsend): Pass NULL for ansp2_malloced.
36961         * resolv/res_query.c (__libc_res_nquery): Add parameter
36962         answerp2_malloced and pass it down to __libc_res_nsend.
36963         (res_nquery): Pass additional NULL to __libc_res_nquery.
36964         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
36965         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
36966         second answer buffer if answerp2_malloced was set.
36967         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
36968         (__libc_res_nquerydomain): Add parameter
36969         answerp2_malloced and pass it down to __libc_res_nquery.
36970         (res_nquerydomain): Pass additional NULL to
36971         __libc_res_nquerydomain.
36972         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
36973         additional NULL to __libc_res_nsend and __libc_res_nquery.
36974         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
36975         additional NULL to __libc_res_nsearch.
36976         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
36977         parameter of __libc_res_nsearch to check for separately allocated
36978         second buffer.
36979         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
36980         __libc_res_nquery.
36981         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
36982         additional NULL to __libc_res_nquery.
36983         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
36984         __libc_res_nsearch.
36985         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
36986         * include/resolv.h: Update prototypes of __libc_res_nquery,
36987         __libc_res_nsearch, __libc_res_nsend.
36988
36989 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
36990
36991         * math/auto-libm-test-in: Add tests of fma.
36992         * math/auto-libm-test-out: Regenerated.
36993         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
36994         (fma_towardzero_test_data): Likewise.
36995         (fma_downward_test_data): Likewise.
36996         (fma_upward_test_data): Likewise.
36997         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
36998         mpc_mode.
36999         (rounding_modes): Add values for new field.
37000         (func_calc_method): Add value mpfr_fff_f.
37001         (func_calc_desc): Add mpfr_fff_f union field.
37002         (test_function): Add field exact_args.
37003         (FUNC): Add macro argument EXACT_ARGS.
37004         (FUNC_mpfr_f_f): Update call to FUNC.
37005         (FUNC_mpfr_f_f): Likewise.
37006         (FUNC_mpfr_ff_f): Likewise.
37007         (FUNC_mpfr_if_f): Likewise.
37008         (FUNC_mpc_c_f): Likewise.
37009         (FUNC_mpc_c_c): Likewise.
37010         (test_functions): Add fma.  Update calls to FUNC.
37011         (handle_input_arg): Add argument exact_args.
37012         (add_test): Update call to handle_input_arg.
37013         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
37014         (output_for_one_input_case): Update call to calc_generic_results.
37015         Recalculate exact zero results in each rounding mode.
37016
37017         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
37018         non-negative before setting low bit.
37019         * math/auto-libm-test-in: Mark one asin test possibly having
37020         spurious underflow.
37021         * math/auto-libm-test-out: Regenerated.
37022         * sysdeps/i386/fpu/libm-test-ulps: Update.
37023         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37024
37025 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
37026
37027         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
37028         * sysdeps/unix/sysv/linux/microblaze: Move directory from
37029         ports/sysdeps/unix/sysv/linux/microblaze.
37030         * README: Add missing listing for microblaze*-*-linux-gnu.
37031
37032 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
37033
37034         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
37035         duplicate code
37036
37037 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
37038
37039         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
37040         * sysdeps/unix/sysv/linux/ia64: Move directory from
37041         ports/sysdeps/unix/sysv/linux/ia64.
37042         * README: Update listing for ia64-*-linux-gnu.
37043
37044 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
37045             Joseph Myers  <joseph@codesourcery.com>
37046
37047         * Makeconfig (test-name): New variable.
37048         (evaluate-test): Likewise.
37049         * Makerules (do-test-clean): Remove .test-result files.
37050         (common-mostlyclean): Likewise.
37051         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
37052         * scripts/evaluate-test.sh: New file.
37053
37054 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
37055
37056         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
37057         separate $(objpfx)tst-fopenloc-cmp.out and
37058         $(objpfx)tst-fopenloc-mem.out targets.
37059         (tests): Update dependencies.
37060         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
37061         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
37062         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
37063         (tst-rxspencer-no-utf8-ARGS): New variable.
37064         (tst-rxspencer-no-utf8-ENV): Likewise.
37065         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
37066         instead of $(objpfx)tst-rxspencer-mem.
37067         ($(objpfx)tst-rxspencer-mem): Change target to
37068         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
37069         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
37070         * posix/tst-rxspencer-no-utf8.c: New file.
37071
37072         * elf/Makefile ($(objpfx)order.out): Remove rule.
37073         [$(run-built-tests) = yes] (tests): Depend on
37074         $(objpfx)order-cmp.out.
37075         ($(objpfx)order-cmp.out): New rule.
37076         [$(run-built-tests) = yes] (tests): Depend on
37077         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
37078         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
37079         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
37080         $(objpfx)tst-array5-static-cmp.out.
37081         ($(objpfx)tst-array1.out): Remove rule.
37082         ($(objpfx)tst-array1-cmp.out): New rule.
37083         ($(objpfx)tst-array1-static.out): Remove rule.
37084         ($(objpfx)tst-array1-static-cmp.out): New rule.
37085         ($(objpfx)tst-array2.out): Remove rule.
37086         ($(objpfx)tst-array2-cmp.out): New rule.
37087         ($(objpfx)tst-array3.out): Remove rule.
37088         ($(objpfx)tst-array3-cmp.out): New rule.
37089         ($(objpfx)tst-array4.out): Remove rule.
37090         ($(objpfx)tst-array4-cmp.out): New rule.
37091         ($(objpfx)tst-array5.out): Remove rule.
37092         ($(objpfx)tst-array5-cmp.out): New rule.
37093         ($(objpfx)tst-array5-static.out): Remove rule.
37094         ($(objpfx)tst-array5-static-cmp.out): New rule.
37095         [$(run-built-tests) = yes] (tests): Depend on
37096         $(objpfx)order2-cmp.out.
37097         ($(objpfx)order2.out): Remove rule.
37098         ($(objpfx)order2-cmp.out): New rule.
37099         ($(objpfx)tst-initorder.out): Remove rule.
37100         [$(run-built-tests) = yes] (tests): Depend on
37101         $(objpfx)tst-initorder-cmp.out.
37102         ($(objpfx)tst-initorder-cmp.out): New rule.
37103         ($(objpfx)tst-initorder2.out): Remove rule.
37104         [$(run-built-tests) = yes] (tests): Depend on
37105         $(objpfx)tst-initorder2-cmp.out.
37106         ($(objpfx)tst-initorder2-cmp.out): New rule.
37107         [$(run-built-tests) = yes] (tests): Depend on
37108         $(objpfx)tst-unused-dep-cmp.out.
37109         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
37110         ($(objpfx)tst-unused-dep-cmp.out): New rule.
37111         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
37112         on $(objpfx)tst-setvbuf1-cmp.out.
37113         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
37114         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
37115         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
37116         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
37117         ($(objpfx)tst-svc.out): Remove rule.
37118         ($(objpfx)tst-svc-cmp.out): New rule.
37119
37120 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
37121
37122         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
37123         * ctype/ctype.h [__USE_MISC]: Likewise.
37124         * dirent/dirent.h [__USE_MISC]: Likewise.
37125         * grp/grp.h [__USE_MISC]: Likewise.
37126         * io/fcntl.h [__USE_MISC]: Likewise.
37127         * io/sys/stat.h [__USE_MISC]: Likewise.
37128         * libio/stdio.h [__USE_MISC]: Likewise.
37129         * posix/unistd.h [__USE_MISC]: Likewise.
37130         * pwd/pwd.h [__USE_MISC]: Likewise.
37131         * stdlib.h [__USE_MISC]: Likewise.
37132         * string/bits/string2.h [__USE_MISC]: Likewise.
37133         * string/string.h [__USE_MISC]: Likewise.
37134         * time/time.h [__USE_MISC]: Likewise.
37135
37136 2014-02-13  Andreas Schwab  <schwab@suse.de>
37137
37138         [BZ #16574]
37139         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
37140         second answer buffer if it was separately allocated.
37141
37142 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
37143
37144         * sysdeps/mips/math-tests.h: Include <features.h>.
37145         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37146         (ROUNDING_TESTS_long_double): Do not define.
37147         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37148         (EXCEPTION_TESTS_long_double): Likewise.
37149         * sysdeps/mips/mips64/libm-test-ulps: Update.
37150
37151         * include/features.h (__USE_BSD): Remove macro definitions.
37152         (__USE_SVID): Likewise.
37153         (_BSD_SOURCE): Likewise.
37154         (_SVID_SOURCE): Likewise.
37155         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
37156         from definition of _DEFAULT_SOURCE.
37157         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
37158         [_DEFAULT_SOURCE].
37159         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
37160         * bits/mman.h [__USE_BSD]: Likewise.
37161         * bits/termios.h [__USE_BSD]: Likewise.
37162         * bits/waitstatus.h [__USE_BSD]: Likewise.
37163         * ctype/ctype.h [__USE_SVID]: Likewise.
37164         * dirent/dirent.h [__USE_BSD]: Likewise.
37165         * grp/grp.h [__USE_SVID]: Likewise.
37166         [__USE_BSD]: Likewise.
37167         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
37168         * io/fcntl.h [__USE_BSD]: Likewise.
37169         * io/ftw.h [__USE_BSD]: Likewise.
37170         * io/sys/stat.h [__USE_BSD]: Likewise.
37171         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
37172         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
37173         * libio/stdio.h [__USE_SVID]: Likewise.
37174         [__USE_BSD]: Likewise.
37175         * math/math.h [__USE_SVID]: Likewise.
37176         [__USE_BSD]: Likewise.
37177         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
37178         * misc/bits/syslog.h [__USE_BSD]: Likewise.
37179         * misc/search.h [__USE_SVID]: Likewise.
37180         * misc/sys/mman.h [__USE_BSD]: Likewise.
37181         * misc/sys/syslog.h [__USE_BSD]: Likewise.
37182         * misc/sys/uio.h [__USE_BSD]: Likewise.
37183         * posix/bits/unistd.h [__USE_BSD]: Likewise.
37184         * posix/glob.h [__USE_BSD]: Likewise.
37185         * posix/regex.h [__USE_BSD]: Likewise.
37186         * posix/sys/types.h [__USE_BSD]: Likewise.
37187         [__USE_SVID]: Likewise.
37188         * posix/sys/utsname.h [__USE_SVID]: Likewise.
37189         * posix/sys/wait.h [__USE_BSD]: Likewise.
37190         [__USE_SVID]: Likewise.
37191         * posix/unistd.h [__USE_BSD]: Likewise.
37192         [__USE_SVID]: Likewise.
37193         * pwd/pwd.h [__USE_SVID]: Likewise.
37194         * resolv/netdb.h [__USE_BSD]: Likewise.
37195         * setjmp/setjmp.h [__USE_BSD]: Likewise.
37196         * signal/signal.h [__USE_BSD]: Likewise.
37197         [__USE_SVID]: Likewise.
37198         * socket/sys/socket.h [__USE_BSD]: Likewise.
37199         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
37200         * stdlib/stdlib.h [__USE_BSD]: Likewise.
37201         [__USE_SVID]: Likewise.
37202         * string/bits/string2.h [__USE_BSD]: Likewise.
37203         [__USE_SVID]: Likewise.
37204         * string/bits/string3.h [__USE_BSD]: Likewise.
37205         * string/endian.h [__USE_BSD]: Likewise.
37206         * string/string.h [__USE_SVID]: Likewise.
37207         [__USE_BSD]: Likewise.
37208         * string/strings.h [__USE_BSD]: Likewise.
37209         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
37210         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
37211         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
37212         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
37213         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
37214         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
37215         Likewise.
37216         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
37217         Likewise.
37218         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
37219         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
37220         Likewise.
37221         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
37222         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
37223         Likewise.
37224         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
37225         Likewise.
37226         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
37227         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
37228         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
37229         Likewise.
37230         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
37231         Likewise.
37232         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
37233         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
37234         * termios/termios.h [__USE_BSD]: Likewise.
37235         * time/sys/time.h [__USE_BSD]: Likewise.
37236         * time/time.h [__USE_BSD]: Likewise.
37237         [__USE_SVID]: Likewise.
37238
37239         * Makefile (subdir_targets): Remove subdir_lint.out.
37240
37241         * stdio-common/Makefile (do-tst-unbputc): Remove target.
37242         (do-tst-printf): Likewise.
37243         (tests): Depend directly on $(objpfx)tst-unbputc.out and
37244         $(objpfx)tst-printf.out.
37245
37246         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
37247
37248         * Makerules (check-abi-%): Change target to
37249         $(objpfx)check-abi-%.out.
37250         (check-abi target): Update dependencies.
37251         (check-abi-pattern variable): Redirect output of diff to $@.
37252         (check-abi variable): Likewise.
37253         * elf/Makefile (check-abi): Update dependencies.
37254
37255         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
37256         unused.
37257         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
37258         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
37259         subnormal range.
37260         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
37261         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
37262         value has largest subnormal exponent.
37263         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
37264         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
37265         * sysdeps/aarch64/soft-fp/sfp-machine.h
37266         (_FP_TININESS_AFTER_ROUNDING): New macro.
37267         * sysdeps/alpha/soft-fp/sfp-machine.h
37268         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37269         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37270         Likewise.
37271         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
37272         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37273         * sysdeps/mips/soft-fp/sfp-machine.h
37274         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37275         * sysdeps/powerpc/soft-fp/sfp-machine.h
37276         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37277         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37278         Likewise.
37279         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
37280         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37281         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
37282         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37283         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37284         Likewise.
37285
37286 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
37287
37288         [BZ #16545]
37289         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
37290         model 1.
37291
37292 2014-02-12  Richard Henderson  <rth@redhat.com>
37293
37294         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
37295         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
37296         * sysdeps/unix/sysv/linux/alpha: Move directory from
37297         ports/sysdeps/unix/sysv/linux/alpha.
37298         * README: Update listing for alpha-*-linux-gnu.
37299
37300 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
37301
37302         * include/features.h: Update comment documenting feature test
37303         macros.
37304         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
37305         _DEFAULT_SOURCE.
37306         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
37307         (_SVID_SOURCE): Likewise.
37308         (_DEFAULT_SOURCE): Update description of default features.
37309         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
37310         with _GNU_SOURCE.
37311         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
37312         (S_ISVTX): Likewise.
37313         * manual/math.texi (Mathematical Constants): Likewise.
37314         * manual/signal.texi (Interrupted Primitives): Likewise.
37315         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
37316         * math/test-matherr.c (_SVID_SOURCE): Do not define.
37317         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
37318         Don't refer to _SVID_SOURCE in warning text.
37319
37320         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
37321
37322         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
37323         already defined.
37324         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
37325         * sysdeps/mips/dl-lookup.c: Remove.
37326         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
37327
37328 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
37329
37330         [BZ #16447]
37331         * math/auto-libm-test-in: Add testcase for expl.
37332         * math/auto-libm-test-out: Regenerate.
37333         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
37334         calculation of unsafe.
37335         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
37336
37337 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
37338
37339         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
37340         * sysdeps/unix/sysv/linux/aarch64: Move directory from
37341         ports/sysdeps/unix/sysv/linux/aarch64.
37342         * README: Update listing for aarch64*-*-linux-gnu.
37343
37344 2014-02-11  Will Newton  <will.newton@linaro.org>
37345
37346         * manual/probes.texi (Mathematical Function Probes): Use
37347         "triggered" instead of "hit".
37348
37349         * manual/probes.texi (Internal Probes): Add documentation
37350         of setjmp, longjmp and longjmp_target probes.
37351
37352         * include/stap-probe.h: Add comment about probe argument
37353         format.
37354
37355         * malloc/mtrace.c (attribute_hidden): Remove unused macro
37356         definition.  (tr_where, tr_freehook, tr_mallochook,
37357         tr_reallochook, tr_memalignhook): Use ANSI protoype.
37358
37359 2014-02-11  David S. Miller  <davem@davemloft.net>
37360
37361         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
37362         processing int_tests.
37363
37364 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
37365
37366         * sysdeps/mips: Move directory from ports/sysdeps/mips.
37367         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
37368         * sysdeps/unix/sysv/linux/mips: Move directory from
37369         ports/sysdeps/unix/sysv/linux/mips.
37370         * README: Update listing for mips-*-linux-gnu and
37371         mips64-*-linux-gnu.
37372
37373 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
37374
37375         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
37376         * sysdeps/unix/sysv/linux/m68k: Move directory from
37377         ports/sysdeps/unix/sysv/linux/m68k.
37378         * README: Update listing for m68k-*-linux-gnu.
37379
37380 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
37381
37382         * sysdeps/tile: Move directory from ports/sysdeps/tile.
37383         * sysdeps/unix/sysv/linux/generic: Move directory from
37384         ports/sysdeps/unix/sysv/linux/generic.
37385         * sysdeps/unix/sysv/linux/tile: Move directory from
37386         ports/sysdeps/unix/sysv/linux/tile.
37387         * README: Update listing for tile*-*-linux-gnu.
37388
37389 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
37390
37391         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
37392         __builtin_expect.
37393         * benchtests/bench-memmem.c (simple_memmem): Likewise.
37394         * catgets/open_catalog.c (__open_catalog): Likewise.
37395         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
37396         * debug/confstr_chk.c: Likewise.
37397         * debug/fread_chk.c (__fread_chk): Likewise.
37398         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
37399         * debug/getgroups_chk.c: Likewise.
37400         * debug/mbsnrtowcs_chk.c: Likewise.
37401         * debug/mbsrtowcs_chk.c: Likewise.
37402         * debug/mbstowcs_chk.c: Likewise.
37403         * debug/memcpy_chk.c: Likewise.
37404         * debug/memmove_chk.c: Likewise.
37405         * debug/mempcpy_chk.c: Likewise.
37406         * debug/memset_chk.c: Likewise.
37407         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
37408         * debug/strcat_chk.c (__strcat_chk): Likewise.
37409         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
37410         * debug/strncat_chk.c (__strncat_chk): Likewise.
37411         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
37412         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
37413         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
37414         * debug/wcpncpy_chk.c: Likewise.
37415         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
37416         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
37417         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
37418         * debug/wcsncpy_chk.c: Likewise.
37419         * debug/wcsnrtombs_chk.c: Likewise.
37420         * debug/wcsrtombs_chk.c: Likewise.
37421         * debug/wcstombs_chk.c: Likewise.
37422         * debug/wmemcpy_chk.c: Likewise.
37423         * debug/wmemmove_chk.c: Likewise.
37424         * debug/wmempcpy_chk.c: Likewise.
37425         * debug/wmemset_chk.c: Likewise.
37426         * dirent/scandirat.c (SCANDIRAT): Likewise.
37427         * dlfcn/dladdr1.c (dladdr1): Likewise.
37428         * dlfcn/dladdr.c (dladdr): Likewise.
37429         * dlfcn/dlclose.c (dlclose_doit): Likewise.
37430         * dlfcn/dlerror.c (__dlerror): Likewise.
37431         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
37432         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
37433         * dlfcn/dlopen.c (dlopen_doit): Likewise.
37434         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
37435         * dlfcn/dlsym.c (dlsym_doit): Likewise.
37436         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
37437         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
37438         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
37439         Likewise.
37440         * elf/dl-conflict.c: Likewise.
37441         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
37442         * elf/dl-dst.h: Likewise.
37443         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
37444         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
37445         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
37446         * elf/dl-init.c (call_init, _dl_init): Likewise.
37447         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
37448         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
37449         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
37450         Likewise.
37451         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
37452         Likewise.
37453         * elf/dl-minimal.c (__libc_memalign): Likewise.
37454         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
37455         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
37456         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
37457         * elf/dl-sym.c (do_sym): Likewise.
37458         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
37459         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
37460         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
37461         * elf/dl-writev.h (_dl_writev): Likewise.
37462         * elf/ldconfig.c (search_dir): Likewise.
37463         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
37464         (dl_main): Likewise.
37465         * elf/setup-vdso.h (setup_vdso): Likewise.
37466         * grp/compat-initgroups.c (compat_call): Likewise.
37467         * grp/fgetgrent.c (fgetgrent): Likewise.
37468         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
37469         * grp/putgrent.c (putgrent): Likewise.
37470         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
37471         Likewise.
37472         * hurd/hurdinit.c: Likewise.
37473         * iconvdata/8bit-gap.c (struct): Likewise.
37474         * iconvdata/ansi_x3.110.c : Likewise.
37475         * iconvdata/big5.c : Likewise.
37476         * iconvdata/big5hkscs.c : Likewise.
37477         * iconvdata/cp1255.c: Likewise.
37478         * iconvdata/cp1258.c : Likewise.
37479         * iconvdata/cp932.c : Likewise.
37480         * iconvdata/euc-cn.c: Likewise.
37481         * iconvdata/euc-jisx0213.c : Likewise.
37482         * iconvdata/euc-jp.c: Likewise.
37483         * iconvdata/euc-jp-ms.c : Likewise.
37484         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
37485         * iconvdata/gb18030.c : Likewise.
37486         * iconvdata/gbbig5.c (const): Likewise.
37487         * iconvdata/gbgbk.c: Likewise.
37488         * iconvdata/gbk.c : Likewise.
37489         * iconvdata/ibm1364.c : Likewise.
37490         * iconvdata/ibm930.c : Likewise.
37491         * iconvdata/ibm932.c: Likewise.
37492         * iconvdata/ibm933.c : Likewise.
37493         * iconvdata/ibm935.c : Likewise.
37494         * iconvdata/ibm937.c : Likewise.
37495         * iconvdata/ibm939.c : Likewise.
37496         * iconvdata/ibm943.c: Likewise.
37497         * iconvdata/iso_11548-1.c: Likewise.
37498         * iconvdata/iso-2022-cn.c : Likewise.
37499         * iconvdata/iso-2022-cn-ext.c : Likewise.
37500         * iconvdata/iso-2022-jp-3.c: Likewise.
37501         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
37502         * iconvdata/iso-2022-kr.c : Likewise.
37503         * iconvdata/iso646.c (gconv_end): Likewise.
37504         * iconvdata/iso_6937-2.c : Likewise.
37505         * iconvdata/iso_6937.c : Likewise.
37506         * iconvdata/iso8859-1.c: Likewise.
37507         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
37508         * iconvdata/shift_jisx0213.c : Likewise.
37509         * iconvdata/sjis.c : Likewise.
37510         * iconvdata/t.61.c : Likewise.
37511         * iconvdata/tcvn5712-1.c : Likewise.
37512         * iconvdata/tscii.c: Likewise.
37513         * iconvdata/uhc.c : Likewise.
37514         * iconvdata/unicode.c (gconv_end): Likewise.
37515         * iconvdata/utf-16.c (gconv_end): Likewise.
37516         * iconvdata/utf-32.c (gconv_end): Likewise.
37517         * iconvdata/utf-7.c (base64): Likewise.
37518         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
37519         * iconv/gconv_close.c (__gconv_close): Likewise.
37520         * iconv/gconv_open.c (__gconv_open): Likewise.
37521         * iconv/gconv_simple.c (internal_ucs4_loop_single)
37522         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
37523         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
37524         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
37525         (ucs4le_internal_loop_single): Likewise.
37526         * iconv/iconv.c (iconv): Likewise.
37527         * iconv/iconv_close.c: Likewise.
37528         * iconv/loop.c (SINGLE): Likewise.
37529         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
37530         * include/atomic.h: Likewise.
37531         * inet/inet6_option.c (option_alloc): Likewise.
37532         * intl/bindtextdom.c (set_binding_values): Likewise.
37533         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
37534         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
37535         * intl/localealias.c (read_alias_file): Likewise.
37536         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
37537         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
37538         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
37539         * libio/fmemopen.c (fmemopen): Likewise.
37540         * libio/iofgets.c (_IO_fgets): Likewise.
37541         * libio/iofgets_u.c (fgets_unlocked): Likewise.
37542         * libio/iofgetws.c (fgetws): Likewise.
37543         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
37544         * libio/iogetdelim.c (_IO_getdelim): Likewise.
37545         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
37546         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
37547         * locale/findlocale.c (_nl_find_locale): Likewise.
37548         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
37549         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
37550         Likewise.
37551         * locale/setlocale.c (setlocale): Likewise.
37552         * login/programs/pt_chown.c (main): Likewise.
37553         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
37554         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
37555         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
37556         (mmap, mmap64, mremap, munmap): Likewise.
37557         * math/e_exp2l.c: Likewise.
37558         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
37559         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
37560         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
37561         * math/s_catan.c (__catan): Likewise.
37562         * math/s_catanf.c (__catanf): Likewise.
37563         * math/s_catanh.c (__catanh): Likewise.
37564         * math/s_catanhf.c (__catanhf): Likewise.
37565         * math/s_catanhl.c (__catanhl): Likewise.
37566         * math/s_catanl.c (__catanl): Likewise.
37567         * math/s_ccosh.c (__ccosh): Likewise.
37568         * math/s_ccoshf.c (__ccoshf): Likewise.
37569         * math/s_ccoshl.c (__ccoshl): Likewise.
37570         * math/s_cexp.c (__cexp): Likewise.
37571         * math/s_cexpf.c (__cexpf): Likewise.
37572         * math/s_cexpl.c (__cexpl): Likewise.
37573         * math/s_clog10.c (__clog10): Likewise.
37574         * math/s_clog10f.c (__clog10f): Likewise.
37575         * math/s_clog10l.c (__clog10l): Likewise.
37576         * math/s_clog.c (__clog): Likewise.
37577         * math/s_clogf.c (__clogf): Likewise.
37578         * math/s_clogl.c (__clogl): Likewise.
37579         * math/s_csin.c (__csin): Likewise.
37580         * math/s_csinf.c (__csinf): Likewise.
37581         * math/s_csinh.c (__csinh): Likewise.
37582         * math/s_csinhf.c (__csinhf): Likewise.
37583         * math/s_csinhl.c (__csinhl): Likewise.
37584         * math/s_csinl.c (__csinl): Likewise.
37585         * math/s_csqrt.c (__csqrt): Likewise.
37586         * math/s_csqrtf.c (__csqrtf): Likewise.
37587         * math/s_csqrtl.c (__csqrtl): Likewise.
37588         * math/s_ctan.c (__ctan): Likewise.
37589         * math/s_ctanf.c (__ctanf): Likewise.
37590         * math/s_ctanh.c (__ctanh): Likewise.
37591         * math/s_ctanhf.c (__ctanhf): Likewise.
37592         * math/s_ctanhl.c (__ctanhl): Likewise.
37593         * math/s_ctanl.c (__ctanl): Likewise.
37594         * math/w_pow.c: Likewise.
37595         * math/w_powf.c: Likewise.
37596         * math/w_powl.c: Likewise.
37597         * math/w_scalb.c (sysv_scalb): Likewise.
37598         * math/w_scalbf.c (sysv_scalbf): Likewise.
37599         * math/w_scalbl.c (sysv_scalbl): Likewise.
37600         * misc/error.c (error_tail): Likewise.
37601         * misc/pselect.c (__pselect): Likewise.
37602         * nis/nis_callback.c (__nis_create_callback): Likewise.
37603         * nis/nis_call.c (__nisfind_server): Likewise.
37604         * nis/nis_creategroup.c (nis_creategroup): Likewise.
37605         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
37606         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
37607         * nis/nis_getservlist.c (nis_getservlist): Likewise.
37608         * nis/nis_lookup.c (nis_lookup): Likewise.
37609         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
37610         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
37611         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
37612         * nis/nis_xdr.c (xdr_endpoint): Likewise.
37613         * nis/nss_compat/compat-grp.c (getgrent_next_file)
37614         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
37615         * nis/nss_compat/compat-initgroups.c (add_group)
37616         (internal_getgrent_r): Likewise.
37617         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
37618         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
37619         * nis/nss_compat/compat-spwd.c (getspent_next_file)
37620         (internal_getspnam_r): Likewise.
37621         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
37622         (_nss_nis_getaliasbyname_r): Likewise.
37623         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
37624         (_nss_nis_getntohost_r): Likewise.
37625         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
37626         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
37627         (_nss_nis_getgrgid_r): Likewise.
37628         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
37629         (internal_nis_gethostent_r, internal_gethostbyname2_r)
37630         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
37631         (_nss_nis_gethostbyname4_r): Likewise.
37632         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
37633         (initgroups_netid): Likewise.
37634         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
37635         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
37636         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
37637         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
37638         (_nss_nis_getprotobynumber_r): Likewise.
37639         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
37640         (_nss_nis_getsecretkey): Likewise.
37641         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
37642         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
37643         (_nss_nis_getpwuid_r): Likewise.
37644         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
37645         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
37646         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
37647         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
37648         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
37649         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
37650         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
37651         Likewise.
37652         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
37653         (_nss_nisplus_getntohost_r): Likewise.
37654         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
37655         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
37656         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
37657         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
37658         Likewise.
37659         * nis/nss_nisplus/nisplus-initgroups.c
37660         (_nss_nisplus_initgroups_dyn): Likewise.
37661         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
37662         (_nss_nisplus_getnetbyaddr_r): Likewise.
37663         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
37664         (_nss_nisplus_getprotobynumber_r): Likewise.
37665         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
37666         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
37667         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
37668         Likewise.
37669         * nis/nss_nisplus/nisplus-service.c
37670         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
37671         (_nss_nisplus_getservbyport_r): Likewise.
37672         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
37673         (_nss_nisplus_getspnam_r): Likewise.
37674         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
37675         Likewise.
37676         * nscd/aicache.c (addhstaiX): Likewise.
37677         * nscd/cache.c (cache_search, prune_cache): Likewise.
37678         * nscd/connections.c (register_traced_file, send_ro_fd)
37679         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
37680         (main_loop_epoll): Likewise.
37681         * nscd/grpcache.c (addgrbyX): Likewise.
37682         * nscd/hstcache.c (addhstbyX): Likewise.
37683         * nscd/initgrcache.c (addinitgroupsX): Likewise.
37684         * nscd/mem.c (gc, mempool_alloc): Likewise.
37685         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
37686         (addinnetgrX): Likewise.
37687         * nscd/nscd-client.h (__nscd_acquire_maplock)
37688         (__nscd_drop_map_ref): Likewise.
37689         * nscd/nscd_getai.c (__nscd_getai): Likewise.
37690         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
37691         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
37692         Likewise.
37693         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
37694         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
37695         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
37696         (__nscd_get_map_ref): Likewise.
37697         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
37698         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
37699         Likewise.
37700         * nscd/pwdcache.c (addpwbyX): Likewise.
37701         * nscd/selinux.c (preserve_capabilities): Likewise.
37702         * nscd/servicescache.c (addservbyX): Likewise.
37703         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
37704         * posix/fnmatch.c (fnmatch): Likewise.
37705         * posix/getopt.c (_getopt_internal_r): Likewise.
37706         * posix/glob.c (glob, glob_in_dir): Likewise.
37707         * posix/wordexp.c (exec_comm_child): Likewise.
37708         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
37709         (getanswer_r, gaih_getanswer_slice): Likewise.
37710         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
37711         * resolv/res_init.c: Likewise.
37712         * resolv/res_mkquery.c (res_nmkquery): Likewise.
37713         * resolv/res_query.c (__libc_res_nquery): Likewise.
37714         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
37715         Likewise.
37716         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
37717         * stdio-common/perror.c (perror): Likewise.
37718         * stdio-common/printf_fp.c (___printf_fp): Likewise.
37719         * stdio-common/tmpnam.c (tmpnam): Likewise.
37720         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
37721         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
37722         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
37723         Likewise.
37724         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
37725         * stdlib/putenv.c (putenv): Likewise.
37726         * stdlib/setenv.c (__add_to_environ): Likewise.
37727         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
37728         * stdlib/strtol_l.c (INTERNAL): Likewise.
37729         * string/memmem.c (memmem): Likewise.
37730         * string/strerror.c (strerror): Likewise.
37731         * string/strnlen.c (__strnlen): Likewise.
37732         * string/test-memmem.c (simple_memmem): Likewise.
37733         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
37734         * sunrpc/pm_getport.c (__get_socket): Likewise.
37735         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
37736         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
37737         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
37738         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
37739         Likewise.
37740         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
37741         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
37742         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
37743         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
37744         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
37745         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
37746         Likewise.
37747         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
37748         Likewise.
37749         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
37750         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
37751         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
37752         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
37753         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
37754         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
37755         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
37756         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
37757         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
37758         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
37759         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
37760         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
37761         Likewise.
37762         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
37763         Likewise.
37764         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
37765         Likewise.
37766         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
37767         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
37768         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
37769         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
37770         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
37771         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
37772         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
37773         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
37774         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
37775         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
37776         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
37777         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
37778         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
37779         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
37780         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
37781         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
37782         Likewise.
37783         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
37784         Likewise.
37785         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
37786         Likewise.
37787         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
37788         Likewise.
37789         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
37790         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
37791         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
37792         Likewise.
37793         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
37794         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
37795         * sysdeps/posix/opendir.c (__opendirat): Likewise.
37796         * sysdeps/posix/sleep.c: Likewise.
37797         * sysdeps/posix/tempname.c: Likewise.
37798         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
37799         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
37800         Likewise.
37801         * sysdeps/powerpc/powerpc32/dl-machine.h
37802         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
37803         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
37804         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
37805         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
37806         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
37807         Likewise.
37808         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
37809         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
37810         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
37811         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
37812         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
37813         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
37814         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
37815         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
37816         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
37817         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
37818         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
37819         (elf_machine_lazy_rel): Likewise.
37820         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
37821         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
37822         (elf_machine_lazy_rel): Likewise.
37823         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
37824         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
37825         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
37826         * sysdeps/unix/grantpt.c (grantpt): Likewise.
37827         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
37828         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
37829         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
37830         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
37831         Likewise.
37832         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
37833         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
37834         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
37835         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
37836         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
37837         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
37838         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
37839         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
37840         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
37841         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
37842         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
37843         Likewise.
37844         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
37845         (__posix_fallocate64_l64): Likewise.
37846         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
37847         (posix_fallocate): Likewise.
37848         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
37849         Likewise.
37850         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
37851         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
37852         (getifaddrs_internal): Likewise.
37853         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
37854         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
37855         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
37856         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
37857         * sysdeps/unix/sysv/linux/posix_fallocate64.c
37858         (__posix_fallocate64_l64): Likewise.
37859         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
37860         Likewise.
37861         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
37862         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
37863         (__get_clockfreq): Likewise.
37864         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
37865         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
37866         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
37867         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
37868         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
37869         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
37870         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
37871         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
37872         Likewise.
37873         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
37874         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
37875         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
37876         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
37877         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
37878         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
37879         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
37880         Likewise.
37881         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
37882         (posix_fallocate): Likewise.
37883         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
37884         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
37885         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
37886         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
37887         (elf_machine_rela, elf_machine_rela_relative)
37888         (elf_machine_lazy_rel): Likewise.
37889         * time/asctime.c (asctime_internal): Likewise.
37890         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
37891         * time/tzset.c (__tzset_parse_tz): Likewise.
37892         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
37893         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
37894         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
37895         * wcsmbs/wcsmbsload.h: Likewise.
37896
37897         [BZ #15894]
37898         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
37899
37900         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
37901         (arena_get2): Remove THREAD_STATS conditionals.
37902         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
37903         (__malloc_stats, int): Likewise.
37904
37905 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
37906
37907         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
37908         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
37909
37910         * manual/setjmp.texi: Fix typos/grammar errors.
37911
37912         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
37913         Only return early when n is <= 0.  Delete unused return statement.
37914
37915         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
37916         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
37917         * debug/tst-longjmp_chk3.c: New file.
37918
37919         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
37920         (test_main): Replace code with set_fortify_handler call.
37921         * debug/test-strcpy_chk.c: Likewise.
37922         * debug/tst-chk1.c: Likewise.
37923         * debug/tst-longjmp_chk.c: Likewise.
37924         * test-skeleton.c: Include fcntl.h & paths.h
37925         (set_fortify_handler): Define.
37926
37927         * debug/tst-longjmp_chk.c: Add header comment and include
37928         ../test-skeleton.c.
37929         (do_test): Mark static.
37930         (TEST_FUNCTION): Define.
37931
37932         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
37933         (IP_PMTUDISC_INTERFACE): Likewise.
37934         (IP_MULTICAST_IF): Likewise.
37935         (IP_MULTICAST_TTL): Likewise.
37936         (IP_MULTICAST_LOOP): Likewise.
37937         (IP_ADD_MEMBERSHIP): Likewise.
37938         (IP_DROP_MEMBERSHIP): Likewise.
37939         (IP_UNBLOCK_SOURCE): Likewise.
37940         (IP_BLOCK_SOURCE): Likewise.
37941         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
37942         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
37943         (IP_MSFILTER): Likewise.
37944         (MCAST_JOIN_GROUP): Likewise.
37945         (MCAST_BLOCK_SOURCE): Likewise.
37946         (MCAST_UNBLOCK_SOURCE): Likewise.
37947         (MCAST_LEAVE_GROUP): Likewise.
37948         (MCAST_JOIN_SOURCE_GROUP): Likewise.
37949         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
37950         (MCAST_MSFILTER): Likewise.
37951         (IP_MULTICAST_ALL): Likewise.
37952         (IP_UNICAST_IF): Likewise.
37953
37954         * timezone/Makefile: Delete $(have-ksh) check.
37955         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
37956         * timezone/tzselect.ksh: Add +x mode bits.
37957
37958         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
37959         (ANON_INODE_FS_MAGIC): Likewise.
37960         (BDEVFS_MAGIC): Likewise.
37961         (BINFMTFS_MAGIC): Likewise.
37962         (BTRFS_TEST_MAGIC): Likewise.
37963         (CRAMFS_MAGIC_WEND): Likewise.
37964         (DEBUGFS_MAGIC): Likewise.
37965         (ECRYPTFS_SUPER_MAGIC): Likewise.
37966         (EXT3_SUPER_MAGIC): Likewise.
37967         (EXT4_SUPER_MAGIC): Likewise.
37968         (FUTEXFS_SUPER_MAGIC): Likewise.
37969         (HOSTFS_SUPER_MAGIC): Likewise.
37970         (HUGETLBFS_MAGIC): Likewise.
37971         (MINIX3_SUPER_MAGIC): Likewise.
37972         (MTD_INODE_FS_MAGIC): Likewise.
37973         (NILFS_SUPER_MAGIC): Likewise.
37974         (OPENPROM_SUPER_MAGIC): Likewise.
37975         (PIPEFS_MAGIC): Likewise.
37976         (PSTOREFS_MAGIC): Likewise.
37977         (QNX6_SUPER_MAGIC): Likewise.
37978         (RAMFS_MAGIC): Likewise.
37979         (REISERFS_SUPER_MAGIC_STRING): Likewise.
37980         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
37981         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
37982         (SECURITYFS_MAGIC): Likewise.
37983         (SELINUX_MAGIC): Likewise.
37984         (SMACK_MAGIC): Likewise.
37985         (SOCKFS_MAGIC): Likewise.
37986         (SQUASHFS_MAGIC): Likewise.
37987         (STACK_END_MAGIC): Likewise.
37988         (TMPFS_MAGIC): Likewise.
37989         (USBDEVICE_SUPER_MAGIC): Likewise.
37990         (V9FS_MAGIC): Likewise.
37991         (XENFS_SUPER_MAGIC): Likewise.
37992         (CRAMFS_MAGIC): Fix typo in comment.
37993         (EXT2_SUPER_MAGIC): Update comment.
37994         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
37995
37996 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
37997
37998         * sysdeps/arm: Move directory from ports/sysdeps/arm.
37999         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
38000         * sysdeps/unix/sysv/linux/arm: Move directory from
38001         ports/sysdeps/unix/sysv/linux/arm.
38002         * README: Update listing for arm-*-linux-gnueabi.
38003
38004         * README: Remove mention of am33.
38005
38006 2014-02-07  Roland McGrath  <roland@hack.frob.com>
38007
38008         * bits/sigset.h (__sigemptyset): Use a statement expression rather
38009         than the comma operator, to avoid "rhs of comma has no effect"
38010         compiler warnings.
38011         (__sigfillset, __sigandset, __sigorset): Likewise.
38012         * include/signal.h (__sigemptyset): Likewise.
38013         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
38014
38015 2014-02-07  Allan McRae  <allan@archlinux.org>
38016
38017         * version.h (RELEASE): Set to "development".
38018         (VERSION): Set to "2.19.90"
38019         * NEWS: Add 2.20 section.
38020
38021 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
38022
38023         [BZ #16529]
38024         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
38025
38026 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
38027
38028         * manual/contrib.texi: Update entry for Carlos O'Donell,
38029         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
38030
38031 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
38032
38033         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
38034
38035         * sysdeps/unix/sysv/linux/kernel-features.h
38036         [__LINUX_KERNEL_VERSION >= 0x020621]
38037         (__ASSUME_PROC_PID_TASK_COMM): Define.
38038
38039 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
38040
38041         [BZ #16398]
38042         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
38043         conversion when destination buffer does not have enough space.
38044         * libio/tst-ftell-partial-wide.c: New test case.
38045         * libio/Makefile (tests): Add tst-ftell-partial-wide.
38046
38047         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
38048         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
38049         Leonard and Allan McRae.
38050
38051 2014-02-04  David S. Miller  <davem@davemloft.net>
38052
38053         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
38054         32-bit.
38055
38056 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38057
38058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
38059         New file
38060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
38061         New file
38062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
38063         New file.
38064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
38065         New file.
38066         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
38067         New file.
38068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
38069         New file.
38070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
38071         New file.
38072         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
38073         New file.
38074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
38075         New file.
38076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
38077         New file.
38078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
38079         New file.
38080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
38081         New file.
38082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
38083         New file.
38084
38085 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38086
38087         * nptl/shlib-versions: Change powerpc*le start to 2.17.
38088         * shlib-versions: Likewise.
38089
38090 2014-02-04  Roland McGrath  <roland@hack.frob.com>
38091             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38092
38093         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
38094         (abilist-pattern): New variable, set to %-le.abilist.
38095
38096         * Makerules (abilist-pattern): New variable.
38097         (vpath): Use $(abilist-pattern) in place of %.abilist.
38098         (check-abi-% pattern rule): Likewise.
38099         (check-abi, update-abi): Likewise.
38100
38101 2014-02-04  Eric Wong  <normalperson@yhbt.net>
38102
38103         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38104
38105 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
38106
38107         * manual/startup.texi: Add next, previous, and top entries for
38108         the `Program Arguments' and `Environment Variables' nodes.
38109
38110 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
38111
38112         * manual/macros.texi: Add comments before MTASC-safety macros.
38113
38114         * manual/users.texi: Document MTASC-safety properties.
38115
38116         * manual/threads.texi (pthread_key_create, pthread_key_delete)
38117         (pthread_getspecific, pthread_setspecific): Format with
38118         @deftypefun, and add @safety note.
38119         * manual/signal.texi: Move comments that analyze the above
38120         functions to their home place.
38121
38122 2014-02-03  Allan McRae  <allan@archlinux.org>
38123
38124         * po/sl.po: Update Slovenian translation from translation project.
38125
38126 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
38127
38128         * manual/time.texi (timegm): Add missing blank after @c.
38129         Reported by Joseph Myers <joseph@codesourcery.com>.
38130
38131 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
38132
38133         * manual/check-safety.sh: New.
38134         * manual/Makefile ($(objpfx)stamp-summary): Run it.
38135
38136         * manual/terminal.texi: Document MTASC-safety properties.
38137
38138         * manual/filesys.texi: Document MTASC-safety properties.
38139
38140         * manual/errno.texi: Document MTASC-safety properties.
38141
38142         * manual/intro.texi: Document safety identifiers and
38143         conditionals.
38144
38145         * manual/string.texi (wcstok): Fix prototype.
38146         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
38147
38148         * manual/time.texi: Document MTASC-safety properties.
38149
38150         * manual/string.texi: Document MTASC-safety properties.
38151
38152         * manual/threads.texi: Document MTASC-safety properties.
38153
38154         * manual/stdio.texi: Document MTASC-safety properties.
38155
38156         * manual/syslog.texi: Document MTASC-safety properties.
38157
38158         * manual/sysinfo.texi: Document MTASC-safety properties.
38159
38160         * manual/startup.texi: Document MTASC-safety properties.
38161
38162         * manual/socket.texi: Document MTASC-safety properties.
38163
38164         * manual/signal.texi: Document MTASC-safety properties.
38165
38166 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
38167
38168         * manual/setjmp.texi: Document MTASC-safety properties.
38169
38170         * manual/search.texi: Document MTASC-safety properties.
38171
38172         * manual/resource.texi: Document MTASC-safety properties.
38173
38174         * manual/process.texi: Document MTASC-safety properties.
38175
38176         * manual/platform.texi: Document MTASC-safety properties.
38177
38178         * manual/pipe.texi: Document MTASC-safety properties.
38179
38180         * manual/pattern.texi: Document MTASC-safety properties.
38181
38182         * manual/message.texi: Document MTASC-safety properties.
38183
38184         [BZ #12751]
38185         * manual/memory.texi: Document MTASC-safety properties.
38186
38187         * manual/math.texi: Document MTASC-safety properties.
38188
38189         * manual/locale.texi: Document MTASC-safety properties.
38190
38191         * manual/llio.texi: Document MTASC-safety properties.
38192
38193         * manual/libdl.texi: New.
38194
38195         * manual/lang.texi: Document MTASC-safety properties.
38196
38197         * manual/job.texi: Document MTASC-safety properties.
38198
38199         * manual/getopt.texi: Document MTASC-safety properties.
38200
38201         * manual/ctype.texi: Document MTASC-safety properties.
38202
38203 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
38204
38205         [BZ #16046]
38206         * csu/libc-tls.c (static_map): Remove variable.
38207         (__libc_setup_tls): Use main executable's link map for TLS data.
38208         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
38209         casing for LM_ID_BASE and GL(dl_nns).
38210         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
38211         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
38212         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
38213         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
38214         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
38215         member.
38216         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
38217         l_phnum members.
38218
38219 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
38220
38221         * manual/debug.texi: Document MTASC-safety properties.
38222
38223 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
38224
38225         [BZ #16510]
38226         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
38227         of __x86_64__ when disabling x87 inline functions.
38228
38229 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
38230
38231         * manual/charset.texi: Document MTASC-safety properties.
38232
38233         * manual/crypt.texi: Document MTASC-safety properties.
38234
38235         * manual/conf.texi: Document MTASC-safety properties.
38236
38237         * manual/arith.texi: Document MTASC-safety properties.
38238
38239         * manual/argp.texi: Document MTASC-safety properties.
38240
38241         * manual/macros.texi: Introduce macros to document multi
38242         thread, asynchronous signal and asynchronous cancellation
38243         safety properties.
38244         * manual/intro.texi: Introduce the properties themselves.
38245
38246 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38247
38248         * sysdeps/sh/sh4/Makefile: New file.
38249
38250 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
38251
38252         * math/gen-libm-test.pl ($srcdir): New variable.
38253         ($auto_input): Use it.
38254
38255 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
38256
38257         [BZ #16506]
38258         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
38259         access beyond array bounds when parsing netgroups file.
38260
38261         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
38262         the old buffer before realloc.
38263
38264 2014-01-27  Allan McRae  <allan@archlinux.org>
38265
38266         * po/fr.po: Update French translation from translation project.
38267
38268 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38269
38270         * sysdeps/sh/libm-test-ulps: Regenerate.
38271
38272 2014-01-24  David S. Miller  <davem@davemloft.net>
38273
38274         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
38275
38276 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38277
38278         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
38279         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
38280
38281 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
38282
38283         [BZ #16474]
38284         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
38285         string pointers after reallocation.
38286
38287 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38288
38289         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
38290         __SH4A__ instead of __SH_FPU_ANY__.
38291
38292 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38293
38294         * sysdeps/sh/fpu_control.h: New file.
38295         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
38296         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
38297         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
38298         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
38299         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
38300         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
38301         * sysdeps/sh/sys/ucontext.h: Remove.
38302         * sysdeps/sh/sys: Remove directory.
38303
38304 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38305
38306         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
38307         s390/sys/ucontext.h.
38308         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
38309         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
38310
38311 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
38312
38313         [BZ #15605]
38314         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
38315
38316 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38317
38318         [BZ#16431]
38319         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
38320         Adjust the vDSO correctly for internal calls.
38321         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
38322
38323 2014-01-20  Allan McRae  <allan@archlinux.org>
38324
38325         * po/ca.po: Update Catalan translation from translation project.
38326
38327 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
38328
38329         * sysdeps/s390/sotruss-lib.c: New file.
38330
38331 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38332
38333         [BZ#16430]
38334         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
38335         (__GI___gettimeofday): Alias for a different internal symbol to avoid
38336         local calls issues by not having a PLT stub required for IFUNC calls.
38337         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
38338
38339 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
38340
38341         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
38342         * math/test-fpucw-static.c: Likewise.
38343
38344 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
38345
38346         [BZ #16453]
38347         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
38348
38349 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38350
38351         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
38352         implementation for powerpc.
38353
38354 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
38355
38356         [BZ #14782]
38357         * sysdeps/posix/system.c (__libc_system): Do not enable
38358         asynchronous cancellation.
38359
38360 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38361
38362         [BZ #16427]
38363         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
38364         handling only for numbers special also in the IEEE case.
38365
38366 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38367
38368         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
38369
38370 2014-01-11  Allan McRae  <allan@archlinux.org>
38371
38372         * po/bg.po: Update Bulgarian translation from translation project.
38373
38374         * po/de.po: Update German translation from translation project.
38375
38376 2014-01-10  Roland McGrath  <roland@hack.frob.com>
38377
38378         * sysdeps/generic/gcc-compat.h: New file.
38379
38380 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
38381
38382         * benchtests/asin-inputs: Correct slow inputs.
38383         * benchtests/acos-inputs: Likewise.
38384
38385 2014-01-10  Allan McRae  <allan@archlinux.org>
38386
38387         * po:sv.po: Update Swedish translation from translation project.
38388
38389         * po/vi.po: Update Vietnamese translation from translation project.
38390
38391         * po/eo.po: Update Esperanto translation from translation project.
38392
38393         * po/cs.po: Update Czech translation from translation project.
38394
38395         * po/nl.po: Update Dutch translation from translation project.
38396
38397         * po/pl.po: Update Polish translation from translation project.
38398
38399         * po/ru.po: Update Russian translation from translation project.
38400
38401         * po/uk.po: Update Ukrainian translation from translation project.
38402
38403 2014-01-08  Brooks Moses  <bmoses@google.com>
38404
38405         * elf/dl-load.c: Fix comment typo.
38406
38407 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
38408
38409         * po/header.pot: Rename to...
38410         * po/pot.header: ... this.
38411         * po/Makefile: Use pot.header.
38412
38413 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
38414             Maxim Kuvyrkov  <maxim@kugelworks.com>
38415
38416         [BZ #16394]
38417         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
38418         SRC and DEST against LEN.
38419
38420 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38421
38422         [BZ #16414]
38423         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
38424         implementation.
38425         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
38426
38427 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38428
38429         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38430
38431 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
38432
38433         [BZ #16408]
38434         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
38435         for large positive arguments.
38436
38437 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
38438
38439         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
38440
38441         * math/auto-libm-test-in: Mark various tests with
38442         xfail-rounding:ldbl-128ibm.
38443         * math/auto-libm-test-out: Regenerated.
38444
38445         [BZ #16407]
38446         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
38447         Increase overflow threshold.
38448
38449 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
38450
38451         [BZ #14286]
38452         * stdio-common/vfprintf.c: Check for integer overflow.
38453
38454 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38455
38456         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
38457         the first argument and return value of __tls_get_addr_internal.
38458
38459 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38460
38461         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
38462         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
38463
38464 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38465
38466         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
38467         * sysdeps/s390/rtld-global-offsets.sym: New file.
38468         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
38469         GLIBC_2.19 symbol.
38470         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
38471         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
38472         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
38473         ... this.
38474         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
38475         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
38476         ... this.
38477         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
38478         Regenerate.
38479         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
38480         Regenerate.
38481         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
38482         halfs of GPRs for high_gprs contexts.
38483         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
38484         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
38485         field.
38486         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
38487         uc_flags field.
38488         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
38489         64 bit versions:
38490         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
38491         for high GPRs (uc_high_gprs) and for future extensions
38492         (__reserved).
38493         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
38494         for future extensions (__reserved).
38495         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
38496         64 bit versions:
38497         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
38498         SC_HIGHGPRS offset definition.
38499         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
38500         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
38501
38502         * Versions.def: Add GLIBC_2.19 for libpthread.
38503         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
38504         siglongjmp for libpthread with GLIBC_2.19 symver.
38505         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
38506         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
38507         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
38508         * sysdeps/s390/__longjmp.c: New file.
38509         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
38510         * sysdeps/s390/longjmp.c: New file.
38511         * sysdeps/s390/setjmp.S: New file.
38512         * sysdeps/s390/sigjmp.S: New file.
38513         * sysdeps/s390/v1-longjmp.c: New file.
38514         * sysdeps/s390/v1-setjmp.h: New file.
38515         * sysdeps/s390/v1-sigjmp.c: New file.
38516         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
38517         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
38518         GLIBC_2.19 version.
38519         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
38520         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
38521         versioned symbols for ____longjmp_chk.
38522         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
38523         Likewise.
38524         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
38525         Regenerate.
38526         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
38527         Regenerate.
38528         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
38529         Regenerate.
38530         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
38531         Regenerate.
38532         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
38533         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
38534         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
38535         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
38536         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
38537         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
38538         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
38539         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
38540         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
38541         * sysdeps/s390/rtld-__longjmp.c: New file.
38542         * sysdeps/s390/rtld-setjmp.S: New file.
38543
38544 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
38545
38546         [BZ #16400]
38547         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
38548         Return -__logl (x) for small positive arguments without evaluating
38549         a polynomial.
38550
38551 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
38552
38553         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
38554         Rename to ...
38555         (__ptrace_peeksiginfo_args): ... this.
38556         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
38557         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
38558         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
38559
38560 2014-01-06  Allan McRae  <allan@archlinux.org>
38561
38562         * inet/netinet/in.h: Fix typo in comment.
38563
38564 2014-01-05  Andreas Jaeger  <aj@suse.de>
38565
38566         * sysdeps/i386/fpu/libm-test-ulps: Update.
38567
38568 2014-01-05  Allan McRae  <allan@archlinux.org>
38569
38570         * po/libc.pot: Regenerated.
38571
38572         * malloc/memusagestat.c: Fix gettext call formatting.
38573
38574 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
38575
38576         * nscd/nscd.c: Improve usage() output.
38577
38578 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
38579
38580         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
38581         * sysdeps/unix/sysv/linux/configure: Regenerated.
38582         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
38583         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
38584
38585 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
38586
38587         [BZ #16390]
38588         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
38589         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
38590
38591 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38592
38593         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
38594         extra tokens at end of #undef directive.
38595         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
38596         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
38597         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
38598
38599 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
38600
38601         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
38602
38603         * math/auto-libm-test-in: Mark various tests with
38604         xfail-rounding:ldbl-128ibm.
38605         * math/auto-libm-test-out: Regenerated.
38606
38607 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
38608
38609         [BZ #16386]
38610         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
38611         numbers with subnormal high part when calculating exponent.
38612
38613         [BZ #16385]
38614         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
38615         fabs.
38616
38617         [BZ #16384]
38618         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
38619         M_LN2l.
38620         (__ieee754_acoshl): Use __log1pl not __log1p.
38621
38622 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
38623
38624         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
38625         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
38626         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
38627         (grow_heap, heap_trim, _int_new_arena, get_free_list)
38628         (reused_arena, arena_get2): Convert to GNU style.
38629         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
38630         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
38631         (memalign_check, __malloc_set_state): Likewise.
38632         * malloc/mallocbug.c (main): Likewise.
38633         * malloc/malloc.c (__malloc_assert, malloc_init_state)
38634         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
38635         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
38636         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
38637         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
38638         (__posix_memalign, malloc_info): Likewise.
38639         * malloc/malloc.h: Likewise.
38640         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
38641         (mallochook, memalignhook, reallochook, mabort): Likewise.
38642         * malloc/mcheck.h: Likewise.
38643         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
38644         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
38645         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
38646         * malloc/morecore.c (__default_morecore): Likewise.
38647         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
38648         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
38649         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
38650         (print_and_abort): Likewise.
38651         * malloc/obstack.h: Likewise.
38652         * malloc/set-freeres.c (__libc_freeres): Likewise.
38653         * malloc/tst-mallocstate.c (main): Likewise.
38654         * malloc/tst-mtrace.c (main): Likewise.
38655         * malloc/tst-realloc.c (do_test): Likewise.
38656
38657 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
38658
38659         [BZ #16366]
38660         * nscd/netgroupcache.c (do_notfound): New function.
38661         (addgetnetgrentX): Use it.
38662
38663         [BZ # 16365]
38664         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
38665         NSS_STATUS_NOTFOUND.
38666
38667 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
38668
38669         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
38670         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38671
38672 2014-01-01  Allan McRae  <allan@archlinux.org>
38673
38674         * scripts/update-copyrights: Update configure input file suffix.
38675
38676         * NEWS: Update copyright year.
38677         * catgets/gencat.c: Likewise.
38678         * csu/version.c: Likewise.
38679         * debug/catchsegv.sh: Likewise.
38680         * debug/pcprofiledump.c: Likewise.
38681         * debug/xtrace.sh: Likewise.
38682         * elf/ldconfig.c: Likewise.
38683         * elf/ldd.bash.in: Likewise.
38684         * elf/pldd.c: Likewise.
38685         * elf/sotruss.ksh: Likewise.
38686         * elf/sprof.c: Likewise.
38687         * iconv/iconv_prog.c: Likewise.
38688         * iconv/iconvconfig.c: Likewise.
38689         * locale/programs/locale.c: Likewise.
38690         * locale/programs/localedef.c: Likewise.
38691         * login/programs/pt_chown.c: Likewise.
38692         * malloc/memusage.sh: Likewise.
38693         * malloc/memusagestat.c: Likewise.
38694         * malloc/mtrace.pl: Likewise.
38695         * manual/libc.texinfo: Likewise.
38696         * nscd/nscd.c: Likewise.
38697         * nss/getent.c: Likewise.
38698         * nss/makedb.c: Likewise.
38699         * posix/getconf.c: Likewise.
38700         * scripts/test-installation.pl: Likewise.
38701
38702         * All files with FSF copyright notices: Update copyright dates
38703         using scripts/update-copyrights.
38704         * intl/plural.c: Regenerated.
38705         * locale/programs/charmap-kw.h: Likewise.
38706         * locale/programs/locfile-kw.h: Likewise.
38707
38708 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
38709
38710         * sysdeps/unix/sysv/linux/configure: Regenerated.
38711         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
38712         the linux/fanotify.h header.
38713         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
38714         HAVE_LINUX_FANOTIFY_H is defined.
38715
38716 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
38717
38718         * benchtests/cos-inputs: New inputs.
38719         * benchtests/sin-inputs: Likewise.
38720
38721         * benchtests/atan-inputs: New inputs. Fix name of multiple
38722         precision fallback inputs.
38723
38724         * benchtests/atanh-inputs: New inputs.
38725         * benchtests/tanh-inputs: Likewise.
38726
38727         * benchtests/acosh-inputs: New inputs.
38728         * benchtests/asinh-inputs: Likewise.
38729
38730         * benchtests/cosh-inputs: New inputs.
38731         * benchtests/sinh-inputs: Likewise.
38732
38733         * benchtests/acos-inputs: Add more inputs.
38734         * benchtests/asin-inputs: Likewise.
38735
38736 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
38737
38738         [BZ #16375]
38739         * manual/arith.texi: Fix spelling.
38740         * manual/charset.texi: Likewise.
38741         * manual/errno.texi: Likewise.
38742         * manual/filesys.texi: Likewise.
38743         * manual/lang.texi: Likewise.
38744         * manual/llio.texi: Likewise.
38745         * manual/locale.texi: Likewise.
38746         * manual/message.texi: Likewise.
38747         * manual/resource.texi: Likewise.
38748         * manual/search.texi: Likewise.
38749         * manual/setjmp.texi: Likewise.
38750         * manual/stdio.texi: Likewise.
38751         * manual/string.texi: Likewise.
38752         * manual/sysinfo.texi: Likewise.
38753         * manual/time.texi: Likewise.
38754
38755 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
38756
38757         * po/sl.po: New file.
38758
38759 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
38760
38761         * .gitignore: Add core/.gdbinit/.gdb_history.
38762
38763 2013-12-27  Allan McRae  <allan@archlinux.org>
38764
38765         [BZ #16369]
38766         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
38767         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
38768
38769 2013-12-24  Brooks Moses  <bmoses@google.com>
38770
38771         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
38772         all compilers that claim C++98 compliance, not just GCC.
38773         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
38774         Likewise.
38775
38776 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
38777
38778         * NEWS: Restore accidentally deleted bug-fix entries.
38779
38780 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
38781             Ondřej Bílka  <neleai@seznam.cz>
38782
38783         [BZ #15073]
38784         * malloc/malloc.c (_int_free): Perform sanity check only if we
38785         have_lock.
38786
38787 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
38788
38789         [BZ #12986]
38790         * manual/stdio.texi (String Input Conversions): Clarify that character
38791         classes are not supported.
38792
38793 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38794
38795         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38796
38797 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
38798
38799         [BZ #16337]
38800         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
38801         Calculate results for small negative arguments directly rather
38802         than using reflection formula with special underflow handling.
38803
38804         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
38805         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
38806         sysdeps/unix/bsd/bsd4.4/syscalls.list.
38807         (fchflags): Likewise.
38808         (revoke): Likewise.
38809         (setlogin): Likewise.
38810         (sigaltstack): Likewise.
38811         (wait4): Likewise.
38812         (sigblock): Remove.
38813         (sigsetmask): Likewise.
38814         (wait3): Likewise.
38815         (waitpid): Likewise.
38816         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
38817         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
38818         file.
38819         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
38820         * sysdeps/unix/bsd/Makefile: ... here.
38821         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
38822         * sysdeps/unix/bsd/Versions: ... here.
38823         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
38824         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
38825         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
38826         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
38827         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
38828         * sysdeps/unix/bsd/sigblock.c: ... here.
38829         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
38830         * sysdeps/unix/bsd/sigsetmask.c: ... here.
38831         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
38832         * sysdeps/unix/bsd/sigvec.c: ... here.
38833         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
38834         * sysdeps/unix/bsd/tcdrain.c: ... here.
38835         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
38836         * sysdeps/unix/bsd/tcgetattr.c: ... here.
38837         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
38838         * sysdeps/unix/bsd/tcsetattr.c: ... here.
38839         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
38840         * sysdeps/unix/bsd/wait.c: ... here.
38841         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
38842         * sysdeps/unix/bsd/wait3.c: ... here.
38843         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
38844         * sysdeps/unix/bsd/waitpid.c: ... here.
38845
38846 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
38847
38848         [BZ #16356]
38849         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
38850         round-to-nearest for [!USE_AS_EXPM1L].
38851         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
38852         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
38853         more tests of exp and exp10.  Expect some exp10 tests to miss
38854         exceptions or fail in directed rounding modes.
38855         * math/auto-libm-test-out: Regenerated.
38856         * math/libm-test.inc (exp10_tonearest_test_data): New array.
38857         (exp10_test_tonearest): New function.
38858         (exp10_towardzero_test_data): New array.
38859         (exp10_test_towardzero): New function.
38860         (exp10_downward_test_data): New array.
38861         (exp10_test_downward): New function.
38862         (exp10_upward_test_data): New array.
38863         (exp10_test_upward): New function.
38864         (main): Call the new functions.
38865         * sysdeps/i386/fpu/libm-test-ulps: Update.
38866         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38867
38868 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
38869
38870         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
38871         asinh, atan, atan2, atanh, cbrt, cos and cosh.
38872         * math/auto-libm-test-out: Regenerated.
38873         * math/libm-test.inc (acosh_test_data): Add more tests.
38874         (atanh_test_data): Likewise.
38875         (ceil_test_data): Likewise.
38876         (copysign_test_data): Likewise.
38877         * sysdeps/i386/fpu/libm-test-ulps: Update.
38878         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38879
38880         * timezone/checktab.awk: Update from tzcode 2013i.
38881         * timezone/private.h: Likewise.
38882         * timezone/scheck.c: Likewise.
38883         * timezone/tzfile.h: Likewise.
38884         * timezone/tzselect.ksh: Likewise.
38885         * timezone/zdump.c: Likewise.
38886         * timezone/zic.c: Likewise.
38887
38888         * math/auto-libm-test-in: Add tests of cpow.
38889         * math/auto-libm-test-out: Regenerated.
38890         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
38891         * math/gen-auto-libm-tests.c (func_calc_method): Add value
38892         mpc_cc_c.
38893         (func_calc_desc): Add mpc_cc_c union field.
38894         (test_functions): Add cpow.
38895         (special_fill_2pi): New function.
38896         (special_real_inputs): Add 2pi.
38897         (calc_generic_results): Handle mpc_cc_c.
38898         * sysdeps/i386/fpu/libm-test-ulps: Update.
38899         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38900
38901         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
38902         csqrt, ctan and ctanh.
38903         * math/auto-libm-test-out: Regenerated.
38904         * math/libm-test.inc (TEST_COND_x86_64): New macro.
38905         (TEST_COND_x86): Likewise.
38906         (ccos_test_data): Use AUTO_TESTS_c_c.
38907         (ccosh_test_data): Likewise.
38908         (cexp_test_data): Likewise.
38909         (clog_test_data): Likewise.
38910         (csqrt_test_data): Likewise.
38911         (ctan_test_data): Likewise.
38912         (ctan_tonearest_test_data): Likewise.
38913         (ctan_towardzero_test_data): Likewise.
38914         (ctan_downward_test_data): Likewise.
38915         (ctan_upward_test_data): Likewise.
38916         (ctanh_test_data): Likewise.
38917         (ctanh_tonearest_test_data): Likewise.
38918         (ctanh_towardzero_test_data): Likewise.
38919         (ctanh_downward_test_data): Likewise.
38920         (ctanh_upward_test_data): Likewise.
38921         * math/gen-auto-libm-tests.c (func_calc_method): Add value
38922         mpc_c_c.
38923         (func_calc_desc): Add mpc_c_c union field.
38924         (FUNC_mpc_c_c): New macro.
38925         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
38926         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
38927         ctanh.
38928         (special_fill_min_subnorm_p120): New function.
38929         (special_real_inputs): Add min_subnorm_p120.
38930         (calc_generic_results): Handle mpc_c_c.
38931         * sysdeps/i386/fpu/libm-test-ulps: Update.
38932         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38933
38934 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
38935
38936         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
38937         (do_sin_slow): New functions.
38938         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
38939         (cslow2, csloww1, csloww2): Use the new functions.
38940
38941         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
38942         Use M to change sign of result instead of X.  Assume X is
38943         positive.
38944         (csloww1): Likewise.
38945         (__sin): Adjust.
38946         (__cos): Adjust.
38947
38948         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
38949         arguments A and DA.
38950         (__sin): Adjust.
38951         (__cos): Likewise.
38952
38953         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
38954         (__cos): Likewise.
38955         (sloww1): Don't adjust sign of DX.
38956         (csloww1): Likewise.
38957         (sloww2): Use X directly and don't adjust sign of DX.
38958         (csloww2): Likewise.
38959
38960 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
38961
38962         * math/auto-libm-test-in: Add tests of cabs and carg.
38963         * math/auto-libm-test-out: Regenerated.
38964         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
38965         (carg_test_data): Likewise.
38966         * math/gen-auto-libm-tests.c (func_calc_method): Add value
38967         mpc_c_f.
38968         (func_calc_desc): Add mpc_c_f union field.
38969         (test_functions): Add cabs and carg.
38970         (calc_generic_results): Handle mpc_c_f.
38971
38972         * sysdeps/powerpc/powerpc32/libgcc-compat.S
38973         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
38974         as a macro and a compat symbol.
38975         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
38976         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
38977         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
38978         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
38979         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
38980         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
38981         not use .hidden.
38982         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
38983         Likewise.
38984         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
38985         Likewise.
38986         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
38987         Likewise.
38988         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
38989         Likewise.
38990         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
38991         Likewise.
38992         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
38993         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
38994         from GLIBC_2.3.2.
38995
38996 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38997
38998         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38999
39000 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39001
39002         * manual/texinfo.tex: Update to version 2013-11-26.10 with
39003         trailing whitespace removed.
39004         * scripts/config.guess: Update to version 2013-11-29.
39005         * scripts/config.sub: Update to version 2013-10-01.
39006
39007         * math/auto-libm-test-in: Add tests of sincos.
39008         * math/auto-libm-test-out: Regenerated.
39009         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
39010         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39011         mpfr_f_11.
39012         (func_calc_desc): Add mpfr_f_11 union field.
39013         (test_functions): Add sincos.
39014         (calc_generic_results): Handle mpfr_f_11.
39015         * sysdeps/i386/fpu/libm-test-ulps: Update.
39016         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39017
39018 2013-12-19  Andreas Schwab  <schwab@suse.de>
39019
39020         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
39021         CALL_MCOUNT.
39022         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
39023         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
39024         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
39025
39026 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39027
39028         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
39029         * sysdeps/i386/fpu/libm-test-ulps: Update.
39030         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39031
39032         [BZ #16293]
39033         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
39034         round-to-nearest mode when using frndint.
39035         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
39036         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
39037         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
39038         Likewise.
39039         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
39040         sinh test to fail.
39041         * math/auto-libm-test-out: Regenerated.
39042         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
39043         (TEST_COND_x86): Likewise.
39044         (expm1_tonearest_test_data): New array.
39045         (expm1_test_tonearest): New function.
39046         (expm1_towardzero_test_data): New array.
39047         (expm1_test_towardzero): New function.
39048         (expm1_downward_test_data): New array.
39049         (expm1_test_downward): New function.
39050         (expm1_upward_test_data): New array.
39051         (expm1_test_upward): New function.
39052         (main): Run the new test functions.
39053         * sysdeps/i386/fpu/libm-test-ulps: Update.
39054         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39055
39056         * include/features.h: Update comment documenting feature test
39057         macros.  Mention _DEFAULT_SOURCE in comment.
39058         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
39059         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
39060         _BSD_SOURCE and _SVID_SOURCE.
39061         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
39062         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
39063         !_SVID_SOURCE]: Likewise.
39064         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39065         (__USE_POSIX_IMPLICITLY): Define.
39066         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39067         (_POSIX_SOURCE): Undefine and redefine.
39068         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39069         (_POSIX_C_SOURCE): Likewise.
39070         * manual/creature.texi (_DEFAULT_SOURCE): Document.
39071         (Feature Test Macros): Update documentation of default features.
39072
39073 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
39074
39075         * benchtests/Makefile: Add bench-strtok.
39076         * benchtests/bench-strtok.c: New file: strtok benchtest.
39077
39078 2013-12-19  Allan McRae  <allan@archlinux.org>
39079
39080         * manual/install.texi: Suppress menu for plain text output.
39081         * INSTALL: Regenerated.
39082
39083 2013-12-18  Brooks Moses  <bmoses@google.com>
39084
39085         [BZ #15846]
39086         * misc/getauxval.c: Include errno.h.
39087         (__getauxval): Set errno to ENOENT if the requested type is not
39088         found.
39089         * misc/sys/auxv.h (getauxval): Document that it may set errno;
39090         don't declare with __attribute_const__.
39091         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
39092         * manual/startup.texi: Document that getauxval sets errno.
39093
39094 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39095
39096         * math/auto-libm-test-in: Add tests of jn and yn.
39097         * math/auto-libm-test-out: Regenerated.
39098         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
39099         (yn_test_data): Likewise.
39100         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39101         mpfr_if_f.
39102         (func_calc_desc): Add mpfr_if_f union field.
39103         (FUNC_mpfr_if_f): New macro.
39104         (test_functions): Add jn and yn.
39105         (calc_generic_results): Assert type of second input for
39106         mpfr_ff_f.  Handle mpfr_if_f.
39107         (output_for_one_input_case): Disable all checking for arguments
39108         fitting floating-point types in case of an integer argument.
39109         * sysdeps/i386/fpu/libm-test-ulps: Update.
39110         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39111
39112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
39113         Don't expect fegetround reference in libm.so.
39114
39115 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
39116
39117         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
39118         $(config-cflags-nofma).
39119
39120 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39121
39122         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
39123         * math/auto-libm-test-out: Regenerated.
39124
39125         [BZ #16338]
39126         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
39127         to determine exponent and adjust argument to have exponent of -1.
39128         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
39129         log2.
39130         * math/auto-libm-test-out: Regenerated.
39131         * sysdeps/i386/fpu/libm-test-ulps: Update.
39132         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39133
39134 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
39135
39136         * manual/probes.texi: Remove cases when per-thread arenas are
39137         disabled.
39138
39139 2013-12-18  Andreas Schwab  <schwab@suse.de>
39140
39141         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
39142         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
39143         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
39144         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
39145         * sysdeps/i386/i686/multiarch/Makefile: Update.
39146         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
39147
39148 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39149
39150         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
39151         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
39152
39153 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
39154
39155         [BZ #15968]
39156         Support TZ transition times < 00:00:00.
39157         This is needed for version-3 tz-format files; it supports time
39158         stamps past 2037 for America/Godthab (the only entry in the tz
39159         database for which this change is relevant).
39160         * manual/time.texi (TZ Variable): Document transition times
39161         from -167:59:59 through -00:00:01.
39162         * time/tzset.c (tz_rule): Time of day is now signed.
39163         (__tzset_parse_tz): Parse negative time of day.
39164
39165         Document TZ transition times >= 25:00:00.
39166         * manual/time.texi (TZ Variable): Document transition times from
39167         25:00:00 through 167:59:59.  These are already supported, and this
39168         support will help with version-3 tz-format files.
39169
39170         * manual/time.texi (TZ Variable): Modernize North America example
39171         to reflect current (i.e., 2007-and-later) daylight saving rules.
39172
39173         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
39174
39175 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39176
39177         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
39178         * sysdeps/unix/bsd/bits/stat.h: Likewise.
39179         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
39180         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
39181         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
39182         * sysdeps/unix/bsd/bsdstat.h: Likewise.
39183         * sysdeps/unix/bsd/clock.c: Likewise.
39184         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
39185         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
39186         * sysdeps/unix/bsd/init-posix.c: Likewise.
39187         * sysdeps/unix/bsd/poll.c: Likewise.
39188         * sysdeps/unix/bsd/ptsname.c: Likewise.
39189         * sysdeps/unix/bsd/seekdir.c: Likewise.
39190         * sysdeps/unix/bsd/setegid.c: Likewise.
39191         * sysdeps/unix/bsd/seteuid.c: Likewise.
39192         * sysdeps/unix/bsd/setgid.c: Likewise.
39193         * sysdeps/unix/bsd/setrgid.c: Likewise.
39194         * sysdeps/unix/bsd/setruid.c: Likewise.
39195         * sysdeps/unix/bsd/setsid.c: Likewise.
39196         * sysdeps/unix/bsd/setuid.c: Likewise.
39197         * sysdeps/unix/bsd/sigaction.c: Likewise.
39198         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
39199         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
39200         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
39201         * sysdeps/unix/bsd/telldir.c: Likewise.
39202         * sysdeps/unix/bsd/times.c: Likewise.
39203         * sysdeps/unix/bsd/usleep.c: Likewise.
39204
39205         * misc/Makefile (install-lib): Remove libbsd-compat.a.
39206         ($(objpfx)libbsd-compat.a): Remove rule.
39207
39208         * include/features.h (__FAVOR_BSD): Do not define.
39209         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
39210         features conflicting with POSIX.
39211         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
39212         (_BSD_SOURCE): Remove description of not being a subset of other
39213         feature test macros.
39214         * manual/job.texi (getpgrp): Do not document BSD version.
39215         (getpgid): Do not document by reference to BSD getpgrp.
39216         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
39217         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
39218         * signal/signal.h [__FAVOR_BSD]: Likewise.
39219         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
39220         instead of making contents conditional on [__FAVOR_BSD].
39221         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
39222
39223 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39224
39225         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39226
39227 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39228
39229         [BZ #16314]
39230         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
39231         values below 2**-450, not 2**-500.
39232         * math/auto-libm-test-in: Don't allow spurious underflow from
39233         hypot.
39234         * math/auto-libm-test-out: Regenerated.
39235
39236         [BZ #16316]
39237         [BZ #16330]
39238         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
39239         values of ha and hb and sort them after adjusting subnormal
39240         arguments.
39241         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
39242         Likewise.
39243         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
39244         values of ea and eb and sort them after adjusting subnormal
39245         arguments.
39246         * math/auto-libm-test-in: Do not expect some hypot tests of
39247         subnormals to fail.  Add more hypot tests.
39248         * math/auto-libm-test-out: Regenerated.
39249
39250 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39251
39252         [BZ #13304]
39253         * sysdeps/sh/s_fma.c: New file.
39254         * sysdeps/sh/s_fmaf.c: New file.
39255         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
39256         version.
39257         * sysdeps/sh/Implies: Add sh/soft-fp.
39258
39259 2013-12-16  Roland McGrath  <roland@hack.frob.com>
39260
39261         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
39262         level of indirection to members `objname', `errstring', `malloced'.
39263         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
39264         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
39265         it as the __longjmp argument (just pass 1 instead).
39266         (_dl_catch_error): Initialize C with argument pointers and address of
39267         volatile local ERRCODE rather than copying values out of C at return.
39268
39269 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
39270
39271         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
39272         * math/auto-libm-test-out: Regenerated.
39273         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
39274         (hypot_test_data): Likewise.
39275         (pow_test_data): Likewise.
39276         (pow_tonearest_test_data): Likewise.
39277         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39278         mpfr_ff_f.
39279         (func_calc_desc): Add mpfr_ff_f union field.
39280         (FUNC_mpfr_ff_f): New macro.
39281         (test_functions): Add atan2, hypot and pow.
39282         (special_fill_min): New function.
39283         (special_fill_minus_min): Likewise.
39284         (special_fill_min_subnorm): Likewise.
39285         (special_fill_minus_min_subnorm): Likewise.
39286         (special_real_inputs): Add min, -min, min_subnorm and
39287         -min_subnorm.
39288         (calc_generic_results): Handle mpfr_ff_f.
39289         * sysdeps/i386/fpu/libm-test-ulps: Update.
39290         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39291
39292 2013-12-16  Will Newton  <will.newton@linaro.org>
39293
39294         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
39295         (Aligned Memory Blocks): Add documentation for aligned_alloc
39296         and suggest it as an alternative to posix_memalign.
39297         (Hooks for Malloc): Document __memalign_hook is also called
39298         for aligned_alloc.  (Summary of Malloc): Add summary for
39299         aligned alloc.  Document __memalign_hook is also called
39300         for aligned_alloc.
39301
39302 2013-12-16  Will Newton  <will.newton@linaro.org>
39303
39304         * manual/memory.texi (Malloc Examples): Clarify default
39305         alignment documentation.  Suggest posix_memalign rather
39306         than memalign or valloc.
39307         (Aligned Memory Blocks): Remove suggestion to use memalign
39308         or valloc.  Remove obsolete comment about BSD.
39309         Document memalign errno values and mark the function obsolete.
39310         Document posix_memalign returned error codes.  Mark valloc
39311         as obsolete.  (Hooks for Malloc): __memalign_hook is also
39312         called for posix_memalign and valloc.
39313         (Summary of Malloc): Add posix_memalign to function summary.
39314         __memalign_hook is also called for posix_memalign and valloc.
39315
39316 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
39317
39318         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
39319         TAYLOR_SIN.
39320         (__sin): Adjust.
39321         (__cos): Likewise.
39322         (sloww): Use mynumber union.  Expand ternary operator into
39323         if-else statements.
39324         (cslow): use mynumber union.
39325
39326 2013-12-16  Allan McRae  <allan@archlinux.org>
39327
39328         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
39329         * configure: Regenerated.
39330
39331         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
39332
39333         [BZ #14120]
39334         * configure.ac: Added --enable-maintainer-mode. Check for
39335         autoconf when enabled.
39336         * configure: Regenerated.
39337
39338         * nscd/nscd.service: New file.
39339         * nscd/nscd.tmpfiles: New file.
39340
39341 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
39342
39343         [BZ #12100]
39344         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
39345         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
39346         * sysdeps/x86_64/multiarch/strstr.c: ... here.
39347         (strstr): Add __strstr_sse2_unaligned ifunc.
39348         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
39349         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
39350         (strcasestr): Remove __strcasestr_sse42 ifunc.
39351         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
39352         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
39353         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
39354
39355 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39356
39357         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
39358         * sysdeps/sh/bits/fenv.h: ... here.
39359         * sysdeps/sh/sh4/fpu/bits: Remove directory.
39360
39361 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39362
39363         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
39364
39365         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
39366         hypotf multiarch implementations.
39367         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
39368         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
39369         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
39370         multiarch hypot for PPC64.
39371         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
39372         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
39373         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
39374         multiarch hypotf for PPC64.
39375
39376         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
39377         modff multiarch implementations.
39378         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
39379         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
39380         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
39381         multiarch modf for PPC64.
39382         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
39383         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
39384         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
39385         multiarch modff for PPC64.
39386
39387         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
39388         and logl multiarch implementations.
39389         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
39390         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
39391         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
39392         multiarch logb for PPC64.
39393         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
39394         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
39395         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
39396         multiarch logb for PPC64.
39397         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
39398         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
39399         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
39400         multiarch logb for PPC64.
39401
39402         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
39403         isinff multiarch implementation.
39404         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
39405         file.
39406         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
39407         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
39408         multiarch isinf for PPC64.
39409         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
39410         file.
39411         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
39412         multiarch isinff for PPC64.
39413
39414         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
39415         finitef multiarch implementation.
39416         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
39417         file.
39418         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
39419         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
39420         multiarch finite for PPC64.
39421         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
39422         file.
39423         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
39424         multiarch finitef for PPC64.
39425
39426         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
39427         lrint multiarch implementation.
39428         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
39429         file.
39430         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
39431         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
39432         multiarch llrint for PPC64.
39433         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
39434         multiarch lrint for PPC64.
39435
39436         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
39437         copysignf multiarch implementation.
39438         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
39439         file.
39440         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
39441         file.
39442         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
39443         multiarch copysign for PPC64.
39444         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
39445         multiarch copysignf for PPC64.
39446
39447         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
39448         multiarch implementation.
39449         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
39450         file.
39451         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
39452         file.
39453         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
39454         file.
39455         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
39456         file.
39457         multiarch llround for PPC64.
39458         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
39459         multiarch trunc for PPC64.
39460         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
39461         multiarch truncf for PPC64.
39462
39463         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
39464         multiarch implementation.
39465         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
39466         file.
39467         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
39468         file.
39469         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
39470         file.
39471         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
39472         file.
39473         multiarch llround for PPC64.
39474         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
39475         multiarch round for PPC64.
39476         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
39477         multiarch roundf for PPC64.
39478
39479         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
39480         multiarch implementation.
39481         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
39482         file.
39483         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
39484         file.
39485         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
39486         file.
39487         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
39488         file.
39489         multiarch llround for PPC64.
39490         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
39491         multiarch floor for PPC64.
39492         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
39493         multiarch floorf for PPC64.
39494
39495         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
39496         multiarch implementation.
39497         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
39498         file.
39499         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
39500         file.
39501         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
39502         file.
39503         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
39504         file.
39505         multiarch llround for PPC64.
39506         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
39507         multiarch ceil for PPC64.
39508         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
39509         multiarch ceilf for PPC64.
39510
39511         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
39512         multiarch implementation.
39513         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
39514         file.
39515         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
39516         file.
39517         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
39518         file.
39519         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
39520         multiarch llround for PPC64.
39521         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
39522         multiarch lround for PPC64.
39523
39524         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
39525         multiarch implementation.
39526         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
39527         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
39528         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
39529         file.
39530         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
39531         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
39532         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
39533         multiarch isnan for PPC64.
39534         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
39535         multiarch isnanf for PPC64.
39536
39537         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
39538         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
39539         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
39540         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
39541         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
39542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
39543
39544         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
39545         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
39546         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
39547         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
39548
39549         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
39550         multiarch implementations.
39551         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39552         (__libc_ifunc_impl_list): Likewise.
39553         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
39554         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
39555         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
39556         multiarch stpcpy for PPC64.
39557
39558         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
39559         multiarch implementations.
39560         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39561         (__libc_ifunc_impl_list): Likewise.
39562         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
39563         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
39564         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
39565         multiarch strcpy for PPC64.
39566
39567         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
39568         redefine function name.
39569         (_wordcopy_fwd_dest_aligned): Likewise.
39570         (_wordcopy_bwd_aligned): Likewise.
39571         (_wordcopy_bwd_dest_aligned): Likewise.
39572         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
39573         multiarch implementations.
39574         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39575         (__libc_ifunc_impl_list): Likewise.
39576         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
39577         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
39578         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
39579         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
39580         multiarch wcscpy for PPC64.
39581
39582         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
39583         multiarch implementations.
39584         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39585         (__libc_ifunc_impl_list): Likewise.
39586         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
39587         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
39588         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
39589         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
39590         multiarch wcscpy for PPC64.
39591
39592         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
39593         multiarch implementations.
39594         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39595         (__libc_ifunc_impl_list): Likewise.
39596         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
39597         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
39598         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
39599         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
39600         multiarch wcsrchr for PPC64.
39601
39602         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
39603         multiarch implementations.
39604         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39605         (__libc_ifunc_impl_list): Likewise.
39606         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
39607         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
39608         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
39609         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
39610         multiarch wcschr for PPC64.
39611
39612         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
39613         multiarch implementations.
39614         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39615         (__libc_ifunc_impl_list): Likewise.
39616         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
39617         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
39618         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
39619         multiarch strchrnul for PPC64.
39620
39621         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
39622         implementations.
39623         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39624         (__libc_ifunc_impl_list): Likewise.
39625         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
39626         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
39627         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
39628         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
39629         strchr for PPC64.
39630
39631         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
39632         implementations.
39633         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39634         (__libc_ifunc_impl_list): Likewise.
39635         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
39636         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
39637         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
39638         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
39639         strncmp for PPC64.
39640
39641         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
39642         multiarch implementations.
39643         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39644         (__libc_ifunc_impl_list): Likewise.
39645         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
39646         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
39647         strncasecmp for PPC64.
39648         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
39649         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
39650         multiarch strncasecmp_l for PPC64.
39651
39652         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
39653         multiarch implementations.
39654         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
39655         (__libc_ifunc_impl_list): Likewise.
39656         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
39657         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
39658         multiarch strcasecmp for PPC64.
39659         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
39660         file.
39661         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
39662         multiarch strcasecmp_l for PPC64.
39663
39664         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
39665         implementations.
39666         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39667         (__libc_ifunc_impl_list): Likewise.
39668         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
39669         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
39670         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
39671         strnlen for PPC64.
39672
39673         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
39674         implementations.
39675         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39676         (__libc_ifunc_impl_list): Likewise.
39677         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
39678         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
39679         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
39680         strlen for PPC64.
39681
39682         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
39683         implementations.
39684         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39685         (__libc_ifunc_impl_list): Likewise.
39686         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
39687         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
39688         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
39689         rawmemrchr for PPC64.
39690
39691         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
39692         implementation.
39693         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39694         (__libc_ifunc_impl_list): Likewise.
39695         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
39696         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
39697         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
39698         memrchr for PPC64.
39699
39700         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
39701         implementation.
39702         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39703         (__libc_ifunc_impl_list): Likewise.
39704         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
39705         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
39706         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
39707         memchr for PPC64.
39708
39709         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
39710         implementation.
39711         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39712         (__libc_ifunc_impl_list): Likewise.
39713         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
39714         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
39715         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
39716         mempcpy for PPC64.
39717
39718         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
39719         avoid cretion of __bzero symbol.
39720         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
39721         Likewise.
39722         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
39723         Likewise.
39724         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
39725         Likewise.
39726         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
39727         multiarch implementations.
39728         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39729         (__libc_ifunc_impl_list): Likewise.
39730         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
39731         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
39732         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
39733         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
39734         bzero for PPC32.
39735         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
39736         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
39737         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
39738         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
39739         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
39740         memset for PPC64.
39741         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
39742
39743         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
39744         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
39745         implementations.
39746         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
39747         (__libc_ifunc_impl_list): Likewise.
39748         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
39749         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
39750         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
39751         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
39752         memcmp for PPC64.
39753
39754         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
39755         multiarch for POWER/PPC64.
39756         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
39757         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
39758         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
39759         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
39760         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
39761         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
39762         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
39763         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
39764         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
39765         memcpy for PPC64.
39766
39767         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
39768         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
39769         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
39770         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
39771         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
39772         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
39773         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
39774         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
39775         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
39776         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
39777         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
39778         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
39779         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
39780         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
39781         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
39782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
39783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
39784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
39785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
39786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
39787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
39788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
39789
39790 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39791
39792         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
39793
39794 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
39795
39796         * benchtests/Makefile (bench): Add exp2 and log2.
39797         (LDLIBS-bench-exp2): Add -lm.
39798         (LDLIBS-bench-log2): Likewise.
39799         * benchtests/exp2-inputs: New inputs file.
39800         * benchtests/log2-inputs: New inputs file.
39801         * benchtests/log-inputs: Add new inputs.
39802         * benchtests/tan-inputs: Likewise.
39803
39804 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
39805
39806         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
39807         definition...
39808         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
39809         (csloww2): ... from here.
39810
39811         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
39812         instead of structures.
39813         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
39814         (POLYNOMIAL): Likewise.
39815         (TAYLOR_SLOW): Likewise.
39816         (__sin): Likewise.
39817         (__cos): Likewise.
39818         (slow1): Likewise.
39819         (slow2): Likewise.
39820         (sloww): Likewise.
39821         (sloww1); Likewise.
39822         (sloww2): Likewise.
39823         (bsloww1): Likewise.
39824         (bsloww2): Likewise.
39825         (cslow2): Likewise.
39826         (csloww): Likewise.
39827         (csloww1): Likewise.
39828         (csloww2): Likewise.
39829
39830 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
39831
39832         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
39833         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
39834         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
39835         * malloc/hooks.c (realloc_check): Likewise.
39836
39837         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
39838         * malloc/arena.c: Remove PER_THREAD conditional.
39839         [!PER_THREAD]: Remove code.
39840         (ptmalloc_unlock_all2): Likewise.
39841         (ptmalloc_init): Likewise.
39842         (_int_new_arena): Likewise.
39843         (arena_get2): Likewise.
39844         * malloc/hooks.c (__malloc_get_state): Likewise.
39845         (__malloc_set_state): Likewise.
39846         * malloc/malloc.c: Likewise.
39847         (struct malloc_state): Likewise.
39848         (struct malloc_par): Likewise.
39849         (__libc_realloc): Likewise.
39850         (__libc_mallopt): Likewise.
39851
39852 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39853
39854         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
39855
39856 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
39857
39858         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
39859         macro to a function.  Check for zero perturb_byte.
39860         (_int_malloc, _int_free): Remove zero perturb_byte checks.
39861
39862         * malloc/malloc.c: (force_reg): Remove.
39863         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
39864         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
39865         force_reg by atomic_forced_read.
39866         * malloc/arena.c (ptmalloc_init): Likewise.
39867         * malloc/hooks.c (top_check): Likewise.
39868
39869 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39870
39871         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39872
39873 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
39874
39875         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
39876
39877 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
39878
39879         * math/auto-libm-test-in: Add tests of lgamma.
39880         * math/auto-libm-test-out: Regenerated.
39881         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
39882         (M_LOG_2_SQRT_PIl): Likewise.
39883         (lgamma_test_data): Use AUTO_TESTS_f_f1.
39884         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39885         mpfr_f_f1.
39886         (func_calc_desc): Add mpfr_f_f1 union field.
39887         (ARGS1): New macro.
39888         (ARGS2): Likewise.
39889         (ARGS3): Likewise.
39890         (ARGS4): Likewise.
39891         (RET1): Likewise.
39892         (RET2): Likewise.
39893         (CALC): Likewise.
39894         (FUNC): Likewise.
39895         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
39896         (test_functions): Add lgamma.
39897         (calc_generic_results): Handle mpfr_f_f1.
39898         * sysdeps/i386/fpu/libm-test-ulps: Update.
39899         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39900
39901 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39902
39903         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
39904         __mpn_add_n for PowerPC64/POWER7.
39905         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
39906         __mpn_sub_n for PowerPC64/POWER7.
39907
39908         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
39909         __mpn_addmul_1 for PowerPC64.
39910         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
39911         __mpn_submul_1 for PowerPC64.
39912         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
39913         for PowerPC64.
39914         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
39915         for PowerPC64.
39916
39917 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
39918
39919         [BZ #15089]
39920         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
39921
39922 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39923
39924         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
39925
39926         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
39927         add multiarch folders.
39928         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
39929         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
39930         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
39931         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
39932         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
39933         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
39934         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
39935         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
39936         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
39937         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
39938         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
39939         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
39940         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
39941         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
39942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
39943         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
39944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
39945
39946         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
39947         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
39948         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
39949         New file.
39950         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
39951         New file.
39952         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
39953         multiarch __ieee754_hypot for PowerPC32.
39954         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
39955         New file.
39956         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
39957         New file.
39958         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
39959         multiarch __ieee754_hypotf for PowerPC32.
39960
39961         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
39962         long_double_symbol only if __logbl is defined.
39963         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
39964         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
39965         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
39966         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
39967         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
39968         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
39969         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
39970         path for implementation.
39971         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
39972         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
39973         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
39974         logb, and logbl multiarch implementations for PowerPC32.
39975         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
39976         file.
39977         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
39978         file.
39979         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
39980         multiarch logb for PowerPC32.
39981         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
39982         file.
39983         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
39984         file.
39985         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
39986         multiarch logbf for PowerPC32.
39987         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
39988         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
39989         file.
39990         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
39991         multiarch logbl implementation for PowerPC32.
39992
39993         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
39994         and modff multiarch implementations.
39995         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
39996         New file.
39997         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
39998         New file.
39999         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
40000         multiarch modf for PowerPC32.
40001         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
40002         New file.
40003         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
40004         New file.
40005         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
40006         multiarch modff for PowerPC32.
40007
40008         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
40009         and lrintf multiarch implementations.
40010         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
40011         New file.
40012         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
40013         New file.
40014         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
40015         multiarch lrint for PowerPC32.
40016         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
40017         file: multiarch lrintf for PowerPC32.
40018
40019         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
40020         and lroundf multiarch implementations.
40021         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
40022         New file.
40023         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
40024         New file.
40025         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
40026         New file.
40027         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
40028         multiarch lround for PowerPC32.
40029         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
40030         file: multiarch lroundf for PowerPC32.
40031
40032         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40033         copysign and copysignf multiarch implementations.
40034         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
40035         New file.
40036         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
40037         New file.
40038         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
40039         file: multiarch copysign for PowerPC32.
40040         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
40041         file: multiarch copysignf for PowerPC32.
40042
40043         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
40044         and truncf multiarch implementations.
40045         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
40046         New file.
40047         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
40048         file.
40049         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
40050         multiarch trunc for PowerPC32.
40051         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
40052         New file.
40053         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
40054         New file.
40055         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
40056         multiarch truncf for PowerPC32.
40057
40058         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
40059         and roundf multiarch implementations.
40060         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
40061         New file.
40062         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
40063         file.
40064         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
40065         multiarch round for PowerPC32.
40066         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
40067         New file.
40068         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
40069         New file.
40070         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
40071         multiarch roundf for PowerPC32.
40072
40073         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
40074         and floorf multiarch implementations.
40075         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
40076         New file.
40077         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
40078         file.
40079         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
40080         multiarch floor for PowerPC32.
40081         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
40082         New file.
40083         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
40084         New file.
40085         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
40086         multiarch floorf for PowerPC32.
40087
40088         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
40089         and ceilf multiarch implementations.
40090         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
40091         New file.
40092         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
40093         file.
40094         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
40095         multiarch ceil for PowerPC32.
40096         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
40097         New file.
40098         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
40099         file.
40100         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
40101         multiarch ceilf for PowerPC32.
40102
40103         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
40104         is defined.
40105         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
40106         FINITEF is defined.
40107         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
40108         and finitef multiarch implementations.
40109         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
40110         New file.
40111         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
40112         file.
40113         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
40114         multiarch finite for PowerPC32.
40115         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
40116         New file.
40117         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
40118         file: multiarch finitef for PowerPC32.
40119
40120         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
40121         and isinff multiarch implementations.
40122         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
40123         file.
40124         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
40125         file.
40126         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
40127         multiarch isinf for PowerPC32.
40128         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
40129         New file.
40130         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
40131         multiarch isinff for PowerPC32.
40132
40133         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
40134         alias when __isnan is defined.
40135         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
40136         and isnanf multiarch implementations.
40137         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
40138         file.
40139         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
40140         file.
40141         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
40142         file.
40143         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
40144         file.
40145         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
40146         multiarch isnan for PowerPC32.
40147         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
40148         New file.
40149         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
40150         New file.
40151         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
40152         multiarch isnanf for PowerPC32.
40153
40154         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
40155         and sqrtf multiarch implementations.
40156         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
40157         file.
40158         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
40159         file.
40160         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
40161         multiarch sqrt for PowerPC32.
40162         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
40163         file.
40164         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
40165         file.
40166         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
40167         multiarch sqrtf for PowerPC32.
40168
40169         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
40170         and llroundf multiarch implementations.
40171         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
40172         New file.
40173         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
40174         New file.
40175         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
40176         New file.
40177         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
40178         file: multiarch llround for PowerPC32.
40179         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
40180         file: multiarch llroundf for PowerPC32.
40181
40182         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
40183         multiarch PowerPC32 fpu implementations.
40184         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
40185         New file.
40186         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
40187         New file.
40188         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
40189         multiarch llrint for PowerPC32.
40190         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
40191         New file.
40192         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
40193         New file.
40194         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
40195         file.
40196
40197         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
40198
40199         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
40200         file.
40201         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
40202         file.
40203         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
40204         file.
40205         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
40206         multiarch wordcopy for PPC32.
40207         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40208         wordcopy objects.
40209         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40210         (__libc_ifunc_impl_list): Likewise.
40211         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
40212         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
40213         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
40214         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
40215         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
40216         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
40217
40218         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
40219         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
40220         file.
40221         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
40222         file.
40223         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
40224         file.
40225         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
40226         multiarch wcscpy for PPC32.
40227         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40228         multiarch objects.
40229         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40230         (__libc_ifunc_impl_list): Likewise.
40231         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40232         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40233         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
40234         sysdeps/powerpc/power6/wcscpy.c.
40235
40236         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
40237         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
40238         file.
40239         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
40240         file.
40241         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
40242         file.
40243         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
40244         multiarch wcsrchr for PPC32.
40245         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40246         multiarch objects.
40247         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40248         (__libc_ifunc_impl_list): Likewise.
40249         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40250         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40251         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
40252         sysdeps/powerpc/power6/wcsrchr.c.
40253
40254         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
40255         file.
40256         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
40257         file.
40258         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
40259         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
40260         multiarch wcschr for PPc32.
40261         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40262         multiarch objects.
40263         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40264         (__libc_ifunc_impl_list): Likewise.
40265         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
40266         * sysdeps/powerpc/power6/wcschr.c: ... to here.
40267         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
40268         sysdeps/powerpc/power6/wcschr.c.
40269
40270         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
40271         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
40272         file.
40273         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
40274         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
40275         file: multiarch strchr for PPC32.
40276         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
40277         multiarch objects.
40278         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40279         (__libc_ifunc_impl_list): Likewise.
40280
40281         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
40282         name.
40283         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
40284         file.
40285         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
40286         file.
40287         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
40288         multiarch strchrnul for PPC32.
40289         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
40290         multiarch objects.
40291         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40292         (__libc_ifunc_impl_list): Likewise.
40293
40294         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
40295         file.
40296         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
40297         multiarch strncasecmp for PPC32.
40298         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
40299         file.
40300         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
40301         multiarch strncasecmp_l for PPC32.
40302         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
40303         strncasecmp multiarch objects.
40304         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40305         (__libc_ifunc_impl_list): Likewise.
40306
40307         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
40308         file.
40309         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
40310         multiarch strncasecmp for PPC32.
40311         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
40312         New file.
40313         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
40314         multiarch strcasecmp_l for PPC32.
40315         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
40316         multiarch objects.
40317         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40318         (__libc_ifunc_impl_list): Likewise.
40319
40320         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
40321         file.
40322         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
40323         file.
40324         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
40325         multiarch strncmp for PPC32.
40326         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
40327         multiarch objects.
40328         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40329         (__libc_ifunc_impl_list): Likewise.
40330
40331         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
40332         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
40333         file.
40334         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
40335         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
40336         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
40337         multiarch objects.
40338         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40339         (__libc_ifunc_impl_list): Likewise.
40340
40341         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
40342         file.
40343         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
40344         file.
40345         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
40346         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
40347         multiarch objects.
40348         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40349         (__libc_ifunc_impl_list): Likewise.
40350
40351         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
40352         file.
40353         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
40354         file.
40355         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
40356         multiarch rawmemchr for PPC32.
40357         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
40358         multiarch objects.
40359         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40360         (__libc_ifunc_impl_list): Likewise.
40361
40362         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
40363         file.
40364         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
40365         file.
40366         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
40367         file: memrchr multiarch for PPC32.
40368         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
40369         multiarch objects.
40370         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40371         (__libc_ifunc_impl_list): Likewise.
40372
40373         * string/memchr.c (__memchr): Using macro to redefine symbol name.
40374         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
40375         file.
40376         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
40377         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
40378         multiarch memchr for PPC32.
40379         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
40380         multiarch objects.
40381         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40382         (__libc_ifunc_impl_list): Likewise.
40383
40384         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
40385         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
40386         file.
40387         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
40388         file.
40389         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
40390         file: multiarch mempcpy for PPC32.
40391         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
40392         multiarch objects.
40393         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40394         (__libc_ifunc_impl_list): Likewise.
40395
40396         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
40397         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
40398         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
40399         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
40400         multiarch bzero for PPC32.
40401         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
40402         file.
40403         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
40404         file.
40405         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
40406         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
40407         file: multiarch memset for PPC32.
40408         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
40409         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
40410         memset multiarch objects.
40411         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40412         (__libc_ifunc_impl_list): Likewise.
40413
40414         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
40415         file.
40416         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
40417         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
40418         memcmp for PPC32.
40419         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
40420         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
40421         multiarch objects.
40422         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40423         (__libc_ifunc_impl_list): Likewise.
40424
40425         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
40426         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
40427         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
40428         file.
40429         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
40430         file.
40431         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
40432         file.
40433         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
40434         multiarch memcpy for PPC32.
40435         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
40436         multiarch objects.
40437         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40438         (__libc_ifunc_impl_list): Likewise.
40439
40440         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
40441         support multiarch for POWER/PPC32.
40442         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
40443         Likewise.
40444         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
40445         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
40446         Implies file to make multiarch folder appers before the fpu and
40447         default folder for power4 configuration.
40448
40449 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
40450
40451         * scripts/bench.pl: Append volatile keyword to type.
40452
40453 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40454
40455         * sysdeps/sh/sotruss-lib.c: New file.
40456         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
40457
40458 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40459
40460         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40461
40462 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
40463
40464         [BZ #6810]
40465         * math/w_tgamma.c: Include <errno.h>.
40466         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
40467         * math/w_tgammaf.c: Include <errno.h>.
40468         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
40469         * math/w_tgammal.c: Include <errno.h>.
40470         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
40471         * math/auto-libm-test-in: Do not allow missing errno on tgamma
40472         underflow.  Add more tgamma tests.
40473         * math/auto-libm-test-out: Regenerated.
40474         * sysdeps/i386/fpu/libm-test-ulps: Update.
40475         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40476
40477         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
40478         sin, sinh, tan, tanh, tgamma, y0 and y1.
40479         * math/auto-libm-test-out: Regenerated.
40480         * math/libm-test.inc (TEST_COND_x86_64): New macro.
40481         (TEST_COND_x86): Likewise.
40482         (M_E2l): Remove macro.
40483         (M_E3l): Likewise.
40484         (M_2_SQRT_PIl): Likewise.
40485         (M_SQRT_PIl): Likewise.
40486         (M_1_DIV_El): Likewise.
40487         (log_test_data): Use AUTO_TESTS_f_f.
40488         (log10_test_data): Likewise.
40489         (log1p_test_data): Likewise.
40490         (log2_test_data): Likewise.
40491         (sin_test_data): Likewise.
40492         (sin_tonearest_test_data): Likewise.
40493         (sin_towardzero_test_data): Likewise.
40494         (sin_downward_test_data): Likewise.
40495         (sin_upward_test_data): Likewise.
40496         (sinh_test_data): Likewise.
40497         (sinh_tonearest_test_data): Likewise.
40498         (sinh_towardzero_test_data): Likewise.
40499         (sinh_downward_test_data): Likewise.
40500         (sinh_upward_test_data): Likewise.
40501         (tan_test_data): Likewise.
40502         (tan_tonearest_test_data): Likewise.
40503         (tan_towardzero_test_data): Likewise.
40504         (tan_downward_test_data): Likewise.
40505         (tan_upward_test_data): Likewise.
40506         (tanh_test_data): Likewise.
40507         (tgamma_test_data): Likewise.
40508         (y0_test_data): Likewise.
40509         (y1_test_data): Likewise.
40510         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
40511         (special_real_inputs): Add pi/4.
40512         * sysdeps/i386/fpu/libm-test-ulps: Update.
40513         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40514
40515 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40516
40517         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
40518         "longjmp_target" static probes.
40519         (__longjmp): Rename to __longjmp_symbol.
40520         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
40521         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
40522         on which longjmp to generate.
40523         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
40524         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
40525         probe.
40526         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40527         (__sigjmp_save): Rename to __sigjmp_save_symbol.
40528         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
40529         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
40530         and __sigjmp_save_symbol based on which sigsetjmp to generated.
40531         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
40532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
40533         __longjmp_symbol based on which __longjmp to generate.
40534         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
40535         probe.
40536         (setjmp): Rename to setjmp_symbol.
40537         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40538         (_setjmp): Rename to _setjmp_symbol.
40539         (__sigsetjmp): Rename to __sigsetjmp_symbol.
40540         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
40541         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
40542         which setjmp to generate.
40543         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
40544         "longjmp_target" static probes.
40545
40546 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
40547
40548         * benchtests/README: Add note about output arguments.
40549         * benchtests/bench-sincos.c: Remove file.
40550         * benchtests/sincos-inputs: New file.
40551         * scripts/bench.pl: Identify output arguments and define
40552         static variables for them.
40553
40554         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
40555
40556         [BZ #15941]
40557         * Makefile (INSTALL): Add install-plain.texi as the primary
40558         dependency.
40559         * manual/install-plain.texi: New file.
40560         * manual/install.texi: Include node directive only for
40561         non-plaintext output.
40562
40563 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
40564
40565         * stdlib/longlong.h: Update from GCC.
40566
40567         [BZ #6807]
40568         [BZ #15901]
40569         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
40570         * math/w_j0f.c (y0f): Likewise.
40571         * math/w_j0l.c (__y0l): Likewise.
40572         * math/w_j1.c (y1): Likewise.
40573         * math/w_j1f.c (y1f): Likewise.
40574         * math/w_j1l.c (__y1l): Likewise.
40575         * math/w_jn.c (yn): Likewise.
40576         * math/w_jnf.c (ynf): Likewise.
40577         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
40578         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
40579         value for Bessel function domain errors outside _SVID_ mode.
40580         Adjust sign of return value for yn (negative integer, 0).
40581         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
40582         by zero in return for negative x and set sign appropriately for
40583         negative n.
40584         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
40585         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
40586         * math/libm-test.inc (y0_test_data): Add more tests and adjust
40587         expectations in error cases.
40588         (y1_test_data): Likewise.
40589         (yn_test_data): Likewise.
40590         * sysdeps/i386/fpu/libm-test-ulps: Update.
40591         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40592
40593 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40594
40595         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
40596         "64" to "64-v1".  Add "64-v2".
40597         (abi-64-options): Rename to ...
40598         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
40599         (abi-64-condition): Rename to ...
40600         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
40601         (abi-64-ld-soname): Rename to ...
40602         (abi-64-v1-ld-soname): ... this.
40603         (abi-64-v2-options): Define.
40604         (abi-64-v2-condition): Likewise.
40605         (abi-64-v2-ld-soname): Likewise.
40606         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
40607         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
40608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
40609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
40610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
40611
40612 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40613             Alan Modra  <amodra@gmail.com>
40614
40615         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
40616         New versions for use with the ELFv2 ABI.
40617         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
40618         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
40619         declaration.
40620         (struct La_ppc64v2_retval): Likewise.
40621         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
40622         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
40623         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
40624         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
40625         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
40626         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
40627         Do not save or restore CR.
40628         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
40629         (_dl_profile_resolve): Do no save or restore CR.  Support extended
40630         return values for ELFv2 ABI.  Fix location of FPR return registers.
40631         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
40632         updated values for _CALL_ELF == 2.
40633         (La_regs, La_retval, int_retval): Likewise.
40634
40635 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40636
40637         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
40638         (FRAME_MIN_SIZE_PARM): Likewise.
40639         (FRAME_BACKCHAIN): Likewise.
40640         (FRAME_CR_SAVE): Likewise.
40641         (FRAME_LR_SAVE): Likewise.
40642         (FRAME_TOC_SAVE): Likewise.
40643         (FRAME_PARM_SAVE): Likewise.
40644         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
40645         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
40646         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
40647         (call_mcount_parm_offset): New macro.
40648         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
40649         (PROF): Use symbolic stack frame offsets.
40650         (TAIL_CALL_SYSCALL_ERROR): Likewise.
40651         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
40652         Redefine in terms of FRAME_MIN_SIZE.
40653         (_dl_runtime_resolve): Use symbolic stack frame offsets.
40654         (_dl_profile_resolve): Likewise.  Update comment.
40655         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
40656         symbols stack frame offsets.
40657         (__sigsetjmp): Likewise.
40658         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
40659         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
40660         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
40661         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
40662
40663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
40664         (FRAME_BACKCHAIN): Remove.
40665         (FRAME_CR_SAVE): Likewise.
40666         (FRAME_LR_SAVE): Likewise.
40667         (FRAME_COMPILER_DW): Likewise.
40668         (FRAME_LINKER_DW): Likewise.
40669         (FRAME_TOC_SAVE): Likewise.
40670         (FRAME_PARM_SAVE): Likewise.
40671         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
40672         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
40673         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
40674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
40675         (CHECK_SP): Use symbolic stack frame offsets.
40676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
40677         zone" instead of caller's parameter save area for temp storage.
40678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
40679         Likewise.  Also, use symbolic stack frame offsets.
40680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
40681         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
40682         our own stack frame instead of the caller's.
40683         (__socket): Use symbolic stack frame offsets.
40684
40685 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40686             Alan Modra  <amodra@gmail.com>
40687
40688         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
40689         Define.
40690         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
40691         (PPC64_LOCAL_ENTRY_OFFSET): Define.
40692         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
40693         New function.
40694         (elf_machine_fixup_plt): Call it.
40695         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
40696         reloc arguments.
40697         (elf_machine_rela): Update call to elf_machine_plt_conflict.
40698         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
40699         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
40700         r2 before calling target.
40701
40702 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40703             Alan Modra  <amodra@gmail.com>
40704
40705         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
40706         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
40707         versions of macros to support ELFv2 ABI.
40708         (LOCALENTRY): New macro.
40709         (ENTRY, EALIGN): Use it.
40710         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
40711         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
40712         fall through into ENTRY entry point.
40713         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
40714         Only define if _CALL_ELF != 2.
40715
40716         (elf_machine_matches_host): Verify ABI version matches.
40717         (RTLD_START): Use LOCALENTRY.
40718         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
40719         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
40720         (PLT_ENTRY_WORDS): New macro.
40721         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
40722         (elf_machine_runtime_setup): Support ELFv2 ABI.
40723         (elf_machine_fixup_plt): Likewise.
40724         (elf_machine_plt_conflict): Likewise.
40725         (resolve_ifunc): Likewise.
40726         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
40727         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
40728         Likewise.
40729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
40730         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
40731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
40732         (makecontext): Support ELFv2 ABI.
40733         * elf/elf.h (EF_PPC64_ABI): Define.
40734
40735 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40736
40737         * sysdeps/powerpc/powerpc64/sysdep.h
40738         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
40739         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
40740         (ENTRY) [ASSEMBLER]: ... but instead here ...
40741         (EALIGN) [ASSEMBLER]: ... and here.
40742         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
40743         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
40744         (ENTRY_2) [!ASSEMBLER]: Use it.
40745         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
40746         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
40747         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
40748         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
40749         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
40750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
40751         Use PPC64_LOAD_FUNCPTR.
40752
40753         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
40754
40755 2013-12-04  Alan Modra  <amodra@gmail.com>
40756
40757         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
40758         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
40759         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
40760         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
40761
40762         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
40763         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
40764         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
40765         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
40766         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
40767         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
40768
40769 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
40770
40771         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
40772         (__makecontext): Fix incorrect CFI when backtracing out of
40773         context created via makecontext.
40774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
40775         (__setcontext): Fix incorrect CFI during switch to new context.
40776         (__novec_setcontext): Likewise.
40777
40778 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
40779
40780         [BZ #4772]
40781         * time/strptime_l.c (__strptime_internal): Allow modifiers
40782         in strptime.
40783         * time/tst-strptime.c (day_tests): Add testcase.
40784
40785 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
40786
40787         * scripts/bench.pl: Skip over blank lines.
40788
40789 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
40790
40791         [BZ #926]
40792         * manual/time.texi (Calendar Time): Clarify what timezone functions
40793         use.
40794
40795 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40796
40797         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40798
40799 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
40800
40801         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
40802         implementation.
40803         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
40804         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
40805         * debug/memset_chk.c (__memset_chk): Likewise.
40806         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
40807         * debug/strncpy_chk.c: Likewise.
40808
40809 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
40810
40811         [BZ #15268]
40812         [BZ #15425]
40813         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
40814         (__ieee754_exp): For possibly underflowing results, check size of
40815         result and force underflow exception if required.
40816         * math/auto-libm-test-in: Add more tests of exp.
40817         * math/auto-libm-test-out: Regenerated.
40818         * sysdeps/i386/fpu/libm-test-ulps: Update.
40819         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40820
40821         [BZ #16283]
40822         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
40823         * math/w_exp2f.c (__exp2f): Likewise.
40824         * math/w_exp2l.c (__exp2l): Likewise.
40825         * math/auto-libm-test-in: Do not allow missing errno on exp2
40826         underflow.
40827         * math/auto-libm-test-out: Regenerated.
40828
40829 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
40830
40831         [BZ #16274]
40832         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
40833         handle filename validation.
40834         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
40835         (do_open): Delete.
40836
40837 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
40838
40839         [BZ #6786]
40840         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
40841         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
40842         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
40843         <float.h>.
40844         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
40845         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
40846         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
40847         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
40848         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
40849         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
40850         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
40851         * math/auto-libm-test-in: Don't allow missing errno from erfc.
40852         Add more erfc tests.
40853         * math/auto-libm-test-out: Regenerated.
40854         * sysdeps/i386/fpu/libm-test-ulps: Update.
40855         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40856
40857         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
40858         exp2, expm1, j0 and j1.
40859         * math/auto-libm-test-out: Regenerated.
40860         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
40861         (erfc_test_data): Likewise.
40862         (exp_test_data): Likewise.
40863         (exp_tonearest_test_data): Likewise.
40864         (exp_towardzero_test_data): Likewise.
40865         (exp_downward_test_data): Likewise.
40866         (exp_upward_test_data): Likewise.
40867         (exp10_test_data): Likewise.
40868         (exp2_test_data): Likewise.
40869         (expm1_test_data): Likewise.
40870         (j0_test_data): Likewise.
40871         (j1_test_data): Likewise.
40872         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
40873         (input_flag_type): Add flag_xfail_rounding.
40874         (input_flags): Add xfail-rounding.
40875         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
40876         (output_for_one_input_case): Handle flag_xfail_rounding.
40877         * sysdeps/i386/fpu/libm-test-ulps: Update.
40878         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40879
40880 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
40881
40882         [BZ #16289]
40883         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
40884         division by 0.
40885
40886 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
40887
40888         [BZ #16195]
40889         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
40890         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
40891         (STAP_PROBE0): New macro.
40892         (STAP_PROBE1): Likewise.
40893         (STAP_PROBE2): Likewise.
40894         (STAP_PROBE3): Likewise.
40895         (STAP_PROBE4): Likewise.
40896
40897 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
40898
40899         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
40900
40901 2013-12-02  Steve Ellcey  <sellcey@mips.com>
40902
40903         * benchtests/Makefile (bench): Add sqrt.
40904         (LDLIBS-bench-sqrt): New.
40905         * benchtests/sqrt-input: New.
40906
40907 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
40908
40909         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
40910         (GAIH_EAI): Likewise.
40911         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
40912         (gaih_inet): Likewise.
40913         (getaddrinfo): Don't use GAIH_EAI.
40914
40915         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
40916         (struct gaih): Remove definition.
40917
40918 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
40919
40920         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
40921         Use HERRNOP directly.
40922
40923 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40924
40925         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40926
40927 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
40928
40929         * math/gen-auto-libm-tests.c (test_functions): Add more
40930         single-argument functions.
40931         (special_fill_pi_2): New function.
40932         (special_fill_minus_pi_2): Likewise.
40933         (special_fill_pi_6): Likewise.
40934         (special_fill_minus_pi_6): Likewise.
40935         (special_fill_pi_3): Likewise.
40936         (special_fill_2pi_3): Likewise.
40937         (special_fill_e): Likewise.
40938         (special_fill_1_e): Likewise.
40939         (special_fill_e_minus_1): Likewise.
40940         (special_real_inputs): Add more special inputs.
40941         (output_for_one_input_case): Do not require ERANGE on underflow to
40942         zero if round-to-nearest result does not underflow to zero, unless
40943         exact results required.
40944         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
40945         atan, atanh, cbrt, cos and cosh.
40946         * math/auto-libm-test-out: Regenerated.
40947         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
40948         (acos_tonearest_test_data): Likewise.
40949         (acos_towardzero_test_data): Likewise.
40950         (acos_downward_test_data): Likewise.
40951         (acos_upward_test_data): Likewise.
40952         (acosh_test_data): Likewise.
40953         (asin_test_data): Likewise.
40954         (asin_tonearest_test_data): Likewise.
40955         (asin_towardzero_test_data): Likewise.
40956         (asin_upward_test_data): Likewise.
40957         (asinh_test_data): Likewise.
40958         (atan_test_data): Likewise.
40959         (atanh_test_data): Likewise.
40960         (cbrt_test_data): Likewise.
40961         (cos_test_data): Likewise.
40962         (cos_tonearest_test_data): Likewise.
40963         (cos_towardzero_test_data): Likewise.
40964         (cos_downward_test_data): Likewise.
40965         (cos_upward_test_data): Likewise.
40966         (cosh_test_data): Likewise.
40967         (cosh_tonearest_test_data): Likewise.
40968         (cosh_towardzero_test_data): Likewise.
40969         (cosh_downward_test_data): Likewise.
40970         (cosh_upward_test_data): Likewise.
40971         * sysdeps/i386/fpu/libm-test-ulps: Update.
40972         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40973
40974 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
40975
40976         [BZ #6787]
40977         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
40978         * math/w_exp10f.c (__exp10f): Likewise.
40979         * math/w_exp10l.c (__exp10l): Likewise.
40980         * math/libm-test.inc (exp10_test_data): Add more tests and expect
40981         errno settings in existing tests.
40982
40983         [BZ #14032]
40984         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
40985         precision control set to double precision.
40986         * sysdeps/i386/fpu/w_sqrt.c: New file.
40987         * math/auto-libm-test-in: Add more tests.
40988         * math/auto-libm-test-out: Update.
40989
40990         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
40991         (sqrt_test_tonearest): New function.
40992         (sqrt_towardzero_test_data): New variable.
40993         (sqrt_test_towardzero): New function.
40994         (sqrt_downward_test_data): New variable.
40995         (sqrt_test_downward): New function.
40996         (sqrt_upward_test_data): New variable.
40997         (sqrt_test_upward): New function.
40998         (main): Call the new functions.
40999
41000         * math/gen-auto-libm-tests.c: New file.
41001         * math/auto-libm-test-in: Likewise.
41002         * math/auto-libm-test-out: New generated file.
41003         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
41004         variables.
41005         (%beautify): Add generated representations of zero.
41006         (top level): Set $auto_input and call parse_auto_input.
41007         (beautify): Remove trailing "f" from hex float constants.
41008         (parse_args): Handle XFAIL_TEST.
41009         (convert_condition): New function.
41010         (or_value): Likewise.
41011         (or_cond_value): Likewise.
41012         (generate_testfile): Handle AUTO_TESTS_* lines.
41013         (parse_auto_input): New function.
41014         * math/libm-test.inc (XFAIL_TEST): New macro.
41015         (ERRNO_UNCHANGED): Update value.
41016         (ERRNO_EDOM): Likewise.
41017         (ERRNO_ERANGE): Likewise.
41018         (IGNORE_RESULT): Likewise.
41019         (TEST_COND_flt_32): New macro.
41020         (TEST_COND_dbl_64): Likewise.
41021         (TEST_COND_ldbl_96_intel): Likewise.
41022         (TEST_COND_ldbl_96_m68k): Likewise.
41023         (TEST_COND_ldbl_128): Likewise.
41024         (TEST_COND_ldbl_128ibm): Likewise.
41025         (TEST_COND_long32): Likewise.
41026         (TEST_COND_long64): Likewise.
41027         (TEST_COND_before_rounding): Likewise.
41028         (TEST_COND_after_rounding): Likewise.
41029         (enable_test): Handle XFAIL_TEST flag.
41030         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
41031         with finite results.
41032         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
41033         auto-libm-test-out.
41034
41035 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
41036             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41037
41038         [BZ #16214]
41039         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
41040         __tls_get_addr_internal instead of __tls_get_offset in order to
41041         avoid GOT pointer dependency.  Make rtld export
41042         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
41043         __tls_get_addr since we are a __tls_get_offset platform.
41044         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
41045         GOT pointer being set up before.
41046         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
41047
41048 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
41049
41050         * manual/math.texi (Errors in Math Functions): Document accuracy
41051         goals.
41052
41053         [BZ #15004]
41054         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
41055         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
41056         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
41057         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
41058         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
41059         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
41060         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
41061         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
41062         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
41063         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
41064         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
41065         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
41066         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
41067         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
41068         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
41069         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
41070
41071         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
41072         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
41073         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
41074         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
41075         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
41076         Likewise.
41077         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
41078         Likewise.
41079         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
41080         Likewise.
41081         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
41082         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
41083         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
41084         atomic-feupdateenv and flt-rounds.
41085         * sysdeps/powerpc/nofpu/Versions (libc): Add
41086         __atomic_feholdexcept, __atomic_feclearexcept,
41087         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
41088         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
41089         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
41090         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
41091         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
41092         here.
41093         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
41094         Update.
41095
41096         * manual/arith.texi (FP Exceptions): Document that exceptions may
41097         not be raised when matherr is used.
41098         (Math Error Reporting): Document overflow in directed rounding
41099         modes.  Document that errno may not be set when finite values are
41100         returned on overflow.  Document intent to set errno on underflow
41101         only for underflow to zero.
41102
41103         [BZ #16271]
41104         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
41105         round-to-nearest then adjust result for other rounding modes.
41106         * include/fenv.h (fegetround): Use libm_hidden_proto.
41107         * math/fegetround.c (fegetround): Use libm_hidden_def.
41108         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
41109         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
41110         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41111         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
41112         Likewise.
41113         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
41114         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
41115         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
41116         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
41117
41118 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41119
41120         [BZ #16077]
41121         * nss/Versions (libnss_files): Add
41122         _nss_files_gethostbyname3_r.
41123         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
41124         New function.
41125         (HOST_DB_LOOKUP): Remove macro.
41126         (_nss_files_gethostbyname_r): Implement function without the
41127         HOST_DB_LOOKUP macro.
41128         (_nss_files_gethostbyname2_r): Likewise.
41129
41130 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
41131
41132         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
41133
41134 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
41135
41136         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
41137         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
41138         warning.
41139
41140 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41141
41142         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
41143         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
41144         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
41145         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
41146         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
41147         __fe_nomask_env_priv and attribute_hidden.
41148         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
41149         (libc_feupdateenv_test_ppc): Likewise.
41150         (libc_feresetround_ppc): Likewise.
41151         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41152         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
41153         compat_symbol macro.
41154         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41155         (__fe_nomask_env): Likewise.
41156         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
41157
41158 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41159
41160         * string/Makefile: Remove ifunc tests.
41161         * string/test-string.h: Define TEST_IFUNC.
41162         * string/test-bcopy-ifunc.c: Remove.
41163         * string/test-bzero-ifunc.c: Likewise.
41164         * string/test-memccpy-ifunc.c: Likewise.
41165         * string/test-memchr-ifunc.c: Likewise.
41166         * string/test-memcmp-ifunc.c: Likewise.
41167         * string/test-memcpy-ifunc.c: Likewise.
41168         * string/test-memmem-ifunc.c: Likewise.
41169         * string/test-memmove-ifunc.c: Likewise.
41170         * string/test-mempcpy-ifunc.c: Likewise.
41171         * string/test-memrchr-ifunc.c: Likewise.
41172         * string/test-memset-ifunc.c: Likewise.
41173         * string/test-rawmemchr-ifunc.c: Likewise.
41174         * string/test-stpcpy-ifunc.c: Likewise.
41175         * string/test-stpncpy-ifunc.c: Likewise.
41176         * string/test-strcasecmp-ifunc.c: Likewise.
41177         * string/test-strcasestr-ifunc.c: Likewise.
41178         * string/test-strcat-ifunc.c: Likewise.
41179         * string/test-strchr-ifunc.c: Likewise.
41180         * string/test-strchrnul-ifunc.c: Likewise.
41181         * string/test-strcmp-ifunc.c: Likewise.
41182         * string/test-strcpy-ifunc.c: Likewise.
41183         * string/test-strcspn-ifunc.c: Likewise.
41184         * string/test-strlen-ifunc.c: Likewise.
41185         * string/test-strncasecmp-ifunc.c: Likewise.
41186         * string/test-strncat-ifunc.c: Likewise.
41187         * string/test-strncmp-ifunc.c: Likewise.
41188         * string/test-strncpy-ifunc.c: Likewise.
41189         * string/test-strnlen-ifunc.c: Likewise.
41190         * string/test-strpbrk-ifunc.c: Likewise.
41191         * string/test-strrchr-ifunc.c: Likewise.
41192         * string/test-strspn-ifunc.c: Likewise.
41193         * string/test-strstr-ifunc.c: Likewise.
41194
41195 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41196
41197         * benchtests/Makefile: Remove ifunc tests.
41198         * benchtests/bench-string.h: Define TEST_IFUNC.
41199         * benchtests/bench-bcopy-ifunc.c: Remove.
41200         * benchtests/bench-bzero-ifunc.c: Likewise.
41201         * benchtests/bench-memccpy-ifunc.c: Likewise.
41202         * benchtests/bench-memchr-ifunc.c: Likewise.
41203         * benchtests/bench-memcmp-ifunc.c: Likewise.
41204         * benchtests/bench-memcpy-ifunc.c: Likewise.
41205         * benchtests/bench-memmem-ifunc.c: Likewise.
41206         * benchtests/bench-memmove-ifunc.c: Likewise.
41207         * benchtests/bench-mempcpy-ifunc.c: Likewise.
41208         * benchtests/bench-memrchr-ifunc.c: Likewise.
41209         * benchtests/bench-memset-ifunc.c: Likewise.
41210         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
41211         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
41212         * benchtests/bench-stpcpy-ifunc.c: Likewise.
41213         * benchtests/bench-stpncpy-ifunc.c: Likewise.
41214         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
41215         * benchtests/bench-strcasestr-ifunc.c: Likewise.
41216         * benchtests/bench-strcat-ifunc.c: Likewise.
41217         * benchtests/bench-strchr-ifunc.c: Likewise.
41218         * benchtests/bench-strchrnul-ifunc.c: Likewise.
41219         * benchtests/bench-strcmp-ifunc.c: Likewise.
41220         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
41221         * benchtests/bench-strcpy-ifunc.c: Likewise.
41222         * benchtests/bench-strcspn-ifunc.c: Likewise.
41223         * benchtests/bench-strlen-ifunc.c: Likewise.
41224         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
41225         * benchtests/bench-strncat-ifunc.c: Likewise.
41226         * benchtests/bench-strncmp-ifunc.c: Likewise.
41227         * benchtests/bench-strncpy-ifunc.c: Likewise.
41228         * benchtests/bench-strnlen-ifunc.c: Likewise.
41229         * benchtests/bench-strpbrk-ifunc.c: Likewise.
41230         * benchtests/bench-strrchr-ifunc.c: Likewise.
41231         * benchtests/bench-strsep-ifunc.c: Likewise.
41232         * benchtests/bench-strspn-ifunc.c: Likewise.
41233         * benchtests/bench-strstr-ifunc.c: Likewise.
41234
41235 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41236
41237         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
41238
41239 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41240
41241         * resolv/netdb.h: Use __glibc_reserved instead __unused.
41242         * rt/aio.h: Likewise.
41243         * sysdeps/gnu/bits/utmp.h: Likewise.
41244         * sysdeps/gnu/bits/utmpx.h: Likewise.
41245         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
41246         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
41247         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
41248         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
41249         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
41250         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
41251         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
41252         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
41253         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
41254         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
41255         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
41256         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
41257         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
41258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
41259         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
41260         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
41261         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
41262         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
41263         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
41264         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
41265         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
41266         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
41267         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
41268         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
41269         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
41270         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
41271         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
41272         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
41273         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
41274         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
41275         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
41276         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
41277         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
41278         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
41279         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
41280         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
41281         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
41282         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
41283         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
41284         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
41285         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
41286         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
41287
41288 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
41289
41290         [BZ #16245]
41291         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
41292         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
41293
41294 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
41295
41296         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
41297         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
41298         Likewise.
41299
41300 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41301
41302         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
41303         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
41304         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
41305         (__fesetround): Remove define.
41306         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
41307         rounding and exceptions handling.
41308         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
41309         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
41310         (__fe_nomask_env): Likewise.
41311         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
41312         __fegetround instead of fegetround.
41313         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
41314         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
41315
41316 2013-11-21  Roland McGrath  <roland@hack.frob.com>
41317
41318         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
41319         it's there.
41320
41321         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
41322
41323 2013-11-21  Meador Inge  <meadori@codesourcery.com>
41324
41325         [BZ #11157]
41326         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
41327         (encrypt_r): Likewise.
41328         * malloc/obstack.h (obstack_free): Likewise.
41329         * posix/unistd.h (encrypt): Likewise.
41330
41331 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
41332
41333         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
41334         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
41335         DL_CALL_DT_FINI() that call the functions directly.
41336         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
41337         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
41338         * elf/dl-fini.c: Likewise.
41339
41340 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
41341
41342         * malloc/hooks.c (memalign_check): Add alignment rounding.
41343         * malloc/malloc.c (_mid_memalign): New function.
41344         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
41345         Implement by calling _mid_memalign.
41346         * manual/probes.texi (Memory Allocation Probes): Remove
41347         memory_valloc_retry and memory_pvalloc_retry.
41348
41349 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
41350
41351         * locale/programs/locarchive.c (open_archive): Add const
41352         qualifier to ARCHIVEFNAME and copy default fname to
41353         DEFAULT_FNAME.
41354
41355         [BZ #15601]
41356         * libio/tst-widetext.input: Rename Oriya to Odia.
41357         * locale/iso-639.def: Likewise.
41358
41359         * manual/probes.texi (Mathematical Function Probes): Add
41360         documentation for sin, cos, asin and acos probes.
41361         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
41362         (__sin32): Add slowasin probe.
41363         (__cos32): Add slowacos probe.
41364         (__mpsin): Add slowsin probe.
41365         (__mpcos): Add slowcos probe.
41366
41367 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
41368
41369         [BZ #15483]
41370         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
41371         thread-local __sim_exceptions_thread and global
41372         __sim_exceptions_global.
41373         (__sim_disabled_exceptions): Change to thread-local
41374         __sim_disabled_exceptions_thread and global
41375         __sim_disabled_exceptions_global.
41376         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
41377         and global __sim_round_mode_global.
41378         (__simulate_exceptions): Use thread-local floating-point state and
41379         set global state from it as needed.
41380         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
41381         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
41382         __sim_round_mode_thread.
41383         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
41384         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
41385         and global __sim_exceptions_global.
41386         (__sim_disabled_exceptions): Change to thread-local
41387         __sim_disabled_exceptions_thread and global
41388         __sim_disabled_exceptions_global.
41389         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
41390         and global __sim_round_mode_global.
41391         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
41392         (SIM_SET_GLOBAL): Likewise.
41393         * sysdeps/powerpc/soft-fp/sfp-machine.h
41394         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
41395         __sim_round_mode_thread.
41396         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
41397         __sim_disabled_exceptions_thread.
41398         (__sim_exceptions): Change to __sim_exceptions_thread.
41399         (__sim_disabled_exceptions): Change to
41400         __sim_disabled_exceptions_thread.
41401         (__sim_round_mode): Change to __sim_round_mode_thread.
41402         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
41403         thread-local floating-point state and set global state from it as
41404         needed.
41405         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
41406         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
41407         (__sim_disabled_exceptions): Remove extern declaration.
41408         (feenableexcept): Use thread-local floating-point state and set
41409         global state from it as needed.
41410         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
41411         extern declaration.
41412         (__sim_disabled_exceptions): Likewise.
41413         (__sim_round_mode): Likewise.
41414         (__fegetenv): Use thread-local floating-point state.
41415         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
41416         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41417         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
41418         floating-point state and set global state from it as needed.
41419         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
41420         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
41421         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
41422         Likewise.
41423         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
41424         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
41425         Likewise.
41426         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
41427         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
41428         Use __sim_round_mode_thread.
41429         * math/test-fenv-tls.c: New file.
41430         * math/Makefile (tests): Add test-fenv-tls.
41431         ($(objpfx)test-fenv-tls): Depend on
41432         $(common-objpfx)nptl/libpthread.so.
41433
41434 2013-11-19  Andreas Schwab  <schwab@suse.de>
41435
41436         * locale/programs/locale.c (show_info): Decode wordarray elements.
41437         * locale/categories.def (LC_MONETARY): Add element for
41438         _NL_MONETARY_CRNCYSTR.
41439         * locale/C-monetary.c (conversion_rate): New variable.
41440         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
41441         element.
41442
41443 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
41444
41445         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
41446         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
41447
41448 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
41449
41450         * elf/Makefile (tst-auxv): New test.
41451         * elf/tst-auxv.c: New
41452         * elf/rtld.c (dl_main): Adjust AT_EXECFN
41453
41454 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
41455
41456         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
41457         (hidden_proto): Caller changed.
41458         (hidden_tls_proto): New macro.
41459         (libc_hidden_tls_proto): Likewise.
41460         (rtld_hidden_tls_proto): Likewise.
41461         (libm_hidden_tls_proto): Likewise.
41462         (libresolv_hidden_tls_proto): Likewise.
41463         (librt_hidden_tls_proto): Likewise.
41464         (libdl_hidden_tls_proto): Likewise.
41465         (libnss_files_hidden_tls_proto): Likewise.
41466         (libnsl_hidden_tls_proto): Likewise.
41467         (libnss_nisplus_hidden_tls_proto): Likewise.
41468         (libutil_hidden_tls_proto): Likewise.
41469
41470 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
41471
41472         [BZ #10253]
41473         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
41474         (decompose_rpath): Defer expansion to fillin_rpath.
41475         (_dl_init_paths): Pass linkmap to fillin_rpath.
41476
41477 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
41478
41479         * benchtests/Makefile: Add strsep.
41480         * benchtests/bench-strsep.c: New file: strsep benchtest.
41481         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
41482
41483 2013-11-18  Andreas Schwab  <schwab@suse.de>
41484
41485         * locale/programs/locale.c (show_info) [case byte]: Check for
41486         '\377' instead of '\177'.
41487         * locale/C-monetary.c (not_available): Always use "\377".
41488         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
41489         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
41490         detect unavailable sign_posn locale elements.
41491         * locale/localeconv.c (__localeconv): For grouping and
41492         mon_grouping handle "\177" and "\377" like no grouping.
41493         (INT_ELEM): New macro.  Use it to set all numeric members.
41494         * locale/programs/ld-monetary.c (monetary_read)
41495         <tok_mon_grouping>: Normalize single -1 to the empty string.
41496         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
41497         Likewise.
41498
41499 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
41500
41501         [BZ #16055]
41502         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
41503         when we match (nil).
41504         * stdio-common/tst-sscanf.c (struct test): Add testcase.
41505
41506 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
41507
41508         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
41509         (NO_TEST_INLINE): Update value.
41510         (ERRNO_UNCHANGED): Likewise.
41511         (ERRNO_EDOM): Likewise.
41512         (ERRNO_ERANGE): Likewise.
41513         (IGNORE_RESULT): Likewise.
41514         (check_float_internal): Check signs of NaN results if
41515         TEST_NAN_SIGN used.
41516         (check_complex): Pass TEST_NAN_SIGN flag through to second
41517         check_float_internal call.
41518         (copysign_test_data): Add tests with quiet NaNs as second
41519         argument.  Use TEST_NAN_SIGN.
41520         (fabs_test_data): Add test of negative quiet NaN argument.  Use
41521         TEST_NAN_SIGN.
41522         (signbit_test_data): Add tests of quiet NaN argument.
41523         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
41524
41525         * math/gen-libm-test.pl (show_exceptions): Take extra argument
41526         $ignore_result.
41527         (parse_args): Handle function results specified as IGNORE.
41528         * math/libm-test.inc (IGNORE_RESULT): New macro.
41529         (check_float_internal): Do not check numerical result if flag
41530         IGNORE_RESULT set.
41531         (check_complex): Pass through IGNORE_RESULT to second
41532         check_float_internal call.
41533         (check_int): Do not check numerical result if flag IGNORE_RESULT
41534         set.
41535         (check_long): Likewise.
41536         (check_bool): Likewise.
41537         (check_longlong): Likewise.
41538         (lrint_test_data): Add tests of infinite and NaN arguments.
41539         (lrint_tonearest_test_data): Likewise.
41540         (lrint_towardzero_test_data): Likewise.
41541         (lrint_downward_test_data): Likewise.
41542         (lrint_upward_test_data): Likewise.
41543         (llrint_test_data): Likewise.
41544         (llrint_tonearest_test_data): Likewise.
41545         (llrint_towardzero_test_data): Likewise.
41546         (llrint_downward_test_data): Likewise.
41547         (llrint_upward_test_data): Likewise.
41548         (lround_test_data): Likewise.
41549         (llround_test_data): Likewise.
41550
41551         * math/libm-test.inc (NO_TEST_INLINE): New macro.
41552         (ERRNO_UNCHANGED): Update value.
41553         (ERRNO_EDOM): Likewise.
41554         (ERRNO_ERANGE): Likewise.
41555         (NO_TEST_INLINE_FLOAT): New macro.
41556         (NO_TEST_INLINE_DOUBLE): Likewise.
41557         (enable_test): New function.
41558         (RUN_TEST_f_f): Check enable_test before running test.
41559         (RUN_TEST_2_f): Likewise.
41560         (RUN_TEST_fff_f): Likewise.
41561         (RUN_TEST_c_f): Likewise.
41562         (RUN_TEST_f_f1): Likewise.
41563         (RUN_TEST_fF_f1): Likewise.
41564         (RUN_TEST_fI_f1): Likewise.
41565         (RUN_TEST_ffI_f1): Likewise.
41566         (RUN_TEST_c_c): Likewise.
41567         (RUN_TEST_cc_c): Likewise.
41568         (RUN_TEST_f_i): Likewise.
41569         (RUN_TEST_f_i_tg): Likewise.
41570         (RUN_TEST_ff_i_tg): Likewise.
41571         (RUN_TEST_f_b): Likewise.
41572         (RUN_TEST_f_b_tg): Likewise.
41573         (RUN_TEST_f_l): Likewise.
41574         (RUN_TEST_f_L): Likewise.
41575         (RUN_TEST_fFF_11): Likewise.
41576         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
41577         conditionals.
41578         (cosh_test_data): Likewise.
41579         (exp_test_data): Likewise.
41580         (expm1_test_data): Likewise.
41581         (hypot_test_data): Likewise.
41582         (pow_test_data): Likewise.
41583         (sinh_test_data): Likewise.
41584         (tanh_test_data): Likewise.
41585         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
41586         flags argument.
41587
41588         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
41589         tests with quiet NaN input and output.
41590         (acosh_test_data): Likewise.
41591         (asin_test_data): Likewise.
41592         (asinh_test_data): Likewise.
41593         (atan_test_data): Likewise.
41594         (atanh_test_data): Likewise.
41595         (atan2_test_data): Likewise.
41596         (cbrt_test_data): Likewise.
41597         (cos_test_data): Likewise.
41598         (cosh_test_data): Likewise.
41599         (erf_test_data): Likewise.
41600         (erfc_test_data): Likewise.
41601         (exp_test_data): Likewise.
41602         (exp10_test_data): Likewise.
41603         (exp2_test_data): Likewise.
41604         (expm1_test_data): Likewise.
41605         (hypot_test_data): Likewise.
41606         (j0_test_data): Likewise.
41607         (j1_test_data): Likewise.
41608         (jn_test_data): Likewise.
41609         (lgamma_test_data): Likewise.
41610         (log_test_data): Likewise.
41611         (log10_test_data): Likewise.
41612         (log1p_test_data): Likewise.
41613         (log2_test_data): Likewise.
41614         (pow_test_data): Likewise.
41615         (scalb_test_data): Likewise.
41616         (sin_test_data): Likewise.
41617         (sincos_test_data): Likewise.
41618         (sinh_test_data): Likewise.
41619         (tan_test_data): Likewise.
41620         (tanh_test_data): Likewise.
41621         (tgamma_test_data): Likewise.
41622         (y0_test_data): Likewise.
41623         (y1_test_data): Likewise.
41624         (yn_test_data): Likewise.
41625
41626         [BZ #16167]
41627         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
41628         argument being NaN and avoid computations with second argument in
41629         that case.
41630         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
41631         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
41632         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
41633
41634 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
41635
41636         * locale/iso-639.def: Add Chitwani Tharu (the).
41637
41638 2013-11-14  Andreas Schwab  <schwab@suse.de>
41639
41640         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
41641         word instead of empty string.
41642
41643 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41644
41645         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41646         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
41647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41648         (__fe_nomask_env): Likewise.
41649
41650 2013-11-13  Steve Ellcey  <sellcey@mips.com>
41651
41652         * benchtests/bench-timing.h: Include time.h.
41653
41654 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
41655
41656         [BZ #15997]
41657         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
41658         to 3.4.0 for x32.
41659         * sysdeps/unix/sysv/linux/configure: Regenerated.
41660
41661 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
41662
41663         [BZ #16151]
41664         * stdlib/strtod_l.c (round_and_return): Do not consider
41665         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
41666         exponent one less than half the least subnormal exponent.
41667         * stdlib/test-strtod-round-data: Add more tests.
41668         * stdlib/tst-strtod-round.c (tests): Regenerated.
41669
41670 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41671
41672         [BZ #14143]
41673         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
41674         (__fe_mask_env): Likewise.
41675         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
41676         libm_hidden_proto and add function prototype.
41677         (__fe_mask_env): Add function prototype.
41678         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41679         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
41680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
41681         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
41682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41683         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
41684
41685 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
41686
41687         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
41688         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
41689
41690 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
41691
41692         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
41693         of htab_find_slot().
41694
41695 2013-11-11  David S. Miller  <davem@davemloft.net>
41696
41697         [BZ #16150]
41698         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
41699         symbol in the non-vis3 case in static builds.
41700         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
41701         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
41702         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
41703         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
41704
41705 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
41706
41707         [BZ #387]
41708         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
41709         it is empty.
41710
41711 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41712
41713         * benchtests/Makefile: Add bench-strtod.
41714         * benchtests/bench-strtod.c: New file: strtod benchtest
41715
41716 2013-11-11  Andreas Schwab  <schwab@suse.de>
41717
41718         [BZ #16153]
41719         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
41720         terminating NUL in key length.
41721
41722 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41723
41724         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
41725         Add artificial ODP entry for vDSO symbol for PPC64.
41726         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
41727         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
41728
41729 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
41730
41731         [BZ #15374]
41732         * nss/getent.c (services_keys): Recognize services starting with digit.
41733
41734 2013-11-06  David S. Miller  <davem@davemloft.net>
41735
41736         [BZ #15985]
41737         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
41738         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
41739
41740 2013-11-06  Will Newton  <will.newton@linaro.org>
41741
41742         * manual/memory.texi (Malloc Examples): Remove register
41743         keyword from examples.
41744
41745 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
41746
41747         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
41748
41749 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
41750
41751         [BZ #6981]
41752         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
41753         depending on [__GCC_IEC_559 > 0].
41754         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
41755         depending on [__GCC_IEC_559_COMPLEX > 0].
41756
41757 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
41758
41759         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
41760         to iso-639.def.
41761
41762 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
41763
41764         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
41765
41766 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
41767
41768         [BZ #16112]
41769         * malloc/malloc (malloc_info): Do not handle first bin as
41770         special case.
41771
41772 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
41773
41774         * locale/iso-639.def: Add Central Nahuatl (nhn).
41775
41776 2013-11-01  Bruno Haible  <bruno@clisp.org>
41777
41778         [BZ #7003]
41779         * manual/math.texi (BSD Random): Specify range upper bound as
41780         in POSIX.
41781
41782 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
41783
41784         * locale/iso-639.def: Add Meadow Mari (mhr).
41785
41786 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
41787
41788         [BZ #14752], [BZ #15763]
41789         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
41790         Validate name.
41791         * rt/tst_shm.c: Add test for escaping directory.
41792
41793 2013-10-31  Andreas Schwab  <schwab@suse.de>
41794
41795         [BZ #15917]
41796         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
41797         followed by 'x' as part of digit sequence.
41798         * stdio-common/tst-sscanf.c (double_tests2): New tests.
41799
41800 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
41801
41802         [BZ #16037]
41803         * configure.ac: allow GNU Make 4.0 and greater.
41804         * configure: Regenerated.
41805
41806 2013-10-30  Will Newton  <will.newton@linaro.org>
41807
41808         [BZ #16038]
41809         * malloc/hooks.c (memalign_check): Limit alignment to the
41810         maximum representable power of two.
41811         * malloc/malloc.c (__libc_memalign): Likewise.
41812         * malloc/tst-memalign.c (do_test): Add test for very
41813         large alignment values.
41814         * malloc/tst-posix_memalign.c (do_test): Likewise.
41815
41816 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
41817
41818         [BZ #11087]
41819         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
41820         (munmap_chunk): Likewise.
41821         (mremap_chunk): Likewise.
41822
41823 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
41824
41825         [BZ #15799]
41826         * stdlib/div.c (div): Remove obsolete code.
41827         * stdlib/ldiv.c (ldiv): Likewise.
41828         * stdlib/lldiv.c (lldiv): Likewise.
41829
41830 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
41831
41832         [BZ #16071]
41833         * nss/nss_files/files-XXX.c (get_contents_ret): New
41834         enumerator.
41835         (get_contents): New function.
41836         (internal_getent): Use it.  Expand size of LINEBUFLEN.
41837
41838 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
41839
41840         * configure.in: Moved to ...
41841         * configure.ac: ... here. Change reference to configure.in
41842         to configure.ac.
41843         * sysdeps/arm/preconfigure.ac: ... here.
41844         configure.in to configure.ac.
41845         * sysdeps/gnu/configure.in: Moved to ...
41846         * sysdeps/gnu/configure.ac: ... here.
41847         * sysdeps/i386/configure.in: Moved to ...
41848         * sysdeps/i386/configure.ac: ... here.
41849         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
41850         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
41851         * sysdeps/mach/configure.in: Moved to ...
41852         * sysdeps/mach/configure.ac: ... here.
41853         * sysdeps/mach/hurd/configure.in: Moved to ...
41854         * sysdeps/mach/hurd/configure.ac: ... here.
41855         * sysdeps/powerpc/configure.in: Moved to ...
41856         * sysdeps/powerpc/configure.ac: ... here.
41857         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
41858         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
41859         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
41860         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
41861         * sysdeps/s390/s390-32/configure.in: Moved to ...
41862         * sysdeps/s390/s390-32/configure.ac: ... here.
41863         * sysdeps/s390/s390-64/configure.in: Moved to ...
41864         * sysdeps/s390/s390-64/configure.ac: ... here.
41865         * sysdeps/sh/configure.in: Moved to ...
41866         * sysdeps/sh/configure.ac: ... here.
41867         * sysdeps/sparc/configure.in: Moved to ...
41868         * sysdeps/sparc/configure.ac: ... here.
41869         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
41870         * sysdeps/unix/sysv/linux/configure.ac: ... here.
41871         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
41872         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
41873         * sysdeps/x86_64/configure.in: Moved to ...
41874         * sysdeps/x86_64/configure.ac: ... here.
41875         * sysdeps/x86_64/preconfigure.in: Moved to ...
41876         * sysdeps/x86_64/preconfigure.ac: ... here.
41877         * aclocal.m4: Change reference to configure.in to configure.ac.
41878         * config.h.in: Likewise.
41879         * manual/install.texi: Likewise.
41880         * manual/maint.texi: Likewise.
41881         * Makefile: Likewise.
41882         * malloc/Makefile: Likewise.
41883         * nscd/Makefile: Likewise.
41884         * Makeconfig: Change reference to configure.in and
41885         preconfigure.in to configure.ac and preconfigure.ac
41886         respectively.
41887         * INSTALL: Regenerated.
41888         * configure: Likewise.
41889         * sysdeps/gnu/configure: Likewise.
41890         * sysdeps/i386/configure: Likewise.
41891         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
41892         * sysdeps/mach/configure: Likewise.
41893         * sysdeps/mach/hurd/configure: Likewise.
41894         * sysdeps/powerpc/configure: Likewise.
41895         * sysdeps/powerpc/powerpc32/configure: Likewise.
41896         * sysdeps/powerpc/powerpc64/configure: Likewise.
41897         * sysdeps/s390/s390-32/configure: Likewise.
41898         * sysdeps/s390/s390-64/configure: Likewise.
41899         * sysdeps/sh/configure: Likewise.
41900         * sysdeps/sparc/configure: Likewise.
41901         * sysdeps/unix/sysv/linux/configure: Likewise.
41902         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
41903         * sysdeps/x86_64/configure: Likewise.
41904         * sysdeps/x86_64/preconfigure: Likewise.
41905
41906 2013-10-29  Andreas Schwab  <schwab@suse.de>
41907
41908         * stdio-common/Makefile (tst-swscanf-ENV): Define.
41909
41910 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41911
41912         * benchtests/pow-inputs: Add new inputs.
41913
41914         * benchtests/exp-inputs: Add new inputs.
41915
41916         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
41917         conditional check for return value.
41918         (__cos32): Likewise.
41919
41920 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41921
41922         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
41923         to provide a boost for large inputs with word alignment.
41924         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
41925         implementation based on optimized PPC64 strcpy.
41926         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
41927         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
41928         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
41929         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
41930
41931 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
41932
41933         [BZ #2801]
41934         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
41935
41936 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
41937
41938         [BZ #14876]
41939         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
41940         * time/tst-strptime.c (day_tests): Add testcase.
41941
41942 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
41943
41944         [BZ #14029]
41945         * manual/pattern.texi: Acknowledge that fnmatch can fail.
41946
41947 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
41948
41949         [BZ #16074]
41950         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
41951         MAP_FAILED on error.
41952
41953 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
41954
41955         [BZ #16072]
41956         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
41957         heap for large requests.
41958
41959 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
41960
41961         [BZ #9954]
41962         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
41963         result if the result has no associated interface.
41964         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
41965         interface for all 127.X.Y.Z addresses.
41966
41967 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
41968
41969         * locale/iso-639.def: Add Ligurian (lij)
41970
41971 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
41972
41973         [BZ #15825]
41974         * sunrpc/rpc_main.c: Document rpcgen -5.
41975
41976 2013-10-19  Michael Stahl  <mstahl@redhat.com>
41977
41978         * elf/rtld.c (do_preload): Print the reason why preloading failed.
41979
41980 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
41981
41982         [BZ #10278]
41983         * posix/glob.c: Match only directories when trailing slash is present.
41984         * posix/tst-gnuglob.c (my_opendir): Do not open files.
41985         (main): Add testcase.
41986
41987 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
41988
41989         [BZ #15670]
41990         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
41991
41992 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
41993
41994         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
41995         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
41996         AUTH_DES and cindex for FIPS 140-2.
41997         (DES Encryption): Add cindex FIPS 46-3.
41998
41999         * locale/locarchive.h (struct locarhandle): Add fname.
42000         * locale/programs/localedef.c (main): Pass ARGV[remaining]
42001         if an optional argument was specified to --list-archive,
42002         otherwise NULL.
42003         * locale/programs/locarchive.c (show_archive_content): Take new
42004         argument fname and pass it via ah.fname to open_archive.
42005         * locale/programs/localedef.h: Update decl.
42006         (open_archive): If AH->fname is non-null, open that file
42007         rather than the default file name, and don't ignore ENOENT.
42008         (create_archive): Set AH.fname to NULL.
42009         (delete_locales_from_archive): Likewise.
42010         (add_locales_to_archive): Likewise.
42011         * locale/programs/locfile.c (write_all_categories): Likewise.
42012
42013 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
42014             Aldy Hernandez  <aldyh@redhat.com>
42015
42016         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
42017         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
42018         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
42019         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
42020         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
42021         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
42022         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
42023         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
42024         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
42025         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
42026         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
42027         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
42028         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
42029         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
42030         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
42031         Likewise.
42032         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
42033         Likewise.
42034         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
42035         Likewise.
42036         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
42037         Likewise.
42038         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
42039         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
42040         Likewise.
42041         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
42042         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
42043         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
42044         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
42045         Likewise.
42046         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
42047         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
42048         * sysdeps/powerpc/preconfigure: Likewise.
42049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
42050         Likewise.
42051         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
42052         Replace contents of file by #include of <fenv_libc.h>.
42053         * sysdeps/powerpc/soft-fp/sfp-machine.h
42054         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
42055         and <sys/prctl.h>.
42056         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
42057         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
42058         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
42059         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
42060         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
42061         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
42062         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
42063         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
42064         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
42065         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
42066         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
42067         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
42068         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
42069         Allow copysignl PLT reference to be missing.
42070
42071 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
42072             Joseph Myers  <joseph@codesourcery.com
42073
42074         [BZ #15948]
42075         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
42076         single character.
42077         (add_to_tablewc): Assert sequence of wide characters is nonempty.
42078
42079 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
42080
42081         * elf/tst-tls-dlinfo.c: Don't include tls.h.
42082         * elf/tst-tls1.c: Likewise.
42083         * elf/tst-tls10.h: Likewise.
42084         * elf/tst-tls14.c: Likewise.
42085         * elf/tst-tls2.c: Likewise.
42086         * elf/tst-tls3.c: Likewise.
42087         * elf/tst-tls4.c: Likewise.
42088         * elf/tst-tls5.c: Likewise.
42089         * elf/tst-tls6.c: Likewise.
42090         * elf/tst-tls7.c: Likewise.
42091         * elf/tst-tls8.c: Likewise.
42092         * elf/tst-tls9.c: Likewise.
42093         * elf/tst-tlsmod1.c: Likewise.
42094         * elf/tst-tlsmod13.c: Likewise.
42095         * elf/tst-tlsmod13a.c: Likewise.
42096         * elf/tst-tlsmod14a.c: Likewise.
42097         * elf/tst-tlsmod16a.c: Likewise.
42098         * elf/tst-tlsmod16b.c: Likewise.
42099         * elf/tst-tlsmod2.c: Likewise.
42100         * elf/tst-tlsmod3.c: Likewise.
42101         * elf/tst-tlsmod4.c: Likewise.
42102         * elf/tst-tlsmod5.c: Likewise.
42103         * elf/tst-tlsmod6.c: Likewise.
42104
42105 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
42106
42107         [BZ #12486]
42108         * malloc/malloc.c: remove checks for statistics.
42109
42110 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42111
42112         [BZ #15277]
42113         * inet/inet_net.c (inet_network): Detect additional invalid strings.
42114         * inet/tst-network.c: Add testcase.
42115
42116 2013-10-17  Andreas Schwab  <schwab@suse.de>
42117
42118         [BZ #15218]
42119         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
42120         to determine canonical name.
42121
42122 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42123
42124         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
42125         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
42126         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42127         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42128         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42129         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42130         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42131         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42132         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42133         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42134         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
42135         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42136         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42137         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42138         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42139         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42140         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42141         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42142         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
42143         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42144         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42145         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42146         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
42147         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
42148         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
42149         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
42150         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
42151         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
42152         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
42153         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
42154         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42155         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42156         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
42157         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
42158         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
42159         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
42160         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
42161         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
42162         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
42163         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
42164         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
42165         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
42166         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
42167         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
42168         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
42169         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
42170         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
42171         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
42172         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
42173         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
42174         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
42175         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
42176         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
42177         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
42178         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42179         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
42180         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42181         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
42182
42183 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
42184
42185         [BZ #16041]
42186         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
42187         make result into a quiet NaN.
42188
42189 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
42190
42191         * soft-fp/adddf3.c: Fix horizontal whitespace.
42192         * soft-fp/addsf3.c: Likewise.
42193         * soft-fp/addtf3.c: Likewise.
42194         * soft-fp/divdf3.c: Likewise.
42195         * soft-fp/divsf3.c: Likewise.
42196         * soft-fp/divtf3.c: Likewise.
42197         * soft-fp/double.h: Likewise.
42198         * soft-fp/eqdf2.c: Likewise.
42199         * soft-fp/eqsf2.c: Likewise.
42200         * soft-fp/eqtf2.c: Likewise.
42201         * soft-fp/extenddftf2.c: Likewise.
42202         * soft-fp/extended.h: Likewise.
42203         * soft-fp/extendsfdf2.c: Likewise.
42204         * soft-fp/extendsftf2.c: Likewise.
42205         * soft-fp/extendxftf2.c: Likewise.
42206         * soft-fp/fixdfdi.c: Likewise.
42207         * soft-fp/fixdfsi.c: Likewise.
42208         * soft-fp/fixdfti.c: Likewise.
42209         * soft-fp/fixsfdi.c: Likewise.
42210         * soft-fp/fixsfsi.c: Likewise.
42211         * soft-fp/fixsfti.c: Likewise.
42212         * soft-fp/fixtfdi.c: Likewise.
42213         * soft-fp/fixtfsi.c: Likewise.
42214         * soft-fp/fixtfti.c: Likewise.
42215         * soft-fp/fixunsdfdi.c: Likewise.
42216         * soft-fp/fixunsdfsi.c: Likewise.
42217         * soft-fp/fixunsdfti.c: Likewise.
42218         * soft-fp/fixunssfdi.c: Likewise.
42219         * soft-fp/fixunssfsi.c: Likewise.
42220         * soft-fp/fixunssfti.c: Likewise.
42221         * soft-fp/fixunstfdi.c: Likewise.
42222         * soft-fp/fixunstfsi.c: Likewise.
42223         * soft-fp/fixunstfti.c: Likewise.
42224         * soft-fp/floatdidf.c: Likewise.
42225         * soft-fp/floatdisf.c: Likewise.
42226         * soft-fp/floatditf.c: Likewise.
42227         * soft-fp/floatsidf.c: Likewise.
42228         * soft-fp/floatsisf.c: Likewise.
42229         * soft-fp/floatsitf.c: Likewise.
42230         * soft-fp/floattidf.c: Likewise.
42231         * soft-fp/floattisf.c: Likewise.
42232         * soft-fp/floattitf.c: Likewise.
42233         * soft-fp/floatundidf.c: Likewise.
42234         * soft-fp/floatundisf.c: Likewise.
42235         * soft-fp/floatunditf.c: Likewise.
42236         * soft-fp/floatunsidf.c: Likewise.
42237         * soft-fp/floatunsisf.c: Likewise.
42238         * soft-fp/floatunsitf.c: Likewise.
42239         * soft-fp/floatuntidf.c: Likewise.
42240         * soft-fp/floatuntisf.c: Likewise.
42241         * soft-fp/floatuntitf.c: Likewise.
42242         * soft-fp/fmadf4.c: Likewise.
42243         * soft-fp/fmasf4.c: Likewise.
42244         * soft-fp/fmatf4.c: Likewise.
42245         * soft-fp/gedf2.c: Likewise.
42246         * soft-fp/gesf2.c: Likewise.
42247         * soft-fp/getf2.c: Likewise.
42248         * soft-fp/ledf2.c: Likewise.
42249         * soft-fp/lesf2.c: Likewise.
42250         * soft-fp/letf2.c: Likewise.
42251         * soft-fp/muldf3.c: Likewise.
42252         * soft-fp/mulsf3.c: Likewise.
42253         * soft-fp/multf3.c: Likewise.
42254         * soft-fp/negdf2.c: Likewise.
42255         * soft-fp/negsf2.c: Likewise.
42256         * soft-fp/negtf2.c: Likewise.
42257         * soft-fp/op-1.h: Likewise.
42258         * soft-fp/op-2.h: Likewise.
42259         * soft-fp/op-4.h: Likewise.
42260         * soft-fp/op-8.h: Likewise.
42261         * soft-fp/op-common.h: Likewise.
42262         * soft-fp/quad.h: Likewise.
42263         * soft-fp/single.h: Likewise.
42264         * soft-fp/soft-fp.h: Likewise.
42265         * soft-fp/sqrtdf2.c: Likewise.
42266         * soft-fp/sqrtsf2.c: Likewise.
42267         * soft-fp/sqrttf2.c: Likewise.
42268         * soft-fp/subdf3.c: Likewise.
42269         * soft-fp/subsf3.c: Likewise.
42270         * soft-fp/subtf3.c: Likewise.
42271         * soft-fp/truncdfsf2.c: Likewise.
42272         * soft-fp/trunctfdf2.c: Likewise.
42273         * soft-fp/trunctfsf2.c: Likewise.
42274         * soft-fp/trunctfxf2.c: Likewise.
42275         * soft-fp/unorddf2.c: Likewise.
42276         * soft-fp/unordsf2.c: Likewise.
42277         * soft-fp/unordtf2.c: Likewise.
42278
42279 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
42280
42281         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
42282         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
42283
42284 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
42285
42286         * elf/dl-libc.c: Clear initfini list after freeing.
42287
42288 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
42289
42290         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
42291         * soft-fp/addsf3.c: Likewise.
42292         * soft-fp/addtf3.c: Likewise.
42293         * soft-fp/divdf3.c: Likewise.
42294         * soft-fp/divsf3.c: Likewise.
42295         * soft-fp/divtf3.c: Likewise.
42296         * soft-fp/double.h: Likewise.
42297         * soft-fp/eqdf2.c: Likewise.
42298         * soft-fp/eqsf2.c: Likewise.
42299         * soft-fp/eqtf2.c: Likewise.
42300         * soft-fp/extenddftf2.c: Likewise.
42301         * soft-fp/extended.h: Likewise.
42302         * soft-fp/extendsfdf2.c: Likewise.
42303         * soft-fp/extendsftf2.c: Likewise.
42304         * soft-fp/extendxftf2.c: Likewise.
42305         * soft-fp/fixdfdi.c: Likewise.
42306         * soft-fp/fixdfsi.c: Likewise.
42307         * soft-fp/fixdfti.c: Likewise.
42308         * soft-fp/fixsfdi.c: Likewise.
42309         * soft-fp/fixsfsi.c: Likewise.
42310         * soft-fp/fixsfti.c: Likewise.
42311         * soft-fp/fixtfdi.c: Likewise.
42312         * soft-fp/fixtfsi.c: Likewise.
42313         * soft-fp/fixtfti.c: Likewise.
42314         * soft-fp/fixunsdfdi.c: Likewise.
42315         * soft-fp/fixunsdfsi.c: Likewise.
42316         * soft-fp/fixunsdfti.c: Likewise.
42317         * soft-fp/fixunssfdi.c: Likewise.
42318         * soft-fp/fixunssfsi.c: Likewise.
42319         * soft-fp/fixunssfti.c: Likewise.
42320         * soft-fp/fixunstfdi.c: Likewise.
42321         * soft-fp/fixunstfsi.c: Likewise.
42322         * soft-fp/fixunstfti.c: Likewise.
42323         * soft-fp/floatdidf.c: Likewise.
42324         * soft-fp/floatdisf.c: Likewise.
42325         * soft-fp/floatditf.c: Likewise.
42326         * soft-fp/floatsidf.c: Likewise.
42327         * soft-fp/floatsisf.c: Likewise.
42328         * soft-fp/floatsitf.c: Likewise.
42329         * soft-fp/floattidf.c: Likewise.
42330         * soft-fp/floattisf.c: Likewise.
42331         * soft-fp/floattitf.c: Likewise.
42332         * soft-fp/floatundidf.c: Likewise.
42333         * soft-fp/floatundisf.c: Likewise.
42334         * soft-fp/floatunsidf.c: Likewise.
42335         * soft-fp/floatunsisf.c: Likewise.
42336         * soft-fp/floatuntidf.c: Likewise.
42337         * soft-fp/floatuntisf.c: Likewise.
42338         * soft-fp/floatuntitf.c: Likewise.
42339         * soft-fp/fmadf4.c: Likewise.
42340         * soft-fp/fmasf4.c: Likewise.
42341         * soft-fp/fmatf4.c: Likewise.
42342         * soft-fp/gedf2.c: Likewise.
42343         * soft-fp/gesf2.c: Likewise.
42344         * soft-fp/getf2.c: Likewise.
42345         * soft-fp/ledf2.c: Likewise.
42346         * soft-fp/lesf2.c: Likewise.
42347         * soft-fp/letf2.c: Likewise.
42348         * soft-fp/muldf3.c: Likewise.
42349         * soft-fp/mulsf3.c: Likewise.
42350         * soft-fp/multf3.c: Likewise.
42351         * soft-fp/negdf2.c: Likewise.
42352         * soft-fp/negsf2.c: Likewise.
42353         * soft-fp/negtf2.c: Likewise.
42354         * soft-fp/op-1.h: Likewise.
42355         * soft-fp/op-2.h: Likewise.
42356         * soft-fp/op-4.h: Likewise.
42357         * soft-fp/op-8.h: Likewise.
42358         * soft-fp/op-common.h: Likewise.
42359         * soft-fp/quad.h: Likewise.
42360         * soft-fp/single.h: Likewise.
42361         * soft-fp/soft-fp.h: Likewise.
42362         * soft-fp/sqrtdf2.c: Likewise.
42363         * soft-fp/sqrtsf2.c: Likewise.
42364         * soft-fp/sqrttf2.c: Likewise.
42365         * soft-fp/subdf3.c: Likewise.
42366         * soft-fp/subsf3.c: Likewise.
42367         * soft-fp/subtf3.c: Likewise.
42368         * soft-fp/truncdfsf2.c: Likewise.
42369         * soft-fp/trunctfdf2.c: Likewise.
42370         * soft-fp/trunctfsf2.c: Likewise.
42371         * soft-fp/trunctfxf2.c: Likewise.
42372         * soft-fp/unorddf2.c: Likewise.
42373         * soft-fp/unordsf2.c: Likewise.
42374         * soft-fp/unordtf2.c: Likewise.
42375
42376 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
42377
42378         [BZ #15672]
42379         * misc/error.c (error_tail): Fix possible buffer overflow.
42380
42381 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
42382
42383         [BZ #13028]
42384         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
42385         address.
42386
42387 2013-10-14  P. J. McDermott  <pj@pehjota.net>
42388
42389         [BZ #832]
42390         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
42391         testing pipefail option.
42392
42393 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
42394
42395         * soft-fp/double.h: Indent preprocessor directives inside #if.
42396         * soft-fp/extended.h: Likewise.
42397         * soft-fp/op-2.h: Likewise.
42398         * soft-fp/op-4.h: Likewise.
42399         * soft-fp/op-common.h: Likewise.
42400         * soft-fp/quad.h: Likewise.
42401         * soft-fp/single.h: Likewise.
42402         * soft-fp/soft-fp.h: Likewise.
42403
42404 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
42405
42406         * iconv/iconv_prog.c: Fix typos.
42407         * stdio-common/psiginfo-data.h: Likewise.
42408
42409 2013-10-12   Reuben Thomas <rrt@sc3d.org>
42410
42411         [BZ #15764]
42412         * locale/setlocale.c: Fix typo.
42413
42414 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
42415
42416         [BZ #16036]
42417         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
42418         signaling NaN arguments.
42419         * soft-fp/unordsf2.c (__unordsf2): Likewise.
42420         * soft-fp/unordtf2.c (__unordtf2): Likewise.
42421
42422         [BZ #14910]
42423         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
42424         unordered operands.
42425         * soft-fp/gesf2.c (__gesf2): Likewise.
42426         * soft-fp/getf2.c (__getf2): Likewise.
42427         * soft-fp/ledf2.c (__ledf2): Likewise.
42428         * soft-fp/lesf2.c (__lesf2): Likewise.
42429         * soft-fp/letf2.c (__letf2): Likewise.
42430
42431         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
42432         * soft-fp/eqsf2.c (__eqsf2): Likewise.
42433         * soft-fp/eqtf2.c (__eqtf2): Likewise.
42434         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
42435         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
42436         * soft-fp/fixdfti.c (__fixdfti): Likewise.
42437         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
42438         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
42439         * soft-fp/fixsfti.c (__fixsfti): Likewise.
42440         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
42441         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
42442         * soft-fp/fixtfti.c (__fixtfti): Likewise.
42443         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
42444         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
42445         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
42446         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
42447         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
42448         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
42449         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
42450         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
42451         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
42452         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
42453         * soft-fp/floatdisf.c (__floatdisf): Likewise.
42454         * soft-fp/floatsisf.c (__floatsisf): Likewise.
42455         * soft-fp/floattidf.c (__floattidf): Likewise.
42456         * soft-fp/floattisf.c (__floattisf): Likewise.
42457         * soft-fp/floattitf.c (__floattitf): Likewise.
42458         * soft-fp/floatundidf.c (__floatundidf): Likewise.
42459         * soft-fp/floatundisf.c (__floatundisf): Likewise.
42460         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
42461         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
42462         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
42463         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
42464         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
42465         * soft-fp/gesf2.c (__gesf2): Likewise.
42466         * soft-fp/getf2.c (__getf2): Likewise.
42467         * soft-fp/ledf2.c (__ledf2): Likewise.
42468         * soft-fp/lesf2.c (__lesf2): Likewise.
42469         * soft-fp/letf2.c (__letf2): Likewise.
42470
42471         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
42472         Undefine and redefine.
42473         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
42474         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
42475         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
42476         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
42477         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42478         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
42479         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42480         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
42481         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42482         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
42483         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42484         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
42485         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42486         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
42487         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
42488
42489         [BZ #16032]
42490         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
42491         without decrementing exponent if mantissa >= that for the
42492         denominator, not >.
42493         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
42494         denominator, not >.  Decrement exponent in < case instead of
42495         incrementing in >= case.
42496         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
42497         without decrementing exponent if mantissa >= that for the
42498         denominator, not >.
42499
42500         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
42501         computing saturated result for unsigned overflow.
42502
42503 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
42504             Jeff Law  <law@redhat.com>
42505
42506         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
42507         (atan2Mp): Add systemtap probe marker.
42508         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
42509         (__ieee754_log): Add systemtap probe marker.
42510         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
42511         (atanMp): Add systemtap probe marker.
42512         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
42513         (tanMp): Add systemtap probe marker.
42514         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
42515         (__slowexp): Add systemtap probe marker.
42516         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
42517         (__slowpow): Add systemtap probe marker.
42518         * manual/probes.texi: Document probes.
42519
42520 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
42521
42522         [BZ #15362]
42523         * libio/fileops.c (_IO_new_file_write): Return count of bytes
42524         written.
42525         (_IO_new_file_xsputn): Don't return EOF if nothing has been
42526         written.
42527         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
42528         written to buffer but not flushed.
42529         * libio/iofwrite_u.c:  Likewise.
42530         * libio/iopadn.c:  Return bytes returned even if EOF was
42531         encountered.
42532         * libio/iowpadn.c:  Likewise.
42533         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
42534         if _IO_padn does not write the whole buffer.
42535         [!COMPILE_WPRINTF] (PAD): Likewise.
42536
42537 2013-10-10  David S. Miller  <davem@davemloft.net>
42538
42539         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
42540         directory block.
42541
42542 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
42543
42544         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
42545         instead of FSF address.
42546         * soft-fp/fixdfti.c: Likewise.
42547         * soft-fp/fixsfti.c: Likewise.
42548         * soft-fp/fixtfti.c: Likewise.
42549         * soft-fp/fixunsdfti.c: Likewise.
42550         * soft-fp/fixunssfti.c: Likewise.
42551         * soft-fp/fixunstfti.c: Likewise.
42552         * soft-fp/floattidf.c: Likewise.
42553         * soft-fp/floattisf.c: Likewise.
42554         * soft-fp/floattitf.c: Likewise.
42555         * soft-fp/floatuntidf.c: Likewise.
42556         * soft-fp/floatuntisf.c: Likewise.
42557         * soft-fp/floatuntitf.c: Likewise.
42558         * soft-fp/trunctfxf2.c: Likewise.
42559
42560         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
42561         * soft-fp/fixdfti.c: Likewise.
42562         * soft-fp/fixsfti.c: Likewise.
42563         * soft-fp/fixtfti.c: Likewise.
42564         * soft-fp/fixunsdfti.c: Likewise.
42565         * soft-fp/fixunssfti.c: Likewise.
42566         * soft-fp/fixunstfti.c: Likewise.
42567         * soft-fp/floattidf.c: Likewise.
42568         * soft-fp/floattisf.c: Likewise.
42569         * soft-fp/floattitf.c: Likewise.
42570         * soft-fp/floatuntidf.c: Likewise.
42571         * soft-fp/floatuntisf.c: Likewise.
42572         * soft-fp/floatuntitf.c: Likewise.
42573         * soft-fp/trunctfxf2.c: Likewise.
42574
42575 2013-10-10  David S. Miller  <davem@davemloft.net>
42576
42577         * sysdeps/sparc/fpu/libm-test-ulps: Update.
42578
42579 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
42580
42581         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
42582         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
42583         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
42584         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
42585         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
42586         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
42587         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
42588
42589         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
42590         for NaNs before doing comparisons on argument.
42591         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
42592         Likewise.
42593
42594 2013-10-10  Will Newton  <will.newton@linaro.org>
42595
42596         * malloc/hooks.c (memalign_check): Ensure the value of bytes
42597         passed to _int_memalign does not overflow.
42598
42599 2013-10-10  Torvald Riegel  <triegel@redhat.com>
42600
42601         * scripts/bench.pl: Add include-sources directive.
42602         * benchtests/README: Update documentation.
42603
42604 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
42605
42606         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
42607         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
42608         instead of FP_INIT_ROUNDMODE.
42609         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
42610         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
42611
42612         [BZ #16034]
42613         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
42614         copy class of input value.
42615         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
42616         not handle exceptions.
42617         * soft-fp/negsf2.c (__negsf2): Likewise.
42618         * soft-fp/negtf2.c (__negtf2): Likewise.
42619         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
42620
42621 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
42622
42623         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
42624         semicolon.  From Linux kernel.
42625
42626 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
42627
42628         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
42629
42630 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
42631
42632         [BZ #156]
42633         * manual/socket.texi: Added statement about buffer
42634         for gethostbyname2_r.
42635
42636 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
42637
42638         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
42639         Use .p2align directive instead, throughout.
42640         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
42641         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
42642         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
42643         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
42644         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
42645         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
42646         * sysdeps/x86_64/strchr.S: Likewise.
42647         * sysdeps/x86_64/strrchr.S: Likewise.
42648
42649 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
42650
42651         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
42652
42653         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
42654
42655         * sysdeps/generic/math_private.h (__mpsin1): Remove
42656         declaration.
42657         (__mpcos1): Likewise.
42658         (__mpsin): New argument __range_reduce.
42659         (__mpcos): Likewise.
42660         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42661         (slow): Use __mpsin and __mpcos.
42662         (slow1): Likewise.
42663         (slow2): Likewise.
42664         (sloww): Likewise.
42665         (sloww1): Likewise.
42666         (sloww2): Likewise.
42667         (bsloww): Likewise.
42668         (bsloww1): Likewise.
42669         (bsloww2): Likewise.
42670         (cslow2): Likewise.
42671         (csloww): Likewise.
42672         (csloww1): Likewise.
42673         (csloww2): Likewise.
42674         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
42675         range_reduce.  Merge in __mpsin1.
42676         (__mpcos): Likewise.
42677         (__mpsin1): Remove.
42678         (__mpcos1): Likewise.
42679
42680 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
42681
42682         * locale/loadlocale.c (_nl_intern_locale_data): Use
42683         LOCFILE_ALIGNED_P.
42684         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
42685         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
42686         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
42687         obstack data is appropriately aligned.
42688         (obstack_int32_grow_fast): Likewise.
42689         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
42690         * locale/programs/locfile.c (add_locale_uint32): Likewise.
42691         (add_locale_uint32_array): Likewise.
42692
42693 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
42694
42695         * benchtests/Makefile: Remove ARGLIST and RET variables.
42696         ($(objpfx)bench-%.c): Pass only function name to the script.
42697         * benchtests/README: Update documentation.
42698         * benchtests/acos-inputs: Add new directives.
42699         * benchtests/acosh-inputs: Likewise.
42700         * benchtests/asin-inputs: Likewise.
42701         * benchtests/asinh-inputs: Likewise.
42702         * benchtests/atan-inputs: Likewise.
42703         * benchtests/atanh-inputs: Likewise.
42704         * benchtests/cos-inputs: Likewise.
42705         * benchtests/cosh-inputs: Likewise.
42706         * benchtests/exp-inputs: Likewise.
42707         * benchtests/log-inputs: Likewise.
42708         * benchtests/pow-inputs: Likewise.
42709         * benchtests/rint-inputs: Likewise.
42710         * benchtests/sin-inputs: Likewise.
42711         * benchtests/sinh-inputs: Likewise.
42712         * benchtests/tan-inputs: Likewise.
42713         * benchtests/tanh-inputs: Likewise.
42714         * scripts/bench.pl: Add support for new directives.
42715
42716 2013-10-07  Alan Modra  <amodra@gmail.com>
42717
42718         * README: Fix careless merge.
42719
42720 2013-10-05  Alan Modra  <amodra@gmail.com>
42721
42722         * NEWS: Mention powerpc64le support and bugs fixed.
42723         * README: Both big-endian and little-endian powerpc64 supported.
42724
42725 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
42726
42727         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
42728         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
42729         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
42730         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
42731
42732 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
42733
42734         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
42735         match prototype.
42736
42737 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
42738
42739         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
42740         Move -mhard-float appending from
42741         ports/sysdeps/powerpc/powerpc32/Makefile.
42742         [$(with-fp) = yes] (ASFLAGS): Likewise.
42743         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
42744         * sysdeps/powerpc/nofpu: Move directory from
42745         ports/sysdeps/powerpc/nofpu.
42746         * sysdeps/powerpc/soft-fp: Move directory from
42747         ports/sysdeps/powerpc/soft-fp.
42748         * sysdeps/powerpc/powerpc32/405: Move directory from
42749         ports/sysdeps/powerpc/powerpc32/405.
42750         * sysdeps/powerpc/powerpc32/440: Move directory from
42751         ports/sysdeps/powerpc/powerpc32/440.
42752         * sysdeps/powerpc/powerpc32/464: Move directory from
42753         ports/sysdeps/powerpc/powerpc32/464.
42754         * sysdeps/powerpc/powerpc32/476: Move directory from
42755         ports/sysdeps/powerpc/powerpc32/476.
42756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
42757         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
42758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
42759         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
42760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
42761         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
42762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
42763         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
42764         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
42765         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
42766         * README: Update for powerpc-*-linux-gnu software floating point
42767         support in libc.
42768
42769         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
42770         case to powerpc/powerpc32*.
42771         * sysdeps/unix/sysv/linux/configure: Regenerated.
42772
42773         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
42774         (_FPU_MASK_OM): Define as 0x04.
42775         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
42776         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
42777         0x00c10080.
42778         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
42779         0x0000003c.
42780         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
42781
42782         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
42783         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
42784         getcontext_e500.
42785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
42786         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
42787         setcontext_e500.
42788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
42789         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
42790         and setcontext_e500.
42791
42792 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
42793
42794         * locale/iso-3166.def: Update iso-1366.def and related occurrences
42795
42796 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
42797
42798         * manual/threads.texi (Default Thread Attributes): Fix typo.
42799
42800 2013-10-04  Will Newton  <will.newton@linaro.org>
42801
42802         * malloc/Makefile: Add tst-memalign.
42803         * malloc/tst-memalign.c: New file.
42804
42805         * malloc/tst-posix_memalign.c: Add comments.
42806         (do_test): Add comments and call free on all potentially
42807         allocated pointers. Add space after cast.
42808
42809         * malloc/tst-pvalloc.c: Add comments.
42810         (do_test): Add comments and call free on all potentially
42811         allocated pointers. Remove duplicate check for NULL pointer.
42812         Add space after cast.
42813
42814         * malloc/tst-valloc.c: Add comments.
42815         (do_test): Add comments and call free on all potentially
42816         allocated pointers. Remove duplicate check for NULL pointer.
42817         Add space after cast.
42818
42819 2013-10-04  Alan Modra  <amodra@gmail.com>
42820
42821         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
42822         Use stdint types in rather than __attribute__((mode())).
42823         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
42824
42825 2013-10-04  Alan Modra  <amodra@gmail.com>
42826
42827         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
42828         Correct handling of unaligned relocs for little-endian.
42829         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
42830
42831 2013-10-04  Alan Modra  <amodra@gmail.com>
42832
42833         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
42834         * configure: Regenerate.
42835         * nptl/shlib-versions: Powerpc*le starts at 2.18.
42836         * shlib-versions: Likewise.
42837
42838 2013-10-04  Alan Modra  <amodra@gmail.com>
42839
42840         * string/tester.c (test_memrchr): Increment reported test cycle.
42841
42842 2013-10-04  Alan Modra  <amodra@gmail.com>
42843
42844         * string/test-memcpy.c (do_one_test): When reporting errors, print
42845         string address and don't overrun end of string.
42846
42847 2013-10-04  Alan Modra  <amodra@gmail.com>
42848
42849         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
42850         insrdi.  Make better use of reg selection to speed exit slightly.
42851         Schedule entry path a little better.  Remove useless "are we done"
42852         checks on entry to main loop.  Handle wrapping around zero address.
42853         Correct main loop count.  Handle single left-over word from main
42854         loop inline rather than by using loop_small.  Remove extra word
42855         case in loop_small caused by wrong loop count.  Add little-endian
42856         support.
42857         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
42858         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
42859         cache hint.
42860         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
42861         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
42862         support.  Avoid rlwimi.
42863         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
42864
42865 2013-10-04  Alan Modra  <amodra@gmail.com>
42866
42867         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
42868         insrdi.  Formatting.
42869         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
42870         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
42871         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
42872         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
42873         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
42874         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
42875
42876 2013-10-04  Alan Modra  <amodra@gmail.com>
42877
42878         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
42879         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
42880         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
42881         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
42882         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
42883         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
42884         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
42885         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
42886         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
42887         use of regs.  Use power7 mtocrf.  Tidy function tails.
42888
42889 2013-10-04  Alan Modra  <amodra@gmail.com>
42890
42891         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
42892         Formatting.  Consistently use rXXX register defines or rN defines.
42893         Use early exit labels that avoid restoring unused non-volatile regs.
42894         Make cr field use more consistent with rWORDn compares.  Rename
42895         regs used as shift registers for unaligned loop, using rN defines
42896         for short lifetime/multiple use regs.
42897         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
42898         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
42899         addi 1,1,64 to pop stack frame.  Simplify return value code.
42900         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
42901
42902 2013-10-04  Alan Modra  <amodra@gmail.com>
42903
42904         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
42905         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
42906         rather than rlwimi.
42907         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
42908         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
42909         little-endian support.  Correct typos.
42910         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
42911         rather than rlwimi.
42912         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
42913         in loop and entry code to keep "and." results.
42914         (strchr): Add little-endian support.  Comment.  Move cntlzd
42915         earlier in tail.
42916         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
42917
42918 2013-10-04  Alan Modra  <amodra@gmail.com>
42919
42920         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
42921         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
42922         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
42923         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
42924
42925 2013-10-04  Alan Modra  <amodra@gmail.com>
42926
42927         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
42928         (rTMP): Define as r11.
42929         (strcmp): Add little-endian support.  Optimise tail.
42930         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
42931         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
42932         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
42933         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
42934         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
42935         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
42936         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
42937
42938 2013-10-04  Alan Modra  <amodra@gmail.com>
42939
42940         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
42941         little-endian support.  Remove unnecessary "are we done" tests.
42942         Handle "s" wrapping around zero and extremely large "size".
42943         Correct main loop count.  Handle single left-over word from main
42944         loop inline rather than by using small_loop.  Correct comments.
42945         Delete "zero" tail, use "end_max" instead.
42946         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
42947
42948 2013-10-04  Alan Modra  <amodra@gmail.com>
42949
42950         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
42951         support.  Don't branch over align.
42952         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
42953         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
42954         support.  Rearrange tmp reg use to suit.  Comment.
42955         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
42956
42957 2013-10-04  Alan Modra  <amodra@gmail.com>
42958
42959         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
42960
42961 2013-10-04  Alan Modra  <amodra@gmail.com>
42962
42963         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
42964         conditional form of branch and link when obtaining pc.
42965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
42966
42967 2013-10-04  Alan Modra  <amodra@gmail.com>
42968
42969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
42970         HIWORD/LOWORD.
42971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
42972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
42973
42974 2013-10-04  Alan Modra  <amodra@gmail.com>
42975
42976         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
42977         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
42978         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
42979         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
42980         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
42981         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
42982         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
42983         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
42984         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
42985         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
42986
42987 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
42988             Alistair Popple <alistair@ozlabs.au.ibm.com>
42989             Alan Modra <amodra@gmail.com>
42990
42991         [BZ #15723]
42992         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
42993         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
42994         _dl_hwcap access for little-endian.
42995         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
42996         destroy vmx regs when saving unaligned.
42997         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
42998         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
42999         destroy vmx regs when saving unaligned.
43000
43001 2013-10-04  Alan Modra  <amodra@gmail.com>
43002
43003         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
43004         Don't use a union to pack hi/low value.
43005
43006 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43007
43008         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
43009         for little-endian.
43010         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
43011         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
43012         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
43013         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
43014         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
43015
43016 2013-10-04  Alan Modra  <amodra@gmail.com>
43017
43018         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
43019         constants to usual value for .cst8 section, and remove redundant
43020         high address load.
43021         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
43022         constant for 0x1p52.  Load little-endian words of double from
43023         correct stack offsets.
43024
43025 2013-10-04  Alan Modra  <amodra@gmail.com>
43026
43027         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
43028         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
43029         words of double from correct stack offsets.
43030         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
43031         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
43032         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
43033         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
43034         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
43035         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
43036         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
43037         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
43038         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
43039         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
43040         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
43041         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
43042         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
43043         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
43044         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
43045         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
43046         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
43047
43048 2013-10-04  Alan Modra  <amodra@gmail.com>
43049
43050         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
43051         64-bit int/double union.
43052         (_FPU_SETCW): Likewise.
43053         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
43054         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
43055
43056 2013-10-04  Alan Modra  <amodra@gmail.com>
43057
43058         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
43059         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
43060
43061 2013-10-04  Alan Modra  <amodra@gmail.com>
43062
43063         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
43064         use vector int constants.
43065         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
43066
43067 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43068
43069         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
43070         array with long long.
43071         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
43072         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
43073         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
43074         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
43075         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
43076         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
43077         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
43078         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
43079         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
43080         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
43081         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
43082         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
43083         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
43084
43085 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43086
43087         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
43088         (__signbit): Likewise.  Correct for little-endian.
43089         (__signbitl): Call __signbit.
43090         (lrint): Correct for little-endian.
43091         (lrintf): Call lrint.
43092
43093 2013-10-04  Alan Modra  <amodra@gmail.com>
43094
43095         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
43096         union 32-bit int array member with 64-bit int array.
43097         (t515, tm256): Double rather than long double.
43098         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
43099
43100 2013-10-04  Alan Modra  <amodra@gmail.com>
43101
43102         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
43103         Delete.
43104         (IEEE854_LONG_DOUBLE_BIAS): Delete.
43105         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
43106         version of math_ldbl.h.
43107
43108 2013-10-04  Alan Modra  <amodra@gmail.com>
43109
43110         [BZ #15734], [BZ #15735]
43111         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
43112         all uses of ieee875 long double macros and unions.  Simplify test
43113         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
43114         ldbl_extract_mantissa value for ix,iy exponents.  Properly
43115         normalize after ldbl_extract_mantissa, and don't add hidden bit
43116         already handled.  Don't treat low word of ieee854 mantissa like
43117         low word of IBM long double and mask off bit when testing for
43118         zero.
43119         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
43120         all uses of ieee875 long double macros and unions.  Simplify tests
43121         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
43122         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
43123         two1022, instead use their values.  Recognise that tests for large
43124         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
43125         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
43126         Rewrite all uses of ieee875 long double macros and unions.  Simplify
43127         test for 0.0L and nan.  Correct negation.
43128         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
43129         ieee875 long double macros and unions.  Correct output for large
43130         magnitude x.  Correct absolute value calculation.
43131         (__erfcl): Likewise.
43132         * math/libm-test.inc: Add tests for errors discovered in IBM long
43133         double versions of fmodl, remainderl, erfl and erfcl.
43134
43135 2013-10-04  Alan Modra  <amodra@gmail.com>
43136
43137         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
43138         all uses of ieee854 long double macros and unions.  Simplify tests
43139         for long doubles that are fully specified by the high double.
43140         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
43141         Likewise.
43142         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
43143         Remove dead code too.
43144         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
43145         (__ieee754_ynl): Likewise.
43146         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
43147         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
43148         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
43149         Remove dead code too.
43150         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
43151         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
43152         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
43153         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
43154         Simplify.
43155         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
43156         Simplify.
43157         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
43158         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
43159         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
43160         Comment on variable precision.
43161         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
43162         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
43163         Likewise.
43164         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
43165         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
43166         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
43167         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
43168         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
43169
43170 2013-10-04  Alan Modra  <amodra@gmail.com>
43171
43172         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
43173         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
43174         all uses of ieee854 long double macros and unions.
43175         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
43176         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
43177         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
43178         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
43179         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
43180         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
43181         Likewise.
43182         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
43183         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
43184         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
43185         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
43186         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
43187         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
43188         Simplify sign and nan test too.
43189         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
43190         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
43191         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
43192         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
43193         Likewise.
43194         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
43195         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
43196         Likewise.
43197         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
43198         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
43199         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
43200         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
43201         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
43202         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
43203
43204 2013-10-04  Alan Modra  <amodra@gmail.com>
43205
43206         * stdio-common/printf_size.c (__printf_size): Don't use
43207         union ieee854_long_double in fpnum union.
43208         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
43209         signbit macro to retrieve sign from long double.
43210         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
43211         retrieve sign from long double.
43212         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
43213         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
43214         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
43215         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
43216         * math/test-misc.c (main): Don't use union ieee854_long_double.
43217
43218 2013-10-04  Alan Modra  <amodra@gmail.com>
43219
43220         [BZ #15680]
43221         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
43222         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
43223         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
43224         calculation.  Remove unnecessary test for denormal exponent.
43225         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
43226         Correct handling of denormals.  Avoid undefined shift behaviour.
43227         Correct normalisation of low mantissa when low double is denormal.
43228         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
43229         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
43230         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
43231         Correct normalisation of low mantissa.  Test for overflow of high
43232         mantissa and normalise.
43233         (ldbl_nearbyint): Use more readable constant for two52.
43234         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
43235         (__mpn_construct_long_double): Fix test for overflow of high
43236         mantissa and correct normalisation.  Avoid undefined shift.
43237
43238 2013-10-04  Alan Modra  <amodra@gmail.com>
43239
43240         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
43241         (union ibm_extended_long_double): Define as an array of ieee754_double.
43242         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
43243         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
43244         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
43245         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
43246         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
43247         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
43248         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
43249         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
43250         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
43251         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
43252         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
43253
43254 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
43255
43256         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
43257         page size instead of calling getpagesize.
43258
43259         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
43260         (LOCFILE_ALIGN_MASK): Likewise.
43261         (LOCFILE_ALIGN_UP): Likewise.
43262         (LOCFILE_ALIGNED_P): Likewise.
43263         * locale/programs/ld-collate.c (collate_output): Use the new
43264         macros instead of __alignof__ (int32_t).
43265         * locale/weight.h (findidx): Likewise.
43266
43267 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
43268
43269         [BZ #431]
43270         * manual/string.texi: Fix strncat and wcsncat.
43271
43272 2013-10-03  Brooks Moses  <bmoses@google.com>
43273
43274         [BZ #15915]
43275         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
43276         * Makerules: ...here, and adjust associated comments.
43277
43278 2013-10-02  Will Newton  <will.newton@linaro.org>
43279
43280         * malloc/Makefile: Add tst-pvalloc.
43281         * malloc/tst-pvalloc.c: New file.
43282
43283 2013-10-02  Will Newton  <will.newton@linaro.org>
43284
43285         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
43286         improve test coverage.
43287
43288 2013-10-02  Will Newton  <will.newton@linaro.org>
43289
43290         * malloc/Makefile: Add tst-posix_memalign.
43291         * malloc/tst-posix_memalign.c: New file.
43292
43293 2013-10-01  Eric Blake  <eblake@redhat.com>
43294
43295         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
43296         Use __THROWNL rather than __THROW on static functions.
43297
43298 2013-09-30  Petr Machata  <pmachata@redhat.com>
43299
43300         * elf/elf.h (R_AARCH64_ABS16): New macro.
43301         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
43302         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
43303         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
43304         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
43305         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
43306         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
43307         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
43308         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
43309         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
43310         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
43311         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
43312         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
43313         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
43314         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
43315         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
43316         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
43317         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
43318         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
43319         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
43320         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
43321         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
43322         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
43323         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
43324         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
43325         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
43326         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
43327         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
43328         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
43329         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
43330         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
43331         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
43332         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
43333         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
43334         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
43335         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
43336         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
43337         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
43338         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
43339         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
43340         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
43341         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
43342         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
43343         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
43344         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
43345         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
43346         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
43347         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
43348         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
43349         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
43350         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
43351         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
43352         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
43353         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
43354         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
43355         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
43356         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
43357         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
43358         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
43359         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
43360         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
43361         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
43362         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
43363         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
43364         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
43365         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
43366         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
43367         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
43368         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
43369         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
43370         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
43371         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
43372         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
43373         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
43374         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
43375         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
43376         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
43377         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
43378         (R_AARCH64_TLSDESC_LDR): Likewise.
43379         (R_AARCH64_TLSDESC_ADD): Likewise.
43380         (R_AARCH64_TLSDESC_CALL): Likewise.
43381
43382 2013-09-30  Andreas Schwab  <schwab@suse.de>
43383
43384         [BZ #15048]
43385         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
43386         the nss database lookup.
43387         * nscd/initgrcache.c (addinitgroupsX): Likewise.
43388         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
43389
43390 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
43391
43392         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
43393
43394 2013-09-28  P. J. McDermott  <pj@pehjota.net>
43395
43396         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
43397         ${Bash-specific parameter/pattern/string} parameter expansion.
43398         * sysdeps/unix/make-syscalls.sh: Likewise.
43399
43400 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
43401
43402         * sysdeps/sh/stackguard-macros.h: New file.
43403
43404 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
43405
43406         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
43407         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
43408         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
43409         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
43410         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
43411         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
43412
43413 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43414
43415         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
43416         Fix thread ID register.
43417
43418 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
43419
43420         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
43421         [POSIX || UNIX98]: Require rather than permitting all symbols from
43422         <time.h>.
43423         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
43424         element of struct sched_param.
43425         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
43426         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
43427         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
43428         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
43429         constant.
43430
43431 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
43432
43433         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
43434         argument calculation.
43435
43436 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
43437
43438         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
43439         Expect macro.
43440         [POSIX] (pthread_attr_t): Do not require type.
43441         [POSIX] (pthread_cond_t): Likewise.
43442         [POSIX] (pthread_condattr_t): Likewise.
43443         [POSIX] (pthread_key_t): Likewise.
43444         [POSIX] (pthread_mutex_t): Likewise.
43445         [POSIX] (pthread_mutexattr_t): Likewise.
43446         [POSIX] (pthread_once_t): Likewise.
43447         [POSIX] (pthread_t): Likewise.
43448         [POSIX-based standards] (pthread_atfork): Expect function.
43449
43450 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
43451             Richard Sandiford  <richard@codesourcery.com>
43452
43453         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
43454         (swap_endianness_p): New extern variable.
43455         (set_big_endian): New inline function.
43456         (maybe_swap_uint32): Likewise.
43457         (maybe_swap_uint32_array): Likewise.
43458         (maybe_swap_uint32_obstack): Likewise.
43459         * locale/programs/locfile.c: Include <stdbool.h>.
43460         (swap_endianness_p): New variable.
43461         (add_locale_uint32): Call maybe_swap_uint32.
43462         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
43463         (write_locale_data): Call maybe_swap_uint32_array.
43464         * locale/programs/ld-collate.c (obstack_int32_grow): Call
43465         maybe_swap_uint32.
43466         (obstack_int32_grow_fast): Likewise.
43467         (output_weightwc): Call maybe_swap_uint32_obstack.
43468         (collate_output): Likewise.
43469         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
43470         (OPT_LITTLE_ENDIAN): Likewise.
43471         (options): Add --little-endian and --big-endian options.
43472         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
43473         * locale/programs/locarchive.c: Include "locfile.h".
43474         (GET): New macro.
43475         (SET): Likewise.
43476         (INC): Likewise.
43477         (create_archive): Use the new macros to access fields of
43478         structures directly mapped from or written to locale archives.
43479         (oldlocrecentcmp): Likewise.
43480         (enlarge_archive): Likewise.
43481         (insert_name): Likewise.
43482         (add_alias): Likewise.
43483         (add_locale): Likewise.
43484         (delete_locales_from_archive): Likewise.
43485         (show_archive_content): Likewise.
43486         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
43487         locale data.
43488
43489 2013-09-24  Roland McGrath  <roland@hack.frob.com>
43490
43491         * manual/freemanuals.texi: Updated from (newly) canonical copy at
43492         http://www.gnu.org/doc/freemanuals.texi.
43493         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
43494
43495 2013-09-24  Will Newton  <will.newton@linaro.org>
43496
43497         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
43498         macro.
43499
43500 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
43501
43502         * locale/hashval.h (compute_hashval): Interpret bytes of key as
43503         unsigned char.
43504
43505 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
43506
43507         * manual/threads.texi (POSIX Threads): Fix a typo.
43508
43509 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
43510
43511         [BZ #14547]
43512         * string/tst-strcoll-overflow.c: New test case.
43513         * string/Makefile (xtests): Add tst-strcoll-overflow.
43514         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
43515         cache if string sizes may cause integer overflow.
43516
43517         [BZ #14547]
43518         * string/strcoll_l.c (coll_seq): New members rule, idx,
43519         save_idx and back_us.
43520         (get_next_seq_nocache): New function.
43521         (do_compare_nocache): New function.
43522         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
43523         when malloc fails.
43524
43525 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
43526
43527         [BZ #15754]
43528         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
43529         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
43530         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
43531
43532         [BZ #15754]
43533         * elf/Makefile (tests): Add tst-ptrguard1.
43534         (tests-static): Add tst-ptrguard1-static.
43535         (tst-ptrguard1-ARGS): Define.
43536         (tst-ptrguard1-static-ARGS): Define.
43537         * elf/tst-ptrguard1.c: New file.
43538         * elf/tst-ptrguard1-static.c: New file.
43539         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
43540         * sysdeps/i386/stackguard-macros.h: Likewise.
43541         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
43542         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
43543         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
43544         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
43545         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
43546         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
43547
43548 2013-09-23  Hector Marco  <hecmargi@upv.es>
43549             Ismael Ripoll  <iripoll@disca.upv.es>
43550             Carlos O'Donell  <carlos@redhat.com>
43551
43552         [BZ #15754]
43553         * sysdeps/generic/stackguard-macros.h: Define
43554         __pointer_chk_guard_local and POINTER_CHK_GUARD.
43555         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
43556         Define __pointer_chk_guard_local.
43557         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
43558         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
43559
43560 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
43561
43562         [BZ #15859]
43563         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
43564
43565 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
43566
43567         * include/string.h (__ffs): Declare as hidden.
43568         * string/ffs.c (__ffs): Define as hidden.
43569         * sysdeps/i386/ffs.c (__ffs): Likewise.
43570         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
43571         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
43572         * sysdeps/s390/ffs.c (__ffs): Likewise.
43573         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
43574
43575 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
43576
43577         * NEWS: Mention malloc probes.
43578
43579         * malloc/arena.c (new_heap): New memory_heap_new probe.
43580         (grow_heap): New memory_heap_more probe.
43581         (shrink_heap): New memory_heap_less probe.
43582         (heap_trim): New memory_heap_free probe.
43583         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
43584         (systrim): New memory_sbrk_less probe.
43585         * manual/probes.texi: Document them.
43586
43587         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
43588         * manual/probes.texi: Document it.
43589
43590         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
43591         (__libc_realloc): Add memory_realloc_retry probe.
43592         (__libc_memalign): Add memory_memalign_retry probe.
43593         (__libc_valloc): Add memory_valloc_retry probe.
43594         (__libc_pvalloc): Add memory_pvalloc_retry probe.
43595         (__libc_calloc): Add memory_calloc_retry probe.
43596         * manual/probes.texi: Document them.
43597
43598         * malloc/arena.c (get_free_list): Add probe
43599         memory_arena_reuse_free_list.
43600         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
43601         and memory_arena_reuse.
43602         (arena_get2) [!PER_THREAD]: Likewise.
43603         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
43604         memory_arena_reuse_realloc.
43605         * manual/probes.texi: Document them.
43606
43607         * malloc/malloc.c (__libc_free): Add
43608         memory_mallopt_free_dyn_thresholds probe.
43609         (__libc_mallopt): Add multiple memory_mallopt probes.
43610         * manual/probes.texi: Document them.
43611
43612         * malloc/malloc.c: Include stap-probe.h.
43613         (__libc_mallopt): Add memory_mallopt probe.
43614         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
43615         * manual/probes.texi: New.
43616         * manual/Makefile (chapters): Add probes.
43617         * manual/threads.texi: Set next node.
43618
43619 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
43620
43621         [BZ #15963, #13985]
43622         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
43623         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
43624         Add `Chinese' to `nan' entry name.
43625
43626 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
43627
43628         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
43629         (POLYNOMIAL): Likewise.
43630         (TAYLOR_SINCOS): Likewise.
43631         (TAYLOR_SLOW): Likewise.
43632         (__sin): Use TAYLOR_SINCOS.
43633         (__cos): Likewise.
43634         (slow): Use TAYLOR_SLOW.
43635         (sloww): Likewise.
43636         (bsloww): Likewise.
43637         (csloww): Likewise.
43638
43639 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43640
43641         * stdlib/strtod_l.c: Fix buffer overrun.
43642
43643 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
43644
43645         * benchtests/Makefile (bench): Add sincos.
43646         * benchtests/bench-sincos.c: New file.
43647
43648         * math/libm-test.inc (cos_test_data): New test inputs.
43649         (sin_test_data): Likewise.
43650
43651         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
43652         macro.
43653         (__sin): Use it.
43654         (__cos): Likewise.
43655         (slow1): Likewise.
43656         (slow2): Likewise.
43657         (sloww1): Likewise.
43658         (sloww2): Likewise.
43659         (bsloww1): Likewise.
43660         (bsloww2): Likewise.
43661         (cslow2): Likewise.
43662         (csloww1): Likewise.
43663         (csloww2): Likewise.
43664
43665         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
43666         function.
43667         (__sin): Use it.
43668         (__cos): Likewise.
43669
43670         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
43671         gotos.
43672         (__cos): Likewise.
43673
43674 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
43675
43676         * config.h.in (HAVE_MIPS_NAN2008): New macro.
43677         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
43678         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
43679         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
43680         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
43681         * elf/cache.c (print_entry): Handle the new cache flags.
43682
43683 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
43684             Aldy Hernandez  <aldyh@redhat.com>
43685
43686         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
43687         Change condition to [_SOFT_FLOAT].
43688         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
43689         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
43690         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
43691         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
43692         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
43693         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
43694         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
43695         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
43696         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
43697         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
43698         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
43699         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
43700         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
43701         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
43702         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
43703         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
43704         declaration.
43705
43706 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
43707
43708         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
43709         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
43710         (__longjmp): Use LOAD_GP to load saved GPRs.
43711         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
43712         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
43713         (__sigsetjmp): Use SAVE_GP to save GPRs.
43714
43715         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
43716         Do not append -msoft-float.
43717         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
43718
43719 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
43720
43721         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
43722
43723 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
43724
43725         [BZ #15966]
43726         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
43727         (_FPU_GETCW): Use initial "__" on variable and field names but not
43728         on macro parameter name.
43729         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
43730         parentheses around reference to macro parameter.
43731
43732 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
43733
43734         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
43735         prototype.
43736         (ctype_startup): Use uint32_t in cast and sizeof for
43737         ctype->charnames.
43738
43739 2013-09-11  Jia Liu  <proljc@gmail.com>
43740
43741         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
43742         __daddr_t_defined.
43743         [__FreeBSD__]: Likewise.
43744
43745 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
43746
43747         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
43748         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
43749         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
43750         (strchr): Remove __strchr_sse42 ifunc selection.
43751         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
43752         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
43753
43754 2013-09-11  Will Newton  <will.newton@linaro.org>
43755
43756         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
43757         parameter to RES. Remove hardcoded 1000 value.
43758         * benchtests/bench-skeleton.c (main): Pass RES parameter
43759         to TIMING_INIT and multiply result by 1000.
43760
43761 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43762
43763         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43764
43765 2013-09-11  Andreas Schwab  <schwab@suse.de>
43766
43767         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
43768         if not defined.
43769         (O_TMPFILE) [__USE_GNU]: Define.
43770         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
43771         Define.
43772
43773 2013-09-11  Will Newton  <will.newton@linaro.org>
43774
43775         [BZ #15857]
43776         * malloc/malloc.c (__libc_memalign): Check the value of bytes
43777         does not overflow.
43778
43779 2013-09-11  Will Newton  <will.newton@linaro.org>
43780
43781         [BZ #15856]
43782         * malloc/malloc.c (__libc_valloc): Check the value of bytes
43783         does not overflow.
43784
43785 2013-09-11  Will Newton  <will.newton@linaro.org>
43786
43787         [BZ #15855]
43788         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
43789         does not overflow.
43790
43791 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
43792
43793         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
43794         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
43795         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
43796         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
43797         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
43798
43799 2013-09-10  Allan McRae  <allan@archlinux.org>
43800
43801         [BZ #15748]
43802         * manual/arith.texi (Parsing of Floats): Clarify
43803         cross-reference.
43804
43805         [BZ #15849]
43806         * manual/install.texi (Running make install): Mention
43807         --enable-pt-chown.
43808         * INSTALL: Regenerated.
43809
43810 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
43811
43812         * csu/init-first.c (_init): Remove the !SHARED condition around
43813         FPU control word initialization.
43814         * elf/dl-support.c (_dl_fpu_control): New variable.
43815         (_dl_aux_init) <AT_FPUCW>: Initialize it.
43816         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
43817         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
43818         * math/test-fpucw-static.c: New file.
43819         * math/test-fpucw-ieee.c: New file.
43820         * math/test-fpucw-ieee-static.c: New file.
43821         * math/Makefile (tests): Add `test-fpucw-ieee' and
43822         `$(tests-static)'.
43823         (tests-static): New variable.
43824         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
43825         dependency to...
43826         [($(build-shared),yes)]
43827         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
43828         ... this.
43829         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
43830         New dependency.
43831
43832 2013-09-09  Allan McRae  <allan@archlinux.org>
43833
43834         [BZ #15939]
43835         * manual/string.texi (Collation Functions): Fix typo in
43836         strcoll example.
43837         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
43838
43839         [BZ #15893]
43840         * stdlib/isomac.c (get_null_defines): Fix memory leak.
43841
43842         [BZ #15892]
43843         * libio/memstream.c (open_memstream): Fix memory leak.
43844         * libio/wmemstream.c (open_wmemstream): Likewise.
43845
43846         [BZ #15895]
43847         * nscd/netgroupcache.c: Fix nesting of ifdefs.
43848
43849 2013-09-09  Will Newton  <will.newton@linaro.org>
43850
43851         * malloc/Makefile: Add tst-realloc to tests.
43852         * malloc/tst-realloc.c: New file.
43853
43854 2013-09-09  Allan McRae  <allan@archlinux.org>
43855
43856         [BZ #15844]
43857         * COPYING: Update from GNU website to fix FSF address.
43858         * COPYING.LIB: Likewise.
43859
43860 2013-09-06  David S. Miller  <davem@davemloft.net>
43861
43862         * po/zh_TW.po: Update Chinese (traditional) translation from
43863         translation project.
43864
43865 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
43866             Joseph Myers  <joseph@codesourcery.com>
43867
43868         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
43869         "localeinfo.h".
43870         (obstack_chunk_alloc): New macro.
43871         (obstack_chunk_free): Likewise.
43872         (record_offset): New function.
43873         (init_locale_data): Likewise.
43874         (align_locale_data): Likewise.
43875         (add_locale_empty): Likewise.
43876         (add_locale_raw_data): Likewise.
43877         (add_locale_raw_obstack): Likewise.
43878         (add_locale_string): Likewise.
43879         (add_locale_wstring): Likewise.
43880         (add_locale_uint32): Likewise.
43881         (add_locale_uint32_array): Likewise.
43882         (add_locale_char): Likewise.
43883         (start_locale_structure): Likewise.
43884         (end_locale_structure): Likewise.
43885         (start_locale_prelude): Likewise.
43886         (end_locale_prelude): Likewise.
43887         (write_locale_data): Take locale_file structure rather than an
43888         iovec.
43889         * locale/programs/locfile.h: Include "obstack.h".
43890         (struct locale_file): Change to store locale file contents instead
43891         of header.
43892         (init_locale_data): New prototype.
43893         (align_locale_data): Likewise.
43894         (add_locale_empty): Likewise.
43895         (add_locale_raw_data): Likewise.
43896         (add_locale_raw_obstack): Likewise.
43897         (add_locale_string): Likewise.
43898         (add_locale_wstring): Likewise.
43899         (add_locale_uint32): Likewise.
43900         (add_locale_uint32_array): Likewise.
43901         (add_locale_char): Likewise.
43902         (start_locale_structure): Likewise.
43903         (end_locale_structure): Likewise.
43904         (start_locale_prelude): Likewise.
43905         (end_locale_prelude): Likewise.
43906         (write_locale_data): Update prototype.
43907         * locale/programs/3level.h (struct TABLE): Remove result field.
43908         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
43909         Use new locale_file interface.
43910         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
43911         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
43912         * locale/programs/ld-address.c (address_output): Use new
43913         locale_file interface.
43914         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
43915         NO_ADD_LOCALE.
43916         (collate_finish): Don't call collseq_table_finalize.
43917         (collate_output): Use new locale_file interface.
43918         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
43919         in file.
43920         (NO_FINALIZE): Change to NO_ADD_LOCALE.
43921         (TABLE): Move defines earlier in file.
43922         (ELEMENT): Likewise.
43923         (DEFAULT): Likewise.
43924         (wctrans_table_add): Move macro and inline function earlier in
43925         file.
43926         (struct wctype_table): Move type earlier in file.
43927         (add_locale_wctype_table): New static prototype.
43928         (struct locale_ctype_t): Use logical types instead of struct iovec
43929         pointers for members.
43930         (ctype_output): Use new locale_file interface.
43931         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
43932         new locale_file interface.
43933         (allocate_arrays): Update for use of new locale_file interface.
43934         * locale/programs/ld-identification.c (identification_output): Use
43935         new locale_file interface.
43936         * locale/programs/ld-measurement.c (measurement_output): Likewise.
43937         * locale/programs/ld-messages.c (messages_output): Likewise.
43938         * locale/programs/ld-monetary.c (monetary_output): Likewise.
43939         * locale/programs/ld-name.c (name_output): Likewise.
43940         * locale/programs/ld-numeric.c (numeric_output): Likewise.
43941         * locale/programs/ld-paper.c (paper_output): Likewise.
43942         * locale/programs/ld-telephone.c (telephone_output): Likewise.
43943         * locale/programs/ld-time.c (time_output): Likewise.
43944
43945 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43946
43947         * benchtests/Makefile: Add memrchr benchmark.
43948         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
43949         benchmark as memrchr.
43950         * benchtests/bench-memrchr-ifunc.c: New file.
43951         * benchtests/bench-memrchr.c: New file.
43952
43953 2013-09-06   Will Newton  <will.newton@linaro.org>
43954
43955         * benchtests/Makefile (string-bench): Add memcpy.
43956
43957 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
43958             Cong Wang  <amwang@redhat.com>
43959
43960         [BZ #15850]
43961         * sysdeps/unix/sysv/linux/bits/in.h
43962         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
43963         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
43964         before __USE_KERNEL_IPV6_DEFS uses.
43965         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
43966         IPPROTO_BEETPH.
43967         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
43968         sockaddr_in6, or ipv6_mreq.
43969
43970 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43971
43972         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
43973         memory access for final bytes in some large inputs.
43974         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
43975
43976 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43977
43978         * string/test-memrchr.c: New file.
43979         * string/test-memrchr-ifunc.c: New file.
43980         * string/Makefile: Add new memrchr testcase.
43981
43982 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
43983
43984         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
43985         fanotify_init returns EPERM.
43986
43987 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
43988
43989         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
43990         errors.
43991         (top level): Treat second token from macro or constant entries for
43992         allowed headers as allowed.
43993         * include/complex.h: Condition internal declarations on
43994         [!_ISOMAC].
43995         * include/fenv.h: Condition include of <stdbool.h> and internal
43996         declarations on [!_ISOMAC].
43997
43998 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
43999
44000         [BZ #15923]
44001         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
44002
44003 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44004
44005         * configure.in (--enable-versioning): Remove configure option.
44006         (libc_cv_asm_symver_directive): Remove configure test.
44007         (libc_cv_ld_version_script_option): Likewise.
44008         (VERSIONING): Remove variable and AC_SUBST.
44009         (DO_VERSIONING): Remove AC_DEFINE.
44010         * configure: Regenerated.
44011         * config.h.in (DO_VERSIONING): Remove macro.
44012         * Makerules [$(versioning) = yes]: Change conditionals to
44013         [$(build-shared) = yes].
44014         * config.make.in (versioning): Remove variable.
44015         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
44016         [$(build-shared) = yes].
44017         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
44018         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
44019         * elf/Makefile [$(versioning) = yes]: Change conditionals to
44020         [$(build-shared) = yes].
44021         * extra-lib.mk [$(versioning) = yes]: Likewise.
44022         * hurd/Makefile [$(versioning) = yes]: Likewise.
44023         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
44024         [SHARED].
44025         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
44026         [SHARED].
44027         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44028         [SHARED && !NO_HIDDEN].
44029         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
44030         [SHARED].
44031         [SHARED && DO_VERSIONING]: Likewise..
44032         * libio/Makefile [$(versioning) = yes]: Change conditionals to
44033         [$(build-shared) = yes].
44034         * manual/install.texi (--disable-versioning): Remove
44035         documentation.
44036         * INSTALL: Regenerated.
44037         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
44038         to [SHARED].
44039         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
44040         [$(build-shared) = yes].
44041         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
44042         * sysdeps/i386/i686/multiarch/strstr-c.c
44043         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44044         [SHARED && !NO_HIDDEN].
44045         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
44046         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
44047         * sysdeps/powerpc/powerpc32/dl-machine.c
44048         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
44049         * sysdeps/powerpc/powerpc32/sysdep.h
44050         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
44051         to [SHARED && PIC && !NO_HIDDEN].
44052         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
44053         conditional to [SHARED].
44054
44055 2013-09-04   Will Newton  <will.newton@linaro.org>
44056
44057         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
44058         * benchtests/bench-string.h: Include bench-timing.h instead
44059         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
44060         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
44061         call to HP_TIMING_DIFF_INIT.
44062         * benchtests/bench-memccpy.c: Use bench-timing.h macros
44063         instead of hp-timing.h macros.
44064         * benchtests/bench-memchr.c: Likewise.
44065         * benchtests/bench-memcmp.c: Likewise.
44066         * benchtests/bench-memcpy.c: Likewise.
44067         * benchtests/bench-memmem.c: Likewise.
44068         * benchtests/bench-memmove.c: Likewise.
44069         * benchtests/bench-memset.c: Likewise.
44070         * benchtests/bench-rawmemchr.c: Likewise.
44071         * benchtests/bench-strcasecmp.c: Likewise.
44072         * benchtests/bench-strcasestr.c: Likewise.
44073         * benchtests/bench-strcat.c: Likewise.
44074         * benchtests/bench-strchr.c: Likewise.
44075         * benchtests/bench-strcmp.c: Likewise.
44076         * benchtests/bench-strcpy.c: Likewise.
44077         * benchtests/bench-strcpy_chk.c: Likewise.
44078         * benchtests/bench-strlen.c: Likewise.
44079         * benchtests/bench-strncasecmp.c: Likewise.
44080         * benchtests/bench-strncat.c: Likewise.
44081         * benchtests/bench-strncmp.c: Likewise.
44082         * benchtests/bench-strncpy.c: Likewise.
44083         * benchtests/bench-strnlen.c: Likewise.
44084         * benchtests/bench-strpbrk.c: Likewise.
44085         * benchtests/bench-strrchr.c: Likewise.
44086         * benchtests/bench-strspn.c: Likewise.
44087         * benchtests/bench-strstr.c: Likewise.
44088
44089 2013-09-04  Will Newton  <will.newton@linaro.org>
44090
44091         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
44092
44093 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
44094
44095         [BZ #15427]
44096         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
44097         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
44098         * math/libm-test.inc (lgamma_test_data): Add more tests.
44099         * sysdeps/i386/fpu/libm-test-ulps: Update.
44100         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44101
44102 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
44103
44104         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
44105         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44106         Add ifunc.
44107         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
44108         Add strcmp-sse2-unaligned
44109         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
44110
44111 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44112
44113         * Versions.def (libc): Add GLIBC_2.19.
44114
44115 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44116
44117         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
44118         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
44119
44120 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
44121
44122         [BZ #14155]
44123         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
44124         intermediate calculations in recurrence.
44125         (__ieee754_ynf): Likewise.
44126         * math/libm-test.inc (jn_test_data): Do not allow spurious
44127         underflow exception.  Add more tests.
44128         (yn_test_data): Add more tests.
44129         * sysdeps/i386/fpu/libm-test-ulps: Update.
44130         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44131
44132 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
44133
44134         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
44135
44136 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44137
44138         * csu/init-first.c: Fix then/than typos.
44139         * locale/programs/ld-collate.c: Likewise.
44140         * locale/programs/linereader.h: Likewise.
44141         * manual/charset.texi: Likewise.
44142         * manual/filesys.texi: Likewise.
44143         * manual/stdio.texi: Likewise.
44144         * manual/string.texi: Likewise.
44145         * stdlib/fmtmsg.c: Likewise.
44146         * sysdeps/i386/stpncpy.S: Likewise.
44147         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
44148         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
44149         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
44150         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
44151
44152 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44153
44154         * elf/dl-open.c: Fix typos.
44155         * iconvdata/gbbig5.c: Likewise.
44156         * iconvdata/iso-2022-jp.c: Likewise.
44157         * iconv/gconv_int.h: Likewise.
44158         * iconv/loop.c: Likewise.
44159         * nis/rpcsvc/nis.h: Likewise.
44160         * resolv/ns_name.c: Likewise.
44161         * stdio-common/vfscanf.c: Likewise.
44162         * streams/stropts.h: Likewise.
44163         * sunrpc/rpc_thread.c: Likewise.
44164         * sysdeps/i386/strpbrk.S: Likewise.
44165         * sysdeps/ieee754/k_standard.c: Likewise.
44166         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
44167         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
44168         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
44169         * sysdeps/mach/hurd/profil.c: Likewise.
44170         * sysdeps/s390/dl-procinfo.h: Likewise.
44171         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
44172         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
44173         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
44174         * sysdeps/x86_64/dl-trampoline.S: Likewise.
44175         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
44176
44177 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
44178
44179         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
44180         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
44181
44182 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
44183
44184         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
44185         aix specific files.
44186         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
44187         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
44188         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
44189         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
44190         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
44191         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
44192         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
44193         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
44194
44195 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44196             Roland McGrath  <roland@hack.frob.com>
44197
44198         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
44199         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
44200
44201 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44202
44203         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
44204         __executable_start symbol instead of _start.
44205
44206 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44207
44208         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
44209         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
44210         Move macros to...
44211         * sysdeps/gnu/ldsodefs.h: ... this new file.
44212
44213         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
44214         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
44215         instead of ELFOSABI_LINUX.
44216
44217         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
44218         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
44219         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
44220         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
44221         Likewise.
44222         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
44223         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
44224         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
44225         Likewise.
44226         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
44227         (ibm_extended_long_double): Add ieee_nan member.
44228         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
44229         (do_test): New function.
44230
44231         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
44232         TEST_TRUNC.
44233         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
44234         functions, renamed from truncdfsf_test, trunctfsf_test,
44235         trunctfdf_test.
44236         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
44237         functions.
44238         (do_test): Run all these.
44239
44240 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
44241
44242         * argp/argp-help.c: Fix typos.
44243         * argp/argp-parse.c: Likewise.
44244         * debug/backtracesyms.c: Likewise.
44245         * elf/elf.h: Likewise.
44246         * malloc/malloc.c: Likewise.
44247         * nis/nis_print.c: Likewise.
44248         * resolv/res_comp.c: Likewise.
44249         * stdlib/stdlib.h: Likewise.
44250         * sunrpc/clnt_tcp.c: Likewise.
44251         * sunrpc/clnt_udp.c: Likewise.
44252         * sunrpc/clnt_unix.c: Likewise.
44253         * sysdeps/unix/bsd/ptsname.c: Likewise.
44254         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
44255         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
44256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
44257         Likewise.
44258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
44259         Likewise.
44260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
44261         Likewise.
44262         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
44263
44264 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
44265
44266         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
44267         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44268
44269 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
44270
44271         [BZ #15897]
44272         * dlfcn/Makefile (tests): Add bug-dl-leaf.
44273         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
44274         ($(objpfx)bug-dl-leaf): New rule.
44275         ($(objpfx)bug-dl-leaf.so): Likewise.
44276         ($(objpfx)bug-dl-leaf.out): Likewise.
44277         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
44278         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
44279         * dlfcn/bug-dl-leaf.c: New test.
44280         * dlfcn/bug-dl-leaf-lib.c: Likewise.
44281         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
44282         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
44283         (dlclose): Likewise.
44284         (dlmopen): Likewise.
44285
44286 2013-08-27  Roland McGrath  <roland@hack.frob.com>
44287
44288         * include/netdb.h [!_ISOMAC]:
44289         Don't include <tls.h>.
44290         (h_errno, __libc_h_errno): Move declaration and macros out of
44291         [_LIBC_REENTRANT].
44292
44293         * include/resolv.h [_RESOLV_H_]:
44294         Don't include <tls.h>.
44295         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
44296         * resolv/res_libc.c: Don't include <tls.h>.
44297         (_res): Use __attribute__ ((nocommon)) in place of
44298         __attribute__ ((section (".bss"))).
44299
44300         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
44301         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
44302
44303         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
44304
44305         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
44306         only under [SIOCGIFCONF && SIOCGIFNETMASK].
44307
44308         * resolv/res_mkquery.c: Include <sys/time.h>.
44309
44310         * inet/ifreq.c: Moved to ...
44311         * sysdeps/unix/ifreq.c: ... here.
44312         * inet/ifreq.c: New file, true stub version.
44313
44314         * socket/sa_len.c: New file.
44315         * socket/Makefile (aux): Add it.
44316         * sysdeps/unix/sysv/linux/Makefile
44317         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
44318         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
44319         and #include <socket/sa_len.c>.
44320         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
44321         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
44322
44323         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
44324         * bits/socket.h: ... here.
44325
44326         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
44327         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
44328         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
44329
44330 2013-08-27  Andreas Schwab  <schwab@suse.de>
44331
44332         [BZ #15736]
44333         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
44334         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
44335         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
44336         * string/test-strcasecmp.c (test_main): Run tests in several
44337         locales.
44338         * string/test-strncasecmp.c (test_main): Likewise.
44339
44340         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
44341         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
44342         to __strcasecmp_nonascii and __strncasecmp_nonascii.
44343         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
44344         (__strncasecmp_ssse3) [PIC]: Likewise.
44345
44346 2013-08-26  Roland McGrath  <roland@hack.frob.com>
44347
44348         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
44349
44350         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
44351         instead of explicitly declaring xdecrypt.
44352         * nis/nss_nis/nis-publickey.c: Likewise.
44353
44354 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44355
44356         [BZ #15890]
44357         * nscd/aicache.c: Include res_hconf.h.
44358         (addhstaiX): Initialize res_hconf.
44359
44360 2013-08-26  Andreas Schwab  <schwab@suse.de>
44361
44362         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
44363         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
44364
44365 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44366
44367         * nscd/aicache.c (addhstaiX): Fix indentation.
44368
44369 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
44370
44371         * configure.ac: Quote $build_pt_chown test.
44372         * configure: Regenerated.
44373
44374 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
44375
44376         [BZ #15532]
44377         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
44378         * math/s_cexpf.c (__cexpf): Likewise.
44379         * math/s_cexpl.c (__cexpl): Likewise.
44380         * math/libm-test.inc (cexp_test_data): Correct expected return
44381         value for NaN + i0.  Add another test.
44382
44383 2013-08-22  David S. Miller  <davem@davemloft.net>
44384
44385         * po/ca.po: Update Catalan translation from translation project.
44386         * po/uk.po: Add Ukrainian translations from translation project.
44387
44388 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
44389
44390         [BZ #15797]
44391         * math/s_fdim.c (__fdim): Check for infinite arguments if result
44392         is infinite, not alongside NaN test.
44393         * math/s_fdimf.c (__fdimf): Likewise.
44394         * math/s_fdiml.c (__fdiml): Likewise.
44395         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
44396         errno is unchanged.
44397
44398 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
44399
44400         * argp/argp-help.c: Fix typos.
44401         * crypt/speeds.c: Likewise.
44402         * csu/check_fds.c: Likewise.
44403         * elf/dl-load.c: Likewise.
44404         * elf/dl-open.c: Likewise.
44405         * elf/reldep3.c: Likewise.
44406         * elf/reldep.c: Likewise.
44407         * elf/sprof.c: Likewise.
44408         * iconv/iconv_charmap.c: Likewise.
44409         * iconv/skeleton.c: Likewise.
44410         * iconv/strtab.c: Likewise.
44411         * io/lockf64.c: Likewise.
44412         * libio/libioP.h: Likewise.
44413         * resolv/gai_notify.c: Likewise.
44414         * resolv/ns_name.c: Likewise.
44415         * resolv/ns_samedomain.c: Likewise.
44416         * resolv/res_send.c: Likewise.
44417         * stdlib/random.c: Likewise.
44418         * sunrpc/rpc/xdr.h: Likewise.
44419         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
44420         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
44421         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
44422         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
44423         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
44424         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
44425         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
44426         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
44427         * sysdeps/mach/hurd/check_fds.c: Likewise.
44428         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
44429         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
44430         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
44431         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
44432         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
44433         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
44434         * sysdeps/pthread/aio_notify.c: Likewise.
44435         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
44436         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
44437         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
44438         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
44439         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
44440
44441 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44442
44443         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
44444         version if bit_Slow_SSE4_2 is set.
44445         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
44446         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
44447
44448 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44449
44450         [BZ #15867]
44451         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
44452         trampoline stack frame information.
44453         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
44454         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
44455         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
44456         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
44457         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
44458         * sysdeps/unix/sysv/linux/powerpc/init-first.c
44459         (_libc_vdso_platform_setup): Initialize the signal trampolines.
44460         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
44461         sa_flags value.
44462         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
44463         interrupting a syscall and set with option SA_SIGINFO.
44464
44465 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
44466
44467         [BZ #15531]
44468         * math/s_cproj.c (__cproj): Only return an infinity if one part of
44469         argument is infinite.
44470         * math/s_cprojf.c (__cprojf): Likewise.
44471         * math/s_cprojl.c (__cprojl): Likewise.
44472         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
44473         * math/libm-test.inc (cproj_test_data): Add more tests.
44474
44475         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
44476
44477         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
44478         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
44479         size.  Use __ffs to determine corresponding shift.
44480
44481 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
44482             Roland McGrath  <roland@hack.frob.com>
44483
44484         * Makefile (INSTALL): Remove trailing blank lines from output of
44485         makeinfo.
44486
44487 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44488
44489         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
44490         Align 32 bit compat elf_greg to 8 bytes.
44491
44492 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
44493
44494         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
44495
44496 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
44497
44498         * string/strcoll_l.c (coll_seq): New structure.
44499         (get_next_seq_cached): New function.
44500         (get_next_seq): New function.
44501         (do_compare): New function.
44502         (STRCOLL): Use GNU style definition.  Simplify implementation
44503         by using get_next_seq, get_next_seq_cached and do_compare.
44504
44505 2013-08-16  Florian Weimer  <fweimer@redhat.com>
44506
44507         [BZ #14699]
44508         CVE-2013-4237
44509         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
44510         member.
44511         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
44512         member.
44513         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
44514         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
44515         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
44516         conditional.
44517         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
44518         GETDENTS_64BIT_ALIGNED.
44519         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
44520         * manual/filesys.texi (Reading/Closing Directory): Document
44521         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
44522         strongly.
44523         * manual/conf.texi (Limits for Files): Add portability note to
44524         NAME_MAX, PATH_MAX.
44525         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
44526
44527 2013-08-13  Andreas Schwab  <schwab@suse.de>
44528
44529         [BZ #15749]
44530         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
44531         of fabs.
44532         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
44533         LDBL_MAX_EXP >= 16384]: Add tests for it.
44534
44535 2013-08-12  David S. Miller  <davem@davemloft.net>
44536
44537         * version.h (RELEASE): Set to "development".
44538         (VERSION): Set to "2.18.90".
44539         * NEWS: Add 2.19 section.
44540
44541 2013-08-03  David S. Miller  <davem@davemloft.net>
44542
44543         * po/ko.po: Update Korean translation from translation project.
44544
44545 2013-08-01  David S. Miller  <davem@davemloft.net>
44546
44547         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
44548         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
44549         Bilka.
44550
44551 2013-07-30  David S. Miller  <davem@davemloft.net>
44552
44553         * po/fr.po: Update French translation from translation project.
44554
44555 2013-07-28  David S. Miller  <davem@davemloft.net>
44556
44557         * po/cs.po: Update Czech translation from translation project.
44558
44559         * po/sv.po: Update Swedish translation from translation project.
44560
44561 2013-07-27  David S. Miller  <davem@davemloft.net>
44562
44563         * po/eo.po: Update Esperanto translation from translation project.
44564
44565         * po/vi.po: Update Vietnamese translation from translation project.
44566
44567         * po/de.po: Update German translation from translation project.
44568
44569 2013-07-26  David S. Miller  <davem@davemloft.net>
44570
44571         * po/bg.po: Update Bulgarian translation from translation project.
44572
44573         * po/nl.po: Update Dutch translation from translation project.
44574         * po/pl.po: Update Polish translation from translation project.
44575         * po/ru.po: Update Russian translation from translation project.
44576
44577 2013-07-24  David S. Miller  <davem@davemloft.net>
44578
44579         * po/libc.pot: Update.
44580
44581 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44582
44583         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
44584         variable page size.
44585         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
44586         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
44587         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
44588
44589 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44590
44591         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
44592
44593 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
44594             Andreas Schwab  <schwab@suse.de>
44595             Roland McGrath  <roland@hack.frob.com>
44596             Joseph Myers  <joseph@codesourcery.com>
44597             Carlos O'Donell  <carlos@redhat.com>
44598
44599         [BZ #15755]
44600         * config.h.in: Define HAVE_PT_CHOWN.
44601         * config.make.in (build-pt-chown): New variable.
44602         * configure.in (--enable-pt_chown): New configure option.
44603         * configure: Regenerate.
44604         * login/Makefile: Include Makeconfig.  Build pt_chown only if
44605         build-pt-chown is enabled.
44606         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
44607         pt_chown to fix pty ownership.
44608         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
44609         CLOSE_ALL_FDS.
44610         * manual/install.texi (Configuring and compiling): Mention
44611         --enable-pt_chown. Add @findex for grantpt.
44612         * INSTALL: Regenerate.
44613
44614 2013-07-20  David S. Miller  <davem@davemloft.net>
44615
44616         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
44617         difference between 32-bit and 64-bit.
44618
44619 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
44620
44621         [BZ #15711]
44622         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
44623         Avoid system header dependency with -ffreestanding.
44624         ($(objpfx)bits/syscall%d): Likewise.
44625
44626 2013-07-13  David S. Miller  <davem@davemloft.net>
44627
44628         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
44629         underflows from atanl/atan2l due to bug 15319.
44630         (casinh_test_data): Likewise.
44631
44632 2013-07-07  David S. Miller  <davem@davemloft.net>
44633
44634         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
44635
44636 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
44637
44638         * sysdeps/i386/fpu/libm-test-ulps: Update.
44639         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44640
44641 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
44642
44643         * configure.in (--enable-lock-elision): Fix message text.
44644         * INSTALL: Regenerate.
44645         * configure: Regenerate.
44646
44647 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44648
44649         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44650
44651 2013-07-03  Andreas Jaeger  <aj@suse.de>
44652
44653         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
44654         define.
44655         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
44656         (ptrace_peeksiginfo_args): Add.
44657         (__ptrace_peeksiginfo_flags): Add.
44658         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
44659         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
44660         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
44661
44662 2013-07-03  Allan McRae  <allan@archlinux.org>
44663
44664         * sysdeps/i386/fpu/libm-test-ulps: Update.
44665
44666 2013-07-02  David S. Miller  <davem@davemloft.net>
44667
44668         * sysdeps/sparc/fpu/libm-test-ulps: Update.
44669
44670 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
44671
44672         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
44673
44674 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
44675
44676         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
44677         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44678
44679 2013-07-02  Andi Kleen <ak@linux.intel.com>
44680
44681         * config.h.in (ENABLE_LOCK_ELISION): Add.
44682         * configure.in (--enable-lock-elision): Add option.
44683         * manual/install.texi: Document --enable lock elision.
44684         * configure: Regenerate
44685         * INSTALL: Regenerate.
44686
44687 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
44688
44689         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
44690         SSE4.2 strcasecmp for libc.a.
44691         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
44692
44693 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
44694
44695         [BZ #13304]
44696         * soft-fp/op-common.h (_FP_FMA): New macro.
44697         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
44698         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
44699         (_FP_MUL_MEAT_1_imm): ... here.
44700         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
44701         (_FP_MUL_MEAT_1_wide): ... here.
44702         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
44703         (_FP_MUL_MEAT_1_hard): ... here.
44704         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
44705         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
44706         (_FP_MUL_MEAT_2_wide): ... here.
44707         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
44708         (_FP_MUL_MEAT_2_wide_3mul): ... here.
44709         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
44710         (_FP_MUL_MEAT_2_gmp): ... here.
44711         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
44712         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
44713         (_FP_MUL_MEAT_4_wide): ... here.
44714         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
44715         (_FP_MUL_MEAT_4_gmp): ... here.
44716         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
44717         (_FP_WFRACBITS_DW_S): Likewise.
44718         (_FP_WFRACXBITS_DW_S): Likewise.
44719         (_FP_HIGHBIT_DW_S): Likewise.
44720         (FP_FMA_S): Likewise.
44721         (_FP_FRAC_HIGH_DW_S): Likewise.
44722         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
44723         (_FP_WFRACBITS_DW_D): Likewise.
44724         (_FP_WFRACXBITS_DW_D): Likewise.
44725         (_FP_HIGHBIT_DW_D): Likewise.
44726         (FP_FMA_D): Likewise.
44727         (_FP_FRAC_HIGH_DW_D): Likewise.
44728         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
44729         (_FP_WFRACBITS_DW_E): Likewise.
44730         (_FP_WFRACXBITS_DW_E): Likewise.
44731         (_FP_HIGHBIT_DW_E): Likewise.
44732         (FP_FMA_E): Likewise.
44733         (_FP_FRAC_HIGH_DW_E): Likewise.
44734         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
44735         (_FP_WFRACBITS_DW_Q): Likewise.
44736         (_FP_WFRACXBITS_DW_Q): Likewise.
44737         (_FP_HIGHBIT_DW_Q): Likewise.
44738         (FP_FMA_Q): Likewise.
44739         (_FP_FRAC_HIGH_DW_Q): Likewise.
44740         * soft-fp/fmasf4.c: New file.
44741         * soft-fp/fmadf4.c: Likewise.
44742         * soft-fp/fmatf4.c: Likewise.
44743
44744 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44745
44746         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
44747         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
44748         Silvermont.
44749         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
44750         macro.
44751         (index_Slow_SSE4_2): Likewise.
44752         (index_Prefer_PMINUB_for_stringop): Likewise.
44753         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
44754         bit_Slow_SSE4_2 is set.
44755         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
44756         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
44757
44758 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44759
44760         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
44761         rtld_global._dl_hwcap2.
44762         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
44763         POWER8.
44764         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
44765         POWER8 feature descriptions defined in _dl_hwcap2.
44766         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
44767         string handling for POWER8 feature bits.
44768         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
44769         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
44770         _dl_powerpc_cap_flags.
44771         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
44772         * sysdeps/powerpc/rtld-global-offsets.sym
44773         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
44774         _dl_hwcap2 in the rtld_global_ro structure.
44775
44776 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44777
44778         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
44779         hardware capabilities in support of AT_HWCAP2.
44780         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
44781         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
44782         GLRO(dl_hwcap2).
44783         (_dl_show_auxv): Add support for calling _dl_procinfo to display
44784         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
44785         explicitly the unknown a_type display mechanism is used.
44786         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
44787         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
44788         struct member.
44789         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
44790         to macro prototype for AT_HWCAP2 support.
44791         * sysdeps/i386/dl-procinfo.h: Likewise.
44792         * sysdeps/s390/dl-procinfo.h: Likewise.
44793         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
44794         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
44795         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
44796         return -1 for unknown a_type display fallback.
44797         * sysdeps/sparc/dl-procinfo.h: Likewise.
44798         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
44799         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
44800
44801 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
44802
44803         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
44804         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
44805
44806 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
44807
44808         [BZ #12492]
44809         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
44810         mprotect making __stack_prot writable.
44811
44812 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
44813             Joseph Myers  <joseph@codesourcery.com>
44814
44815         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
44816         as being properly aligned.
44817
44818 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
44819
44820         * dlfcn/modstatic5.c: New file.
44821         * dlfcn/tststatic5.c: New file.
44822         * dlfcn/Makefile (tests): Add tststatic5.
44823         (tests-static): Likewise.
44824         (modules-names): Add modstatic5.
44825         (tststatic5-ENV): New variable.
44826         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
44827
44828         [BZ #15022]
44829         * elf/dl-support.c (_dl_main_map): New variable.
44830         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
44831         (_dl_nns, _dl_load_adds): Set to 1.
44832         (_dl_initial_searchlist): Refer to _dl_main_map.
44833         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
44834         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
44835         call to _dl_get_origin.
44836         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
44837         around call_map.
44838         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
44839         * dlfcn/modstatic3.c: New file.
44840         * dlfcn/tststatic3.c: New file.
44841         * dlfcn/tststatic4.c: New file.
44842         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
44843         (tests-static): Likewise.
44844         (modules-names): Add modstatic3.
44845         (tststatic3-ENV, tststatic4-ENV): New variables.
44846         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
44847         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
44848
44849 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
44850
44851         * configure.in (CC): Require GCC version 4.4 or later.
44852         * configure: Regenerated.
44853         * manual/install.texi (Tools for Compilation): Update GCC version
44854         requirement.
44855         * INSTALL: Regenerated.
44856
44857 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44858
44859         [BZ #15674]
44860         * string/test-memcmp.c (check2): New.
44861         (main): Call check2.
44862
44863         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
44864
44865 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
44866
44867         [BZ #15022]
44868         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
44869         over to...
44870         (dl_open_worker) [!SHARED]: ... here.
44871
44872 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44873
44874         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
44875
44876 2013-06-25  Richard Henderson  <rth@redhat.com>
44877
44878         * locale/programs/locarchive.c: Include <libc-internal.h>
44879
44880 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
44881
44882         * manual/texinfo.tex: Update to version 2013-06-21.17, with
44883         trailing whitespace removed.
44884
44885 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
44886
44887         [BZ #10283]
44888         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
44889         * locale/programs/locarchive.c: Include libc-mmap.h.
44890         (prepare_address_space): Take two new outputs (the mmap base and len).
44891         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
44892         values.
44893         (create_archive): Declare new mmap base and len values for
44894         prepare_address_space, and store the result in ah.
44895         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
44896         (enlarge_archive): If ah->mmap_base is not NULL, use that and
44897         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
44898         Declare new mmap base and len values for
44899         prepare_address_space, and store the result in new_ah.
44900         (open_archive): Declare new mmap base and len values for
44901         prepare_address_space, and store the result in ah.
44902         (close_archive): If ah->mmap_base is not NULL, use that and
44903         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
44904         * sysdeps/generic/libc-mmap.h: New file.
44905
44906 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
44907
44908         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
44909         (ALIGN_UP): Likewise.
44910         (PTR_ALIGN_DOWN): Likewise.
44911         (PTR_ALIGN_UP): Likewise.
44912
44913 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
44914
44915         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
44916         entry mapped to PPC_PLATFORM_POWER8.
44917         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
44918         POWER8.
44919         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
44920         (_dl_string_platform): Add case for exporting platform position for
44921         POWER8.
44922         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
44923         search path to sysdeps/powerpc/powerpc32/power8 directory.
44924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
44925         search path to sysdeps/powerpc/powerpc64/power8 directory.
44926         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
44927         power7 directories.
44928         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
44929         power7 directories.
44930
44931 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
44932
44933         * INSTALL: Regenerate.
44934
44935         * nscd/connections.c (nscd_init): Fix comment.
44936
44937 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
44938
44939         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
44940
44941         [BZ #15667]
44942         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
44943         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
44944
44945 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
44946
44947         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
44948         DL_DST_REQ_STATIC.
44949         (DL_DST_REQ_STATIC): Remove macro.
44950
44951 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
44952
44953         [BZ #7006]
44954         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
44955         with a shift of 0 bits.
44956
44957 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
44958
44959         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
44960         $(tststatic-ENV).
44961
44962 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44963
44964         [BZ #15655]
44965         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
44966
44967 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44968
44969         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
44970         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
44971         accepts -fno-tree-loop-distribute-patterns.
44972         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
44973         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
44974         recursive call.
44975         * string/memset.c (memset): Likewise.
44976         * string/test-memmove.c (simple_memmove): Disable loop transformation
44977         to library calls.
44978         * string/test-memset.c (simple_memset): Likewise.
44979         * benchtests/bench-memmove.c (simple_memmove): Likewise.
44980         * benchtests/bench-memset.c (simple_memset): Likewise.
44981         * configure: Regenerated.
44982
44983 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
44984
44985         * math/test-misc.c (main): Ignore fesetround failure when failures
44986         of subsequent rounding tests would be ignored.
44987
44988         [BZ #15654]
44989         * math/fedisblxcpt.c (fedisableexcept): Return 0.
44990         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
44991         * math/fegetenv.c (__fegetenv): Return 0.
44992         * math/fegetexcept.c (fegetexcept): Return 0.
44993         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
44994         FE_TONEAREST.
44995         * math/feholdexcpt.c (feholdexcept): Return 0.
44996         * math/fesetenv.c (__fesetenv): Return 0.
44997         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
44998         argument FE_TONEAREST.
44999         * math/feupdateenv.c (__feupdateenv): Return 0.
45000         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
45001
45002 2013-06-18  Roland McGrath  <roland@hack.frob.com>
45003
45004         * elf/rtld-Rules (rtld-compile-command.S): New variable.
45005         (rtld-compile-command.s, rtld-compile-command.c): New variables.
45006         ($(objpfx)rtld-%.os rules): Use them.
45007
45008 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45009
45010         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
45011         fields.
45012
45013 2013-06-17  Roland McGrath  <roland@hack.frob.com>
45014
45015         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
45016         length of target pattern, then descending length of dependency pattern.
45017         * configure.in (AWK): Require gawk 3.1.2 or newer.
45018         * manual/install.texi (Tools for Compilation): Say that we do.
45019         * configure: Regenerated.
45020
45021         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
45022         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
45023         * scripts/sysd-rules.awk: ... this new script.
45024         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
45025         than a glob-style pattern.
45026
45027 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
45028
45029         * math/test-misc.c (main): Do not treat incorrectly rounded
45030         conversions as failure unless ROUNDING_TESTS passes.
45031
45032 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
45033
45034         [BZ #15631]
45035         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
45036         restore exception state around main square root computation, then
45037         check for inexactness explicitly.
45038
45039         * math/libm-test.inc (fma_test_data): Add another test.
45040
45041 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
45042
45043         * manual/threads.texi (Non-POSIX Extensions): New document
45044         node.  Document pthread_getattr_default_np and
45045         pthread_setattr_default_np.
45046
45047         * Versions.def (libpthread): Add GLIBC_2.18.
45048         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
45049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
45050         Likewise.
45051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
45052         Likewise.
45053         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
45054         Likewise.
45055         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
45056         Likewise.
45057         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
45058         Likewise.
45059         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
45060         Likewise.
45061         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
45062         Likewise.
45063         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
45064         Likewise.
45065         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
45066         Likewise.
45067
45068 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45069
45070         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45071         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
45072
45073 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
45074             H.J. Lu  <hjl.tools@gmail.com>
45075
45076         [BZ #15627]
45077         * sysdeps/x86_64/rtld-memset.c: Remove file.
45078         * sysdeps/x86_64/rtld-memset.S: New file.
45079
45080 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
45081
45082         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
45083         (test_in_one_mode): Take arguments for whether the rounding mode
45084         is supported for each floating-point type.
45085         (do_test): Pass new arguments to test_in_one_mode using
45086         ROUNDING_TESTS.
45087
45088 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45089
45090         * posix/tst-waitid.c (do_test): Distinguish different instances of
45091         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
45092         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
45093         before entering the kernel for waitpid.
45094
45095 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45096
45097         * NEWS: Fix note on clock function precision.  Text by Roland
45098         McGrath.
45099
45100 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45101
45102         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
45103         it into place only when and if the sanity check passes.
45104
45105 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
45106
45107         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
45108         output for whether conversion result is exact.  Take argument
45109         indicating whether type is IBM long double.
45110         (round_for_all): Change need_exact field to ibm_ld.
45111         * stdlib/tst-strtod-round.c (struct exactness): New type.
45112         (struct test): Change bool ld_ok field to struct exactness exact.
45113         (TEST): Update all definitions for change to field.
45114         (tests): Regenerate array contents.
45115         (test_in_one_mode): Take pointer to new field instead of old ld_ok
45116         field value.  Check for IBM long double here.
45117         (do_test): Update calls to test_in_one_mode.
45118
45119 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45120
45121         [BZ #12515]
45122         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
45123         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
45124
45125 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45126
45127         [BZ #15605]
45128         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
45129         generated by the compiler on loop optimizations.
45130         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
45131         general definitions.
45132
45133 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
45134
45135         * math/bug-nextafter.c: Include <math-tests.h>.
45136         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45137         the relevant type.
45138         * math/bug-nexttoward.c: Include <math-tests.h>.
45139         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45140         the relevant type.
45141         * math/test-misc.c: Include <math-tests.h>.
45142         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45143         the relevant type.
45144
45145 2013-06-12  Andreas Jaeger  <aj@suse.de>
45146
45147         * po/ia.po: Update Interlingua translation from translation
45148         project.
45149
45150 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
45151
45152         * include/fenv.h: Include stdbool.h.
45153         (struct rm_ctx): New structure.
45154         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
45155         Define macro.
45156         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
45157         (SET_RESTORE_ROUNDF): Likewise.
45158         (SET_RESTORE_ROUNDL): Likewise.
45159         (SET_RESTORE_ROUND_NOEX): Likewise.
45160         (SET_RESTORE_ROUND_NOEXF): Likewise.
45161         (SET_RESTORE_ROUND_NOEXL): Likewise.
45162         (SET_RESTORE_ROUND_53BIT): Likewise.
45163         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
45164         (libc_feresetround_noexf_ctx): Likewise.
45165         (libc_feresetround_noexl_ctx): Likewise.
45166         (libc_feholdsetround_53bit_ctx): Likewise.
45167         (libc_feresetround_53bit_ctx): Likewise.
45168         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
45169         (libc_feholdexcept_setround_sse_ctx): New function.
45170         (libc_fesetenv_sse_ctx): Likewise.
45171         (libc_feupdateenv_sse_ctx): Likewise.
45172         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
45173         (libc_feholdexcept_setround_387_ctx): Likewise.
45174         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
45175         (libc_feholdsetround_387_prec_ctx): Likewise.
45176         (libc_feholdsetround_387_ctx): Likewise.
45177         (libc_feholdsetround_387_53bit_ctx): Likewise.
45178         (libc_feholdsetround_sse_ctx): Likewise.
45179         (libc_feresetround_sse_ctx): Likewise.
45180         (libc_feresetround_387_ctx): Likewise.
45181         (libc_feupdateenv_387_ctx): Likewise.
45182         (libc_feholdexcept_setroundf_ctx): Define macro.
45183         (libc_fesetenvf_ctx): Likewise.
45184         (libc_feupdateenvf_ctx): Likewise.
45185         (libc_feholdsetroundf_ctx): Likewise.
45186         (libc_feresetroundf_ctx): Likewise.
45187         (libc_feholdexcept_setround_ctx): Likewise.
45188         (libc_fesetenv_ctx): Likewise.
45189         (libc_feupdateenv_ctx): Likewise.
45190         (libc_feholdsetround_ctx): Likewise.
45191         (libc_feresetround_ctx): Likewise.
45192         (libc_feholdexcept_setroundl_ctx): Likewise.
45193         (libc_feupdateenvl_ctx): Likewise.
45194         (libc_feholdsetroundl_ctx): Likewise.
45195         (libc_feresetroundl_ctx): Likewise.
45196         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
45197         (libc_feresetround_53bit_ctx): Likewise.
45198
45199 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45200
45201         * locale/iso-639.def: Convert to UTF-8.
45202
45203 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
45204
45205         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
45206         (EXCEPTION_TESTS_double): Likewise.
45207         (EXCEPTION_TESTS_long_double): Likewise.
45208         (EXCEPTION_TESTS): Likewise.
45209         * math/libm-test.inc (test_exceptions): Only test exceptions if
45210         EXCEPTION_TESTS (FLOAT).
45211
45212 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45213
45214         * benchtests/Makefile (string-bench): Add strcpy_chk and
45215         stpcpy_chk.
45216         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
45217         * benchtests/bench-stpcpy_chk.c: New file.
45218         * benchtests/bench-strcpy_chk-ifunc.c: New file.
45219         * benchtests/bench-strcpy_chk.c: New file.
45220         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
45221         code.
45222         (do_test): Likewise.
45223
45224 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45225
45226         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
45227         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
45228         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
45229         with tabs where appropriate.
45230         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
45231         dl-procinfo.h.
45232         [PPC_PLATFORM_PPC440]: Likewise.
45233         [PPC_PLATFORM_PPC464]: Likewise.
45234         [PPC_PLATFORM_PPC476]: Likewise.
45235         (_dl_string_platform): Add support for detecting ppc405, ppc440,
45236         ppc464, and ppc476 platform strings merging from ports/
45237         dl-procinfo.h.
45238
45239 2013-06-11  Andreas Schwab  <schwab@suse.de>
45240
45241         [BZ #14991]
45242         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
45243         (from_ucs4_idx): Regenerate.
45244         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
45245         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
45246         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
45247         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
45248         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
45249         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
45250         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
45251         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
45252         from FROM_LOOP and TO_LOOP specific macros.
45253         (BODY): Handle combining characters.
45254         * iconvdata/BIG5HKSCS.irreversible: Update.
45255         * iconvdata/BIG5HKSCS.precomposed: New file.
45256         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
45257         characters.
45258         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
45259
45260 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45261
45262         * include/sys/time.h: Fix indentation and add copyright header.
45263
45264         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
45265         (do_test): Likewise.
45266         * string/test-memchr.c (do_one_test): Likewise.
45267         (do_test): Likewise.
45268         * string/test-memcmp.c (do_one_test): Likewise.
45269         (do_test): Likewise.
45270         * string/test-memcpy.c (do_one_test): Likewise.
45271         (do_test): Likewise.
45272         * string/test-memmem.c (do_one_test): Likewise.
45273         (do_test): Likewise.
45274         (do_random_tests): Likewise.
45275         * string/test-memmove.c (do_one_test): Likewise.
45276         (do_test): Likewise.
45277         * string/test-memset.c (do_one_test): Likewise.
45278         (do_test): Likewise.
45279         * string/test-rawmemchr.c (do_one_test): Likewise.
45280         (do_test): Likewise.
45281         * string/test-strcasecmp.c (do_one_test): Likewise.
45282         (do_test): Likewise.
45283         * string/test-strcasestr.c (do_one_test): Likewise.
45284         (do_test): Likewise.
45285         * string/test-strcat.c (do_one_test): Likewise.
45286         (do_test): Likewise.
45287         * string/test-strchr.c (do_one_test): Likewise.
45288         (do_test): Likewise.
45289         * string/test-strcmp.c (do_one_test): Likewise.
45290         (do_test): Likewise.
45291         * string/test-strcpy.c (do_one_test): Likewise.
45292         (do_test): Likewise.
45293         * string/test-string.h: Likewise.
45294         (test_init): Likewise.
45295         * string/test-strlen.c (do_one_test): Likewise.
45296         (do_test): Likewise.
45297         * string/test-strncasecmp.c (do_one_test): Likewise.
45298         (do_test): Likewise.
45299         * string/test-strncat.c (do_one_test): Likewise.
45300         (do_test): Likewise.
45301         * string/test-strncmp.c (do_one_test): Likewise.
45302         (do_test_limit): Likewise.
45303         (do_test): Likewise.
45304         * string/test-strncpy.c (do_one_test): Likewise.
45305         (do_test): Likewise.
45306         * string/test-strnlen.c (do_one_test): Likewise.
45307         (do_test): Likewise.
45308         * string/test-strpbrk.c (do_one_test): Likewise.
45309         (do_test): Likewise.
45310         * string/test-strrchr.c (do_one_test): Likewise.
45311         (do_test): Likewise.
45312         * string/test-strspn.c (do_one_test): Likewise.
45313         (do_test): Likewise.
45314         * string/test-strstr.c (do_one_test): Likewise.
45315         (do_test): Likewise.
45316
45317         * benchtests/Makefile (string-bench): Add string benchmarks.
45318         * benchtests/bench-bcopy-ifunc.c: New file.
45319         * benchtests/bench-bcopy.c: New file.
45320         * benchtests/bench-bzero-ifunc.c: New file.
45321         * benchtests/bench-bzero.c: New file.
45322         * benchtests/bench-memccpy-ifunc.c: New file.
45323         * benchtests/bench-memccpy.c: New file.
45324         * benchtests/bench-memchr-ifunc.c: New file.
45325         * benchtests/bench-memchr.c: New file.
45326         * benchtests/bench-memcmp-ifunc.c: New file.
45327         * benchtests/bench-memcmp.c: New file.
45328         * benchtests/bench-memmem-ifunc.c: New file.
45329         * benchtests/bench-memmem.c: New file.
45330         * benchtests/bench-memmove-ifunc.c: New file.
45331         * benchtests/bench-memmove.c: New file.
45332         * benchtests/bench-mempcpy-ifunc.c: New file.
45333         * benchtests/bench-mempcpy.c: New file.
45334         * benchtests/bench-memset-ifunc.c: New file.
45335         * benchtests/bench-memset.c: New file.
45336         * benchtests/bench-rawmemchr-ifunc.c: New file.
45337         * benchtests/bench-rawmemchr.c: New file.
45338         * benchtests/bench-stpcpy-ifunc.c: New file.
45339         * benchtests/bench-stpcpy.c: New file.
45340         * benchtests/bench-stpncpy-ifunc.c: New file.
45341         * benchtests/bench-stpncpy.c: New file.
45342         * benchtests/bench-strcasecmp-ifunc.c: New file.
45343         * benchtests/bench-strcasecmp.c: New file.
45344         * benchtests/bench-strcasestr-ifunc.c: New file.
45345         * benchtests/bench-strcasestr.c: New file.
45346         * benchtests/bench-strcat-ifunc.c: New file.
45347         * benchtests/bench-strcat.c: New file.
45348         * benchtests/bench-strchr-ifunc.c: New file.
45349         * benchtests/bench-strchr.c: New file.
45350         * benchtests/bench-strchrnul-ifunc.c: New file.
45351         * benchtests/bench-strchrnul.c: New file.
45352         * benchtests/bench-strcmp-ifunc.c: New file.
45353         * benchtests/bench-strcmp.c: New file.
45354         * benchtests/bench-strcpy-ifunc.c: New file.
45355         * benchtests/bench-strcpy.c: New file.
45356         * benchtests/bench-strcspn-ifunc.c: New file.
45357         * benchtests/bench-strcspn.c: New file.
45358         * benchtests/bench-strlen-ifunc.c: New file.
45359         * benchtests/bench-strlen.c: New file.
45360         * benchtests/bench-strncasecmp-ifunc.c: New file.
45361         * benchtests/bench-strncasecmp.c: New file.
45362         * benchtests/bench-strncat-ifunc.c: New file.
45363         * benchtests/bench-strncat.c: New file.
45364         * benchtests/bench-strncmp-ifunc.c: New file.
45365         * benchtests/bench-strncmp.c: New file.
45366         * benchtests/bench-strncpy-ifunc.c: New file.
45367         * benchtests/bench-strncpy.c: New file.
45368         * benchtests/bench-strnlen-ifunc.c: New file.
45369         * benchtests/bench-strnlen.c: New file.
45370         * benchtests/bench-strpbrk-ifunc.c: New file.
45371         * benchtests/bench-strpbrk.c: New file.
45372         * benchtests/bench-strrchr-ifunc.c: New file.
45373         * benchtests/bench-strrchr.c: New file.
45374         * benchtests/bench-strspn-ifunc.c: New file.
45375         * benchtests/bench-strspn.c: New file.
45376         * benchtests/bench-strstr-ifunc.c: New file.
45377         * benchtests/bench-strstr.c: New file.
45378
45379         * benchtests/Makefile: Disable parallel execution of targets.
45380         (string-bench): Add memcpy.
45381         (benchset): New variable to store a list of benchmark sets.
45382         (bench-func): Renamed from bench.
45383         (bench-set): New target.
45384         (bench): Depend on bench-func and bench-set.
45385         * benchtests/README: Add section on benchmark sets.
45386         * benchtests/bench-memcpy-ifunc.c: New file.
45387         * benchtests/bench-memcpy.c: New file.
45388         * benchtests/bench-string.h: New file.
45389
45390 2013-06-11  Andreas Schwab  <schwab@suse.de>
45391
45392         [BZ #15577]
45393         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
45394         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
45395         values in the triple.
45396         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
45397         terminator in the group key.
45398
45399 2013-06-11  Andreas Jaeger  <aj@suse.de>
45400
45401         * po/zh_TW.po: Update Chinese (traditional) translation from
45402         translation project.
45403
45404 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45405
45406         * include/time.h (__clock_gettime): Add libc_hidden_proto.
45407         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
45408         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
45409         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
45410         (clock_getcpuclockid): Likewise.
45411         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
45412         Add weak_alias and libc_hidden_def.
45413         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
45414         * rt/clock_gettime.c (clock_gettime): Rename to
45415         __clock_gettime.  Add weak_alias and libc_hidden_def.
45416         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
45417         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
45418         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
45419         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
45420         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
45421         Likewise.
45422         * rt/clock_settime.c (clock_settime): Rename to
45423         __clock_settime.  Add weak_alias and libc_hidden_def.
45424         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
45425
45426 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
45427
45428         * mach/err_boot.sub: Remove trailing whitespace.
45429         * mach/err_ipc.sub: Likewise.
45430         * mach/err_mach.sub: Likewise.
45431
45432         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
45433         (ROUNDING_TESTS_double): Likewise.
45434         (ROUNDING_TESTS_long_double): Likewise.
45435         (ROUNDING_TESTS): Likewise.
45436         * math/libm-test.inc: Include <math-tests.h>.
45437         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
45438         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
45439         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
45440         (IF_ROUND_INIT_FE_UPWARD): Likewise.
45441
45442 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
45443
45444         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
45445         of assigning.
45446
45447 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
45448
45449         * sysdeps/gnu/errlist.awk: Do not generate space at end of
45450         otherwise empty TRANS lines.
45451         * sysdeps/gnu/errlist.c: Regenerated.
45452
45453         * catgets/gencat.c (error_print): Use (void) in function
45454         definition.
45455         * crypt/crypt_util.c (__init_des): Likewise.
45456         * crypt/speeds.c (Stop): Likewise.
45457         (main): Likewise.
45458         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
45459         * inet/ruserpass.c (token): Likewise.
45460         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
45461         * intl/localealias.c (extend_alias_table): Likewise.
45462         * intl/plural-exp.c (init_germanic_plural): Likewise.
45463         * libio/fcloseall.c (__fcloseall): Likewise.
45464         * libio/genops.c (_IO_flush_all): Likewise.
45465         (_IO_flush_all_linebuffered): Likewise.
45466         (_IO_cleanup): Likewise.
45467         (_IO_iter_begin): Likewise.
45468         (_IO_iter_end): Likewise.
45469         (_IO_list_lock): Likewise.
45470         (_IO_list_unlock): Likewise.
45471         (_IO_list_resetlock): Likewise.
45472         * libio/getchar.c (getchar): Likewise.
45473         * libio/getchar_u.c (getchar_unlocked): Likewise.
45474         * libio/getwchar.c (getwchar): Likewise.
45475         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
45476         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
45477         * login/getpt.c (__getpt): Likewise.
45478         * login/tst-utmp.c (main): Likewise.
45479         * malloc/hooks.c (__malloc_check_init): Likewise.
45480         * malloc/malloc.c (__malloc_stats): Likewise.
45481         * malloc/mtrace.c (tr_break): Likewise.
45482         (mtrace): Likewise.
45483         (muntrace): Likewise.
45484         * misc/fstab.c (endfsent): Likewise.
45485         * misc/getclktck.c (__getclktck): Likewise.
45486         * misc/getdtsz.c (__getdtablesize): Likewise.
45487         * misc/gethostid.c (gethostid): Likewise.
45488         * misc/getpagesize.c (__getpagesize): Likewise.
45489         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
45490         (__get_nprocs): Likewise.
45491         (__get_phys_pages): Likewise.
45492         (__get_avphys_pages): Likewise.
45493         * misc/getttyent.c (getttyent): Likewise.
45494         (setttyent): Likewise.
45495         (endttyent): Likewise.
45496         * misc/getusershell.c (getusershell): Likewise.
45497         (endusershell): Likewise.
45498         (setusershell): Likewise.
45499         (initshells): Likewise.
45500         * misc/hsearch.c (__hdestroy): Likewise.
45501         * misc/sync.c (sync): Likewise.
45502         * misc/syslog.c (closelog_internal): Likewise.
45503         (closelog): Likewise.
45504         * misc/ttyslot.c (ttyslot): Likewise.
45505         * misc/vhangup.c (vhangup): Likewise.
45506         * posix/fork.c (__fork): Likewise.
45507         * posix/getegid.c (__getegid): Likewise.
45508         * posix/geteuid.c (__geteuid): Likewise.
45509         * posix/getgid.c (__getgid): Likewise.
45510         * posix/getpid.c (__getpid): Likewise.
45511         * posix/getppid.c (__getppid): Likewise.
45512         * posix/getuid.c (__getuid): Likewise.
45513         * posix/pause.c (pause): Likewise.
45514         * posix/setpgrp.c (setpgrp): Likewise.
45515         * posix/setsid.c (__setsid): Likewise.
45516         * posix/test-vfork.c (noop): Likewise.
45517         * resolv/gethnamaddr.c (_endhtent): Likewise.
45518         (_gethtent): Likewise.
45519         (ht_endhostent): Likewise.
45520         (gethostent): Likewise.
45521         (dns_service): Likewise.
45522         * stdlib/drand48.c (drand48): Likewise.
45523         * stdlib/lrand48.c (lrand48): Likewise.
45524         * stdlib/mrand48.c (mrand48): Likewise.
45525         * stdlib/rand.c (rand): Likewise.
45526         * stdlib/random.c (__random): Likewise.
45527         * stdlib/setenv.c (clearenv): Likewise.
45528         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
45529         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
45530         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
45531         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
45532         (__get_nprocs): Likewise.
45533         (__get_phys_pages): Likewise.
45534         (__get_avphys_pages): Likewise.
45535         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
45536         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
45537         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
45538         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
45539         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
45540         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
45541         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
45542         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
45543         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
45544         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
45545         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
45546         * sysdeps/mach/hurd/sync.c (sync): Likewise.
45547         * sysdeps/posix/clock.c (clock): Likewise.
45548         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
45549         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
45550         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
45551         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
45552         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
45553         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
45554         (__get_nprocs_conf): Likewise.
45555         (__get_phys_pages): Likewise.
45556         (__get_avphys_pages): Likewise.
45557         * time/clock.c (clock): Likewise.
45558         * time/tzset.c (__tzname_max): Likewise.
45559
45560 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
45561
45562         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
45563         (__bswap_32): Do not use "register".
45564         * crypt/crypt.c (_ufc_doit_r): Likewise.
45565         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
45566         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
45567         * gmon/gmon.c (__monstartup): Likewise.
45568         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
45569         * hurd/hurdmalloc.c (more_memory): Likewise.
45570         (malloc): Likewise.
45571         (free): Likewise.
45572         (realloc): Likewise.
45573         (malloc_fork_prepare): Likewise.
45574         (malloc_fork_parent): Likewise.
45575         (malloc_fork_child): Likewise.
45576         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
45577         (_svcauth_des): Likewise.
45578         * inet/inet_lnaof.c (inet_lnaof): Likewise.
45579         * inet/inet_net.c (inet_network): Likewise.
45580         * inet/inet_netof.c (inet_netof): Likewise.
45581         * inet/rcmd.c (__validuser2_sa): Likewise.
45582         * io/fts.c (fts_open): Likewise.
45583         (fts_load): Likewise.
45584         (fts_close): Likewise.
45585         (fts_read): Likewise.
45586         (fts_children): Likewise.
45587         (fts_build): Likewise.
45588         (fts_stat): Likewise.
45589         (fts_sort): Likewise.
45590         (fts_alloc): Likewise.
45591         (fts_lfree): Likewise.
45592         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
45593         (_IO_file_xsgetn): Likewise.
45594         (_IO_file_xsgetn_mmap): Likewise.
45595         * libio/iofopncook.c (_IO_cookie_read): Likewise.
45596         (_IO_cookie_write): Likewise.
45597         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
45598         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
45599         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
45600         * malloc/obstack.c (_obstack_begin): Likewise.
45601         (_obstack_begin_1): Likewise.
45602         (_obstack_newchunk): Likewise.
45603         (_obstack_allocated_p): Likewise.
45604         (obstack_free): Likewise.
45605         (_obstack_memory_used): Likewise.
45606         * misc/getttyent.c (getttynam): Likewise.
45607         (getttyent): Likewise.
45608         (skip): Likewise.
45609         (value): Likewise.
45610         * misc/getusershell.c (initshells): Likewise.
45611         * misc/syslog.c (__vsyslog_chk): Likewise.
45612         * misc/ttyslot.c (ttyslot): Likewise.
45613         * nis/nis_hash.c (__nis_hash): Likewise.
45614         * posix/fnmatch_loop.c (FCT): Likewise.
45615         * posix/getconf.c (print_all): Likewise.
45616         (main): Likewise.
45617         * posix/getopt.c (exchange): Likewise.
45618         * posix/glob.c (globfree): Likewise.
45619         (prefix_array): Likewise.
45620         (__glob_pattern_type): Likewise.
45621         * resolv/arpa/nameser.h (NS_GET16): Likewise.
45622         (NS_GET32): Likewise.
45623         (NS_PUT16): Likewise.
45624         (NS_PUT32): Likewise.
45625         * resolv/gethnamaddr.c (getanswer): Likewise.
45626         (gethostbyname2): Likewise.
45627         (gethostbyaddr): Likewise.
45628         (_gethtent): Likewise.
45629         (_gethtbyname2): Likewise.
45630         (_gethtbyaddr): Likewise.
45631         * resolv/ns_print.c (dst_s_get_int16): Likewise.
45632         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
45633         * resolv/res_init.c (__res_vinit): Likewise.
45634         (net_mask): Likewise.
45635         * resolv/res_mkquery.c (outchar): Likewise.
45636         (PRINT): Likewise.
45637         * stdio-common/printf_fp.c (outchar): Likewise.
45638         (PRINT): Likewise.
45639         * stdio-common/printf_fphex.c (outchar): Likewise.
45640         (PRINT): Likewise.
45641         * stdio-common/printf_size.c (outchar): Likewise.
45642         (PRINT): Likewise.
45643         * stdio-common/test_rdwr.c (main): Likewise.
45644         * stdio-common/tfformat.c (matches): Likewise.
45645         * stdio-common/vfprintf.c (outchar): Likewise.
45646         (printf_unknown): Likewise.
45647         (buffered_vfprintf): Likewise.
45648         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
45649         * stdio-common/xbug.c (AppendToBuffer): Likewise.
45650         (ReadFile): Likewise.
45651         * stdlib/qsort.c (SWAP): Likewise.
45652         (_quicksort): Likewise.
45653         * stdlib/setenv.c (__add_to_environ): Likewise.
45654         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
45655         * stdlib/strtol_l.c (__strtol_l): Likewise.
45656         * stdlib/tst-strtod.c (main): Likewise.
45657         * stdlib/tst-strtol.c (main): Likewise.
45658         * stdlib/tst-strtoll.c (main): Likewise.
45659         * string/bits/string2.h (__strcmp_cc): Likewise.
45660         (__strcmp_cg): Likewise.
45661         (__strcspn_c1): Likewise.
45662         (__strcspn_c2): Likewise.
45663         (__strcspn_c3): Likewise.
45664         (__strspn_c1): Likewise.
45665         (__strspn_c2): Likewise.
45666         (__strspn_c3): Likewise.
45667         (__strsep_1c): Likewise.
45668         (__strsep_2c): Likewise.
45669         (__strsep_3c): Likewise.
45670         * string/memccpy.c (__memccpy): Likewise.
45671         * string/stpcpy.c (__stpcpy): Likewise.
45672         * string/strcmp.c (strcmp): Likewise.
45673         * string/strrchr.c (strrchr): Likewise.
45674         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
45675         Likewise.
45676         * sysdeps/mach/hurd/getcwd.c
45677         (_hurd_canonicalize_directory_name_internal): Likewise.
45678         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
45679         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
45680         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
45681         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
45682         Likewise, in both definitions.
45683         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
45684         definitions.
45685         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
45686         64] (__bswap_64): Likewise.
45687         * time/test_time.c (main): Likewise.
45688         * time/tzfile.c (__tzfile_read): Likewise.
45689         (__tzfile_compute): Likewise.
45690         * time/tzset.c (__tzset_parse_tz): Likewise.
45691         (tzset_internal): Likewise.
45692         (compute_change): Likewise.
45693         * wcsmbs/wcscat.c (__wcscat): Likewise.
45694         * wcsmbs/wcschr.c (wcschr): Likewise.
45695         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
45696         * wcsmbs/wcscspn.c (wcscspn): Likewise.
45697         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
45698         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
45699         * wcsmbs/wcsspn.c (wcsspn): Likewise.
45700         * wcsmbs/wcsstr.c (wcsstr): Likewise.
45701         * wcsmbs/wmemchr.c (wmemchr): Likewise.
45702         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
45703         * wcsmbs/wmemset.c (wmemset): Likewise.
45704
45705 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
45706
45707         * scripts/config.guess: Update to version 2013-05-16.
45708         * scripts/config.sub: Update to version 2013-04-24.
45709         * scripts/install-sh: Update to version 2011-11-20.07.
45710         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
45711         * scripts/move-if-change: Update to version 2012-01-06 07:23.
45712
45713 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
45714
45715         * debug/fgetws_u_chk.c: Fix leading whitespaces.
45716         * elf/sln.c: Likewise.
45717         * hurd/hurd/ioctl.h: Likewise.
45718         * hurd/hurdmalloc.c: Likewise.
45719         * hurd/xattr.c: Likewise.
45720         * include/shlib-compat.h: Likewise.
45721         * inet/ruserpass.c: Likewise.
45722         * libio/iofgets_u.c: Likewise.
45723         * libio/iofgetws_u.c: Likewise.
45724         * locale/programs/ld-identification.c: Likewise.
45725         * locale/programs/ld-time.c: Likewise.
45726         * mach/msg-destroy.c: Likewise.
45727         * nss/nss_files/files-netgrp.c: Likewise.
45728         * resolv/res_data.c: Likewise.
45729         * soft-fp/op-1.h: Likewise.
45730         * soft-fp/op-2.h: Likewise.
45731         * soft-fp/op-4.h: Likewise.
45732         * soft-fp/op-common.h: Likewise.
45733         * stdio-common/printf_fphex.c: Likewise.
45734         * stdlib/strtod_l.c: Likewise.
45735         * sunrpc/rpc/clnt.h: Likewise.
45736         * sysdeps/generic/framestate.c: Likewise.
45737         * sysdeps/i386/bsd-_setjmp.S: Likewise.
45738         * sysdeps/i386/bsd-setjmp.S: Likewise.
45739         * sysdeps/i386/__longjmp.S: Likewise.
45740         * sysdeps/i386/setjmp.S: Likewise.
45741         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
45742         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
45743         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
45744         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
45745         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
45746         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
45747         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
45748         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
45749         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
45750         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
45751         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
45752         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
45753         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
45754         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
45755         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
45756         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
45757         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
45758         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
45759         * sysdeps/ieee754/support.c: Likewise.
45760         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
45761         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
45762         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
45763         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
45764         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
45765         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
45766         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
45767         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
45768         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
45769         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
45770         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
45771         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
45772         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
45773         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
45774         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
45775         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
45776         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
45777         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
45778
45779 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
45780
45781         * posix/transbug.c: Remove executable mode.
45782
45783 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
45784
45785         * crypt/speeds.c: Remove trailing whitespace.
45786         * dlfcn/default.c: Likewise.
45787         * elf/ifuncdep2.c: Likewise.
45788         * elf/ifuncmain1.c: Likewise.
45789         * elf/ifuncmain1vis.c: Likewise.
45790         * elf/testobj.h: Likewise.
45791         * elf/tst-stackguard1.c: Likewise.
45792         * gmon/sys/gmon.h: Likewise.
45793         * hurd/hurdmsg.c: Likewise.
45794         * hurd/new-fd.c: Likewise.
45795         * hurd/ports-get.c: Likewise.
45796         * iconvdata/ibm1008_420.c: Likewise.
45797         * inet/tst-getni1.c: Likewise.
45798         * inet/tst-getni2.c: Likewise.
45799         * libio/ioungetc.c: Likewise.
45800         * libio/wfiledoalloc.c: Likewise.
45801         * manual/libm-err-tab.pl: Likewise.
45802         * math/w_dremf.c: Likewise.
45803         * misc/ftruncate.c: Likewise.
45804         * posix/bug-glob2.c: Likewise.
45805         * posix/tst-pcre.c: Likewise.
45806         * posix/wait4.c: Likewise.
45807         * resolv/README: Likewise.
45808         * resolv/res_debug.h: Likewise.
45809         * resolv/tst-inet_ntop.c: Likewise.
45810         * setjmp/bug269-setjmp.c: Likewise.
45811         * soft-fp/extended.h: Likewise.
45812         * soft-fp/op-1.h: Likewise.
45813         * soft-fp/op-2.h: Likewise.
45814         * soft-fp/op-4.h: Likewise.
45815         * soft-fp/op-8.h: Likewise.
45816         * soft-fp/testit.c: Likewise.
45817         * stdio-common/bug16.c: Likewise.
45818         * stdlib/random.c: Likewise.
45819         * sunrpc/rpcsvc/rquota.x: Likewise.
45820         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
45821         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
45822         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
45823         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
45824         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
45825         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
45826         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
45827         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
45828         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
45829         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
45830         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
45831         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
45832         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
45833         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
45834         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
45835         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
45836         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
45837         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
45838         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
45839         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
45840         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
45841         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
45842         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
45843         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
45844         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
45845         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
45846         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
45847         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
45848         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
45849         * sysdeps/ieee754/s_lib_version.c: Likewise.
45850         * sysdeps/mach/hurd/check_fds.c: Likewise.
45851         * sysdeps/mach/hurd/getsockname.c: Likewise.
45852         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
45853         * sysdeps/mach/hurd/recvfrom.c: Likewise.
45854         * sysdeps/powerpc/bits/link.h: Likewise.
45855         * sysdeps/powerpc/dl-procinfo.c: Likewise.
45856         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
45857         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
45858         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
45859         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
45860         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
45861         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
45862         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
45863         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
45864         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
45865         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
45866         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
45867         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
45868         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
45869         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
45870         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
45871         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
45872         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
45873         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
45874         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
45875         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
45876         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
45877         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
45878         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
45879         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
45880         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
45881         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
45882         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
45883         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
45884         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
45885         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
45886         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
45887         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
45888         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
45889         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
45890         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
45891         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
45892         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
45893         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
45894         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
45895         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
45896         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
45897         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
45898         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
45899         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
45900         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
45901         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
45902         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
45903         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
45904         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
45905         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
45906         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
45907         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
45908         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
45909         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
45910         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
45911         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
45912         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
45913         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
45914         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
45915         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
45916         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
45917         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
45918         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
45919         * sysdeps/powerpc/sysdep.h: Likewise.
45920         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
45921         * sysdeps/s390/s390-64/sub_n.S: Likewise.
45922         * sysdeps/sh/dl-trampoline.S: Likewise.
45923         * sysdeps/sh/memset.S: Likewise.
45924         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
45925         * sysdeps/sh/strlen.S: Likewise.
45926         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
45927         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
45928         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
45929         * sysdeps/sparc/sparc32/rem.S: Likewise.
45930         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
45931         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
45932         * sysdeps/sparc/sparc32/strchr.S: Likewise.
45933         * sysdeps/sparc/sparc32/udiv.S: Likewise.
45934         * sysdeps/sparc/sparc32/urem.S: Likewise.
45935         * sysdeps/sparc/sparc64/add_n.S: Likewise.
45936         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
45937         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
45938         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
45939         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
45940         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
45941         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
45942         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
45943         * sysdeps/unix/bsd/times.c: Likewise.
45944         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
45945         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
45946         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
45947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
45948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
45949         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
45950         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
45951         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
45952         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
45953         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
45954         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
45955         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
45956         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
45957         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
45958         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
45959         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
45960         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
45961         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
45962         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
45963         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
45964         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
45965         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
45966         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
45967         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
45968         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
45969         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
45970         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
45971         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
45972         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
45973         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
45974         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
45975         * sysdeps/x86_64/strcspn.S: Likewise.
45976
45977 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45978
45979         * locale/C-translit.h: Revert #include <stdint.h> because this is a
45980         generated file.  Regenerate properly from gen-translit.pl.
45981         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
45982         locale/C-translit.h.
45983
45984 2013-06-05  Andreas Schwab  <schwab@suse.de>
45985
45986         [BZ #15100]
45987         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
45988         week as 6 instead of -1.
45989         * time/tst-strptime.c (day_tests): Add test case.
45990
45991 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
45992
45993         * sysdeps/generic/math_private.h
45994         (libc_feholdexcept_setround_53bit): Replace with
45995         libc_feholdsetround_53bit.
45996         (libc_feupdateenv_53bit): Replace with
45997         libc_feresetround_53bit.
45998         (SET_RESTORE_ROUND_53BIT): Adjust.
45999
46000 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
46001
46002         * string/test-strchrnul.c: Add copyright header.
46003
46004         * posix/tst-getaddrinfo4.c: Increase test timeout.
46005
46006 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
46007
46008         [BZ #15536]
46009         * math/libm-test.inc (MAX_EXP): Remove
46010         (MIN_EXP): Define.
46011         (ulp): Use MIN_EXP - MANT_DIG.
46012         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
46013
46014 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
46015
46016         * po/be.po: Revert last change.
46017         * po/zh_CN.po: Likewise.
46018         * po/header.pot: Likewise.
46019
46020 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
46021
46022         * Makefile ($(common-objpfx)linkobj/libc.so): Define
46023         link-libc-deps to empty as target-specific variable.
46024         * Makerules (link-libc-args): New variable.
46025         (libc-for-link): Likewise.
46026         (link-libc-deps): Likewise.
46027         (lib%.so): Depend on $(link-libc-deps).  Link with
46028         $(link-libc-args).
46029         (build-module): Link with $(link-libc-args).
46030         (build-module-asneeded): Likewise.
46031         (build-module-helper-objlist): Filter out $(link-libc-deps) from
46032         list of objects.
46033         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
46034         target-specific variable.
46035         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
46036         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
46037         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
46038         libc.
46039         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
46040         libc and ld.so.
46041         ($(objpfx)libpcprofile.so): Likewise.
46042         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
46043         libc_nonshared.a.
46044         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
46045         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
46046         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
46047         $(link-libc-deps).
46048         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
46049         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
46050         * login/Makefile ($(objpfx)libutil.so): Likewise.
46051         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
46052         * math/Makefile ($(objpfx)libm.so): Likewise.
46053         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
46054         $(objpfx)libnsl.so): Define libc-for-link as target-specific
46055         variable instead of depending directly on libc.
46056         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
46057         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
46058         $(link-libc-deps).
46059         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
46060         libc.
46061         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
46062         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
46063         ($(objpfx)libanl.so): Likewise.
46064         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
46065         ld.so.
46066         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
46067         $(link-libc-deps).
46068         * sysdeps/i386/fpu/Makefile: Remove file.
46069         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
46070         ($(objpfx)libm.so): Remove dependency on ld.so.
46071
46072 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
46073
46074         [BZ # 15553]
46075         * nis/yp_xdr.c (XDRMAXNAME): Define.
46076         (XDRMAXRECORD): Define.
46077         (xdr_domainname): Use XDRMAXNAME.
46078         (xdr_mapname): Likewise.
46079         (xdr_peername): Likewise.
46080         (xdr_keydat): Use XDRMAXRECORD.
46081         (xdr_valdat): Likewise.
46082
46083 2013-05-30  Jeff Law  <law@redhat.com>
46084
46085         [BZ #14256]
46086         * manual/errno.texi (ESTALE): Update to account for more than
46087         just NFS file systems.
46088         * sysdeps/gnu/errlist.c: Regenerated.
46089
46090 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
46091
46092         [BZ #15465]
46093         * elf/Makefile (tests): Add tst-null-argv.
46094         (modules-names):  Add tst-null-argv-lib.
46095         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
46096         (tst-null-argv-ENV): Set environment for tst-null-argv.
46097         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
46098         (RTLD_PROGNAME): New macro.
46099         * elf/tst-null-argv.c: New test case.
46100         * elf/tst-null-argv-lib.c: Library for test case.
46101         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
46102         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
46103         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
46104         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
46105         * elf/dl-init.c (call_init): Likewise.
46106         (_dl_init): Likewise.
46107         * elf/dl-load.c (print_search_path): Likewise.
46108         (_dl_map_object): Likewise.
46109         * elf/dl-lookup.c (do_lookup_x): Likewise.
46110         (add_dependency): Likewise.
46111         (_dl_lookup_symbol_x): Likewise.
46112         (_dl_debug_bindings): Likewise.
46113         * elf/dl-open.c (_dl_show_scope): Likewise.
46114         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
46115         * elf/dl-version.c (match_symbol): Likewise.
46116         (_dl_check_map_versions): Likewise.
46117         * elf/rtld.c (dl_main): Likewise.
46118         (print_unresolved): Use RTLD_PROGNAME.
46119         (print_missing_version): Likewise.
46120         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
46121         (elf_machine_rela): Likewise.
46122         * sysdeps/powerpc/powerpc32/dl-machine.c
46123         (__process_machine_rela): Likewise.
46124         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46125         Likewise.
46126         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
46127         Likewise.
46128         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
46129         Likewise.
46130         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
46131         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
46132         Likewise.
46133         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
46134         Likewise.
46135         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
46136
46137 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
46138
46139         * po/be.po: Add descriptive title.
46140         * po/zh_CN.po: Likewise.
46141         * po/header.pot: Likewise.
46142
46143 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
46144
46145         * locale/programs/locarchive.c (create_archive): Inlucde fname in
46146         error message.
46147         (enlarge_archive): Likewise.
46148
46149 2013-05-28  Ben North  <ben@redfrontdoor.org>
46150
46151         * manual/arith.texi (frexp): It is the magnitude of the return
46152         value which lies in [0.5, 1), not the return value itself.
46153
46154 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46155
46156         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46157
46158 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
46159
46160         * stdio-common/bug26.c (main): Correct fscanf template.
46161
46162         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
46163         declare _dl_skip_args.
46164
46165         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
46166         Don't declare.
46167
46168         * manual/platform.texi: Add missing @end deftypefun.
46169
46170 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46171
46172         [BZ #15529]
46173         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
46174         bit of mantissa of 2^16382.
46175         * math/libm-test.inc (hypot_test_data): Add more tests.
46176
46177         * math/libm-test.inc: Add drem and pow10 to list of tested
46178         functions.
46179         (pow10_test): New function.
46180         (drem_test): Likewise.
46181         (drem_test_tonearest): Likewise.
46182         (drem_test_towardzero): Likewise.
46183         (drem_test_downward): Likewise.
46184         (drem_test_upward): Likewise.
46185         (main): Call the new functions.
46186
46187         * math/libm-test.inc (finite_test_data): Remove.
46188         (finite_test): Run tests from isfinite_test_data.
46189         (gamma_test_data): Remove.
46190         (gamma_test): Run tests from lgamma_test_data.
46191         * sysdeps/i386/fpu/libm-test-ulps: Update.
46192         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46193
46194 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46195
46196         * manual/platform.texi: Add PowerPC PPR function set documentation.
46197         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
46198         implementation.
46199
46200 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
46201
46202         * math/libm-test.inc (MAX_EXP): Define.
46203         (ULPDIFF): Define.
46204         (ulp): New function.
46205         (check_float_internal): Use ULPDIFF.
46206         (cpow_test): Disable failing test.
46207         (check_ulp): Test ulp() implemetnation.
46208         (main): Call check_ulp before starting tests.
46209
46210 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46211
46212         * math/gen-libm-test.pl (generate_testfile): Do not handle
46213         START_DATA and END_DATA.
46214         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
46215         END_DATA.
46216         (acos_tonearest_test_data): Likewise.
46217         (acos_towardzero_test_data): Likewise.
46218         (acos_downward_test_data): Likewise.
46219         (acos_upward_test_data): Likewise.
46220         (acosh_test_data): Likewise.
46221         (asin_test_data): Likewise.
46222         (asin_tonearest_test_data): Likewise.
46223         (asin_towardzero_test_data): Likewise.
46224         (asin_downward_test_data): Likewise.
46225         (asin_upward_test_data): Likewise.
46226         (asinh_test_data): Likewise.
46227         (atan_test_data): Likewise.
46228         (atanh_test_data): Likewise.
46229         (atan2_test_data): Likewise.
46230         (cabs_test_data): Likewise.
46231         (cacos_test_data): Likewise.
46232         (cacosh_test_data): Likewise.
46233         (carg_test_data): Likewise.
46234         (casin_test_data): Likewise.
46235         (casinh_test_data): Likewise.
46236         (catan_test_data): Likewise.
46237         (catanh_test_data): Likewise.
46238         (cbrt_test_data): Likewise.
46239         (ccos_test_data): Likewise.
46240         (ccosh_test_data): Likewise.
46241         (ceil_test_data): Likewise.
46242         (cexp_test_data): Likewise.
46243         (cimag_test_data): Likewise.
46244         (clog_test_data): Likewise.
46245         (clog10_test_data): Likewise.
46246         (conj_test_data): Likewise.
46247         (copysign_test_data): Likewise.
46248         (cos_test_data): Likewise.
46249         (cos_tonearest_test_data): Likewise.
46250         (cos_towardzero_test_data): Likewise.
46251         (cos_downward_test_data): Likewise.
46252         (cos_upward_test_data): Likewise.
46253         (cosh_test_data): Likewise.
46254         (cosh_tonearest_test_data): Likewise.
46255         (cosh_towardzero_test_data): Likewise.
46256         (cosh_downward_test_data): Likewise.
46257         (cosh_upward_test_data): Likewise.
46258         (cpow_test_data): Likewise.
46259         (cproj_test_data): Likewise.
46260         (creal_test_data): Likewise.
46261         (csin_test_data): Likewise.
46262         (csinh_test_data): Likewise.
46263         (csqrt_test_data): Likewise.
46264         (ctan_test_data): Likewise.
46265         (ctan_tonearest_test_data): Likewise.
46266         (ctan_towardzero_test_data): Likewise.
46267         (ctan_downward_test_data): Likewise.
46268         (ctan_upward_test_data): Likewise.
46269         (ctanh_test_data): Likewise.
46270         (ctanh_tonearest_test_data): Likewise.
46271         (ctanh_towardzero_test_data): Likewise.
46272         (ctanh_downward_test_data): Likewise.
46273         (ctanh_upward_test_data): Likewise.
46274         (erf_test_data): Likewise.
46275         (erfc_test_data): Likewise.
46276         (exp_test_data): Likewise.
46277         (exp_tonearest_test_data): Likewise.
46278         (exp_towardzero_test_data): Likewise.
46279         (exp_downward_test_data): Likewise.
46280         (exp_upward_test_data): Likewise.
46281         (exp10_test_data): Likewise.
46282         (exp2_test_data): Likewise.
46283         (expm1_test_data): Likewise.
46284         (fabs_test_data): Likewise.
46285         (fdim_test_data): Likewise.
46286         (finite_test_data): Likewise.
46287         (floor_test_data): Likewise.
46288         (fma_test_data): Likewise.
46289         (fma_towardzero_test_data): Likewise.
46290         (fma_downward_test_data): Likewise.
46291         (fma_upward_test_data): Likewise.
46292         (fmax_test_data): Likewise.
46293         (fmin_test_data): Likewise.
46294         (fmod_test_data): Likewise.
46295         (fpclassify_test_data): Likewise.
46296         (frexp_test_data): Likewise.
46297         (gamma_test_data): Likewise.
46298         (hypot_test_data): Likewise.
46299         (ilogb_test_data): Likewise.
46300         (isfinite_test_data): Likewise.
46301         (isgreater_test_data): Likewise.
46302         (isgreaterequal_test_data): Likewise.
46303         (isinf_test_data): Likewise.
46304         (isless_test_data): Likewise.
46305         (islessequal_test_data): Likewise.
46306         (islessgreater_test_data): Likewise.
46307         (isnan_test_data): Likewise.
46308         (isnormal_test_data): Likewise.
46309         (issignaling_test_data): Likewise.
46310         (isunordered_test_data): Likewise.
46311         (j0_test_data): Likewise.
46312         (j1_test_data): Likewise.
46313         (jn_test_data): Likewise.
46314         (ldexp_test_data): Likewise.
46315         (lgamma_test_data): Likewise.
46316         (lrint_test_data): Likewise.
46317         (lrint_tonearest_test_data): Likewise.
46318         (lrint_towardzero_test_data): Likewise.
46319         (lrint_downward_test_data): Likewise.
46320         (lrint_upward_test_data): Likewise.
46321         (llrint_test_data): Likewise.
46322         (llrint_tonearest_test_data): Likewise.
46323         (llrint_towardzero_test_data): Likewise.
46324         (llrint_downward_test_data): Likewise.
46325         (llrint_upward_test_data): Likewise.
46326         (log_test_data): Likewise.
46327         (log10_test_data): Likewise.
46328         (log1p_test_data): Likewise.
46329         (log2_test_data): Likewise.
46330         (logb_test_data): Likewise.
46331         (logb_downward_test_data): Likewise.
46332         (lround_test_data): Likewise.
46333         (llround_test_data): Likewise.
46334         (modf_test_data): Likewise.
46335         (nearbyint_test_data): Likewise.
46336         (nextafter_test_data): Likewise.
46337         (nexttoward_test_data): Likewise.
46338         (pow_test_data): Likewise.
46339         (pow_tonearest_test_data): Likewise.
46340         (pow_towardzero_test_data): Likewise.
46341         (pow_downward_test_data): Likewise.
46342         (pow_upward_test_data): Likewise.
46343         (remainder_test_data): Likewise.
46344         (remainder_tonearest_test_data): Likewise.
46345         (remainder_towardzero_test_data): Likewise.
46346         (remainder_downward_test_data): Likewise.
46347         (remainder_upward_test_data): Likewise.
46348         (remquo_test_data): Likewise.
46349         (rint_test_data): Likewise.
46350         (rint_tonearest_test_data): Likewise.
46351         (rint_towardzero_test_data): Likewise.
46352         (rint_downward_test_data): Likewise.
46353         (rint_upward_test_data): Likewise.
46354         (round_test_data): Likewise.
46355         (scalb_test_data): Likewise.
46356         (scalbn_test_data): Likewise.
46357         (scalbln_test_data): Likewise.
46358         (signbit_test_data): Likewise.
46359         (sin_test_data): Likewise.
46360         (sin_tonearest_test_data): Likewise.
46361         (sin_towardzero_test_data): Likewise.
46362         (sin_downward_test_data): Likewise.
46363         (sin_upward_test_data): Likewise.
46364         (sincos_test_data): Likewise.
46365         (sinh_test_data): Likewise.
46366         (sinh_tonearest_test_data): Likewise.
46367         (sinh_towardzero_test_data): Likewise.
46368         (sinh_downward_test_data): Likewise.
46369         (sinh_upward_test_data): Likewise.
46370         (sqrt_test_data): Likewise.
46371         (tan_test_data): Likewise.
46372         (tan_tonearest_test_data): Likewise.
46373         (tan_towardzero_test_data): Likewise.
46374         (tan_downward_test_data): Likewise.
46375         (tan_upward_test_data): Likewise.
46376         (tanh_test_data): Likewise.
46377         (tgamma_test_data): Likewise.
46378         (trunc_test_data): Likewise.
46379         (y0_test_data): Likewise.
46380         (y1_test_data): Likewise.
46381         (yn_test_data): Likewise.
46382         (significand_test_data): Likewise.
46383
46384         * math/gen-libm-test.pl (@functions): Remove variable.
46385         (generate_testfile): Don't handle START and END lines.
46386         * math/libm-test.inc (START): New macro.
46387         (END): Likewise.
46388         (END_COMPLEX): Likewise.
46389         (acos_test): Use END macro without arguments.
46390         (acos_test_tonearest): Likewise.
46391         (acos_test_towardzero): Likewise.
46392         (acos_test_downward): Likewise.
46393         (acos_test_upward): Likewise.
46394         (acosh_test): Likewise.
46395         (asin_test): Likewise.
46396         (asin_test_tonearest): Likewise.
46397         (asin_test_towardzero): Likewise.
46398         (asin_test_downward): Likewise.
46399         (asin_test_upward): Likewise.
46400         (asinh_test): Likewise.
46401         (atan_test): Likewise.
46402         (atanh_test): Likewise.
46403         (atan2_test): Likewise.
46404         (cabs_test): Likewise.
46405         (cacos_test): Use END_COMPLEX macro without arguments.
46406         (cacosh_test): Likewise.
46407         (carg_test): Use END macro without arguments.
46408         (casin_test): Use END_COMPLEX macro without arguments.
46409         (casinh_test): Likewise.
46410         (catan_test): Likewise.
46411         (catanh_test): Likewise.
46412         (cbrt_test): Use END macro without arguments.
46413         (ccos_test): Use END_COMPLEX macro without arguments.
46414         (ccosh_test): Likewise.
46415         (ceil_test): Use END macro without arguments.
46416         (cexp_test): Use END_COMPLEX macro without arguments.
46417         (cimag_test): Use END macro without arguments.
46418         (clog_test): Use END_COMPLEX macro without arguments.
46419         (clog10_test): Likewise.
46420         (conj_test): Likewise.
46421         (copysign_test): Use END macro without arguments.
46422         (cos_test): Likewise.
46423         (cos_test_tonearest): Likewise.
46424         (cos_test_towardzero): Likewise.
46425         (cos_test_downward): Likewise.
46426         (cos_test_upward): Likewise.
46427         (cosh_test): Likewise.
46428         (cosh_test_tonearest): Likewise.
46429         (cosh_test_towardzero): Likewise.
46430         (cosh_test_downward): Likewise.
46431         (cosh_test_upward): Likewise.
46432         (cpow_test): Use END_COMPLEX macro without arguments.
46433         (cproj_test): Likewise.
46434         (creal_test): Use END macro without arguments.
46435         (csin_test): Use END_COMPLEX macro without arguments.
46436         (csinh_test): Likewise.
46437         (csqrt_test): Likewise.
46438         (ctan_test): Likewise.
46439         (ctan_test_tonearest): Likewise.
46440         (ctan_test_towardzero): Likewise.
46441         (ctan_test_downward): Likewise.
46442         (ctan_test_upward): Likewise.
46443         (ctanh_test): Likewise.
46444         (ctanh_test_tonearest): Likewise.
46445         (ctanh_test_towardzero): Likewise.
46446         (ctanh_test_downward): Likewise.
46447         (ctanh_test_upward): Likewise.
46448         (erf_test): Use END macro without arguments.
46449         (erfc_test): Likewise.
46450         (exp_test): Likewise.
46451         (exp_test_tonearest): Likewise.
46452         (exp_test_towardzero): Likewise.
46453         (exp_test_downward): Likewise.
46454         (exp_test_upward): Likewise.
46455         (exp10_test): Likewise.
46456         (exp2_test): Likewise.
46457         (expm1_test): Likewise.
46458         (fabs_test): Likewise.
46459         (fdim_test): Likewise.
46460         (finite_test): Likewise.
46461         (floor_test): Likewise.
46462         (fma_test): Likewise.
46463         (fma_test_towardzero): Likewise.
46464         (fma_test_downward): Likewise.
46465         (fma_test_upward): Likewise.
46466         (fmax_test): Likewise.
46467         (fmin_test): Likewise.
46468         (fmod_test): Likewise.
46469         (fpclassify_test): Likewise.
46470         (frexp_test): Likewise.
46471         (gamma_test): Likewise.
46472         (hypot_test): Likewise.
46473         (ilogb_test): Likewise.
46474         (isfinite_test): Likewise.
46475         (isgreater_test): Likewise.
46476         (isgreaterequal_test): Likewise.
46477         (isinf_test): Likewise.
46478         (isless_test): Likewise.
46479         (islessequal_test): Likewise.
46480         (islessgreater_test): Likewise.
46481         (isnan_test): Likewise.
46482         (isnormal_test): Likewise.
46483         (issignaling_test): Likewise.
46484         (isunordered_test): Likewise.
46485         (j0_test): Likewise.
46486         (j1_test): Likewise.
46487         (jn_test): Likewise.
46488         (ldexp_test): Likewise.
46489         (lgamma_test): Likewise.
46490         (lrint_test): Likewise.
46491         (lrint_test_tonearest): Likewise.
46492         (lrint_test_towardzero): Likewise.
46493         (lrint_test_downward): Likewise.
46494         (lrint_test_upward): Likewise.
46495         (llrint_test): Likewise.
46496         (llrint_test_tonearest): Likewise.
46497         (llrint_test_towardzero): Likewise.
46498         (llrint_test_downward): Likewise.
46499         (llrint_test_upward): Likewise.
46500         (log_test): Likewise.
46501         (log10_test): Likewise.
46502         (log1p_test): Likewise.
46503         (log2_test): Likewise.
46504         (logb_test): Likewise.
46505         (logb_test_downward): Likewise.
46506         (lround_test): Likewise.
46507         (llround_test): Likewise.
46508         (modf_test): Likewise.
46509         (nearbyint_test): Likewise.
46510         (nextafter_test): Likewise.
46511         (nexttoward_test): Likewise.
46512         (pow_test): Likewise.
46513         (pow_test_tonearest): Likewise.
46514         (pow_test_towardzero): Likewise.
46515         (pow_test_downward): Likewise.
46516         (pow_test_upward): Likewise.
46517         (remainder_test): Likewise.
46518         (remainder_test_tonearest): Likewise.
46519         (remainder_test_towardzero): Likewise.
46520         (remainder_test_downward): Likewise.
46521         (remainder_test_upward): Likewise.
46522         (remquo_test): Likewise.
46523         (rint_test): Likewise.
46524         (rint_test_tonearest): Likewise.
46525         (rint_test_towardzero): Likewise.
46526         (rint_test_downward): Likewise.
46527         (rint_test_upward): Likewise.
46528         (round_test): Likewise.
46529         (scalb_test): Likewise.
46530         (scalbn_test): Likewise.
46531         (scalbln_test): Likewise.
46532         (signbit_test): Likewise.
46533         (sin_test): Likewise.
46534         (sin_test_tonearest): Likewise.
46535         (sin_test_towardzero): Likewise.
46536         (sin_test_downward): Likewise.
46537         (sin_test_upward): Likewise.
46538         (sincos_test): Likewise.
46539         (sinh_test): Likewise.
46540         (sinh_test_tonearest): Likewise.
46541         (sinh_test_towardzero): Likewise.
46542         (sinh_test_downward): Likewise.
46543         (sinh_test_upward): Likewise.
46544         (sqrt_test): Likewise.
46545         (tan_test): Likewise.
46546         (tan_test_tonearest): Likewise.
46547         (tan_test_towardzero): Likewise.
46548         (tan_test_downward): Likewise.
46549         (tan_test_upward): Likewise.
46550         (tanh_test): Likewise.
46551         (tgamma_test): Likewise.
46552         (trunc_test): Likewise.
46553         (y0_test): Likewise.
46554         (y1_test): Likewise.
46555         (yn_test): Likewise.
46556         (significand_test): Likewise.
46557
46558 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
46559
46560         [BZ #15381]
46561         * libio/genops.c (_IO_no_init): Initialize wide struct info.
46562
46563 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
46564
46565         [BZ #14894]
46566         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
46567         __ppc_mdoio and __ppc_mdoom.
46568         * manual/platform.texi: Document new functions __ppc_yield,
46569         __ppc_mdoio and __ppc_mdoom.
46570
46571 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
46572
46573         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
46574         (main): Mention "tls" pseudo-hwcap is legacy.
46575         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
46576
46577 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
46578
46579         * math/gen-libm-test.pl (parse_args): Output only string of
46580         arguments as text for test name, not full call or descriptions of
46581         tests for extra outputs.
46582         (generate_testfile): Do not pass function name to parse_args.
46583         Generate this_func variable from START.
46584         * math/libm-test.inc (struct test_f_f_data): Rename test_name
46585         field to arg_str.
46586         (struct test_ff_f_data): Likewise.
46587         (test_ff_f_data_nexttoward): Likewise.
46588         (struct test_fi_f_data): Likewise.
46589         (struct test_fl_f_data): Likewise.
46590         (struct test_if_f_data): Likewise.
46591         (struct test_fff_f_data): Likewise.
46592         (struct test_c_f_data): Likewise.
46593         (struct test_f_f1_data): Likewise.  Remove field extra_name.
46594         (struct test_fF_f1_data): Likewise.
46595         (struct test_ffI_f1_data): Likewise.
46596         (struct test_c_c_data): Rename test_name field to arg_str.
46597         (struct test_cc_c_data): Likewise.
46598         (struct test_f_i_data): Likewise.
46599         (struct test_ff_i_data): Likewise.
46600         (struct test_f_l_data): Likewise.
46601         (struct test_f_L_data): Likewise.
46602         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
46603         and extra2_name.
46604         (COMMON_TEST_SETUP): New macro.
46605         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
46606         (COMMON_TEST_CLEANUP): Likewise.
46607         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
46608         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
46609         macros.
46610         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
46611         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
46612         macros.
46613         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
46614         (RUN_TEST_fff_f): Take argument string.  Call new setup and
46615         cleanup macros.
46616         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
46617         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
46618         macros.
46619         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
46620         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
46621         macros.
46622         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
46623         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
46624         cleanup macros.
46625         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
46626         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
46627         cleanup macros.
46628         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
46629         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
46630         cleanup macros.
46631         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
46632         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
46633         macros.
46634         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
46635         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
46636         macros.
46637         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
46638         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
46639         macros.
46640         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
46641         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
46642         cleanup macros.
46643         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
46644         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
46645         cleanup macros.
46646         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
46647         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
46648         macros.
46649         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
46650         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
46651         cleanup macros.
46652         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
46653         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
46654         macros.
46655         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
46656         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
46657         macros.
46658         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
46659         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
46660         cleanup macros.
46661         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
46662
46663 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
46664
46665         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
46666         to _sifields.sigfault.
46667         (si_addr_lsb): Define new macro.
46668         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
46669         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
46670         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
46671
46672 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
46673
46674         [BZ #15441]
46675         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
46676         returns -1.
46677         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
46678         null return -1.
46679         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
46680         loading the domain.
46681
46682 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
46683
46684         * math/gen-libm-test.pl (parse_args): Do not include expected
46685         result in test name.
46686         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
46687         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
46688         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
46689         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
46690         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
46691         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46692
46693 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
46694
46695         * benchtests/Makefile: Sort function entries.
46696
46697         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
46698         tanh, asinh, acosh, atanh.
46699         * benchtests/acos-inputs: New file.
46700         * benchtests/acosh-inputs: New file.
46701         * benchtests/asin-inputs: New file.
46702         * benchtests/asinh-inputs: New file.
46703         * benchtests/atanh-inputs: New file.
46704         * benchtests/cosh-inputs: New file.
46705         * benchtests/log-inputs: New file.
46706         * benchtests/sinh-inputs: New file.
46707         * benchtests/tanh-inputs: New file.
46708
46709 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
46710
46711         [BZ #15339]
46712         * posix/tst-getaddrinfo4.c: New test.
46713         * posix/Makefile (tests): Add it.
46714
46715 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
46716
46717         [BZ #15339]
46718         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
46719         when no services were used.
46720         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
46721         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
46722
46723 2013-05-21  Andreas Schwab  <schwab@suse.de>
46724
46725         [BZ #15014]
46726         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
46727         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
46728         successful.
46729         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
46730         redundant variable declarations and reallocation of buffer when
46731         parsing as IPv6 address.  Always set NSS status when called from
46732         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
46733         buffer too small.  Correct computation of needed size.
46734         * nss/Makefile (tests): Add test-digits-dots.
46735         * nss/test-digits-dots.c: New test.
46736
46737 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
46738
46739         * benchtests/Makefile: Remove instructions for adding
46740         benchmark tests.
46741         * benchtests/README: New file to explain how to execute and
46742         enhance the benchmark tests.
46743
46744 2013-05-21  Andreas Schwab  <schwab@suse.de>
46745
46746         [BZ #15493]
46747         * setjmp/Makefile (tests): Add tst-sigsetjmp.
46748         * setjmp/tst-sigsetjmp.c: New test.
46749
46750 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
46751
46752         * sysdeps/x86_64/memset.S (memset): New implementation.
46753         (__bzero): Likewise.
46754         (__memset_tail): New function.
46755
46756 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
46757
46758         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
46759         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
46760         __memcpy_sse2_unaligned ifunc selection.
46761         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
46762         Add memcpy-sse2-unaligned.S.
46763         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
46764         Add: __memcpy_sse2_unaligned.
46765
46766 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
46767
46768         [BZ #15490]
46769         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
46770         math_force_eval before restoring floating-point envrionment.
46771         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
46772         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
46773         Likewise.
46774         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
46775         <math_private.h>.
46776         (__nearbyintl): Use math_force_eval before restoring
46777         floating-point environment.
46778         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
46779
46780         * math/gen-libm-test.pl (special_functions): Remove.
46781         (parse_args): Don't handle TEST_extra.  Handle functions with no
46782         return value.
46783         * math/libm-test.inc (struct test_sincos_data): Replace with
46784         struct test_fFF_11_data.
46785         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
46786         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
46787         (sincos_test_data): Change element type to struct
46788         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
46789         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
46790         RUN_TEST_LOOP_sincos.
46791         * math/README.libm-test: Don't mention special handling of
46792         individual functions.
46793         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
46794         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
46795         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
46796         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
46797         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
46798         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46799
46800         * math/gen-libm-test.pl (get_variable): Remove function.
46801         (parse_args): Don't show pointer parameters to call in test
46802         names.  Use "extra output N" in test names for extra outputs
46803         rather than naming variables.
46804
46805 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
46806
46807         [BZ #15488]
46808         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
46809         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
46810         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
46811         double tests.
46812         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
46813         disable.
46814         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
46815         check_long_double.
46816
46817         * math/gen-libm-test.pl (@tests): Remove variable.
46818         ($count): Likewise.
46819         (new_test): Remove function.
46820         (show_exceptions): New function.
46821         (special_functions): Use show_exceptions instead of new_test.
46822         (parse_args): Likewise.
46823         (generate_testfile): Pass only function name in generated call to
46824         print_max_error or print_complex_max_error.
46825         (get_ulps): Do not handle complex tests specially.
46826         (output_test): Rename to ...
46827         (get_all_ulps_for_test): ... this.  Return a string rather than
46828         printing to a file.  Require ulps to be present.
46829         (output_ulps): Generate arrays rather than #defines.
46830         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
46831         (struct ulp_data): New type.
46832         (BUILD_COMPLEX_ULP): Remove macro.
46833         (compare_ulp_data): New function.
46834         (find_ulps): Likewise.
46835         (find_test_ulps): Likewise.
46836         (find_function_ulps): Likewise.
46837         (find_complex_function_ulps): Likewise.
46838         (print_max_error): Determine allowed ulps using
46839         find_function_ulps.
46840         (print_complex_max_error): Determine allowed ulps using
46841         find_complex_function_ulps.
46842         (check_float_internal): Determine max ulps using find_test_ulps.
46843         (check_float): Do not take max_ulp parameter.  Update call to
46844         check_float_internal.
46845         (check_complex): Likewise.
46846         (check_int): Do not take max_ulp parameter.
46847         (check_long): Likewise.
46848         (check_bool): Likewise.
46849         (check_longlong): Likewise.
46850         (struct test_f_f_data): Remove max_ulp field.
46851         (struct test_ff_f_data): Likewise.
46852         (struct test_ff_f_data_nexttoward): Likewise.
46853         (struct test_fi_f_data): Likewise.
46854         (struct test_fl_f_data): Likewise.
46855         (struct test_if_f_data): Likewise.
46856         (struct test_fff_f_data): Likewise.
46857         (struct test_c_f_data): Likewise.
46858         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
46859         (struct test_fF_f1_data): Likewise.
46860         (struct test_ffI_f1_data): Likewise.
46861         (struct test_c_c_data): Remove max_ulp field.
46862         (struct test_cc_c_data): Likewise.
46863         (struct test_f_i_data): Likewise.
46864         (struct test_ff_i_data): Likewise.
46865         (struct test_f_l_data): Likewise.
46866         (struct test_f_L_data): Likewise.
46867         (struct test_sincos_data): Likewise.
46868         (RUN_TEST_f_f): Do not handle ulps.
46869         (RUN_TEST_LOOP_f_f): Likewise.
46870         (RUN_TEST_2_f): Likewise.
46871         (RUN_TEST_LOOP_2_f): Likewise.
46872         (RUN_TEST_fff_f): Likewise.
46873         (RUN_TEST_LOOP_fff_f): Likewise.
46874         (RUN_TEST_c_f): Likewise.
46875         (RUN_TEST_LOOP_c_f): Likewise.
46876         (RUN_TEST_f_f1): Likewise.
46877         (RUN_TEST_LOOP_f_f1): Likewise.
46878         (RUN_TEST_fF_f1): Likewise.
46879         (RUN_TEST_LOOP_fF_f1): Likewise.
46880         (RUN_TEST_fI_f1): Likewise.
46881         (RUN_TEST_LOOP_fI_f1): Likewise.
46882         (RUN_TEST_ffI_f1): Likewise.
46883         (RUN_TEST_LOOP_ffI_f1): Likewise.
46884         (RUN_TEST_c_c): Likewise.
46885         (RUN_TEST_LOOP_c_c): Likewise.
46886         (RUN_TEST_cc_c): Likewise.
46887         (RUN_TEST_LOOP_cc_c): Likewise.
46888         (RUN_TEST_f_i): Likewise.
46889         (RUN_TEST_LOOP_f_i): Likewise.
46890         (RUN_TEST_f_i_tg): Likewise.
46891         (RUN_TEST_LOOP_f_i_tg): Likewise.
46892         (RUN_TEST_ff_i_tg): Likewise.
46893         (RUN_TEST_LOOP_ff_i_tg): Likewise.
46894         (RUN_TEST_f_b): Likewise.
46895         (RUN_TEST_LOOP_f_b): Likewise.
46896         (RUN_TEST_f_b_tg): Likewise.
46897         (RUN_TEST_LOOP_f_b_tg): Likewise.
46898         (RUN_TEST_f_l): Likewise.
46899         (RUN_TEST_LOOP_f_l): Likewise.
46900         (RUN_TEST_f_L): Likewise.
46901         (RUN_TEST_LOOP_f_L): Likewise.
46902         (RUN_TEST_sincos): Likewise.
46903         (RUN_TEST_LOOP_sincos): Likewise.
46904
46905 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
46906
46907         [BZ #15480]
46908         [BZ #15485]
46909         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
46910         main case of finite arguments, set rounding mode to FE_TONEAREST
46911         and discard exceptions.
46912         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
46913         exceptions.
46914         (remainder_tonearest_test_data): New variable.
46915         (remainder_test_tonearest): New function.
46916         (remainder_towardzero_test_data): New variable.
46917         (remainder_test_towardzero): New function.
46918         (remainder_downward_test_data): New variable.
46919         (remainder_test_downward): New function.
46920         (remainder_upward_test_data): New variable.
46921         (remainder_test_upward): New function.
46922         (main): Call the new test functions.
46923
46924         * math/libm-test.inc (struct test_f_f1_data): Remove field
46925         extra_init.
46926         (struct test_fF_f1_data): Likewise.
46927         (struct test_ffI_f1_data): Likewise.
46928         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
46929         based on value of EXTRA_EXPECTED.
46930         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
46931         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
46932         EXTRA_VAR based on value of EXTRA_EXPECTED.
46933         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
46934         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
46935         EXTRA_VAR based on value of EXTRA_EXPECTED.
46936         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
46937         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
46938         EXTRA_VAR based on value of EXTRA_EXPECTED.
46939         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
46940         * math/gen-libm-test.pl (parse_args): Don't output initializers
46941         for extra output values.
46942
46943         * math/libm-test.inc (check_int): Expect result to be exactly
46944         equal to expected value and do not handle ulps.
46945         (check_long): Likewise.
46946         (check_longlong): Likewise.
46947
46948         * math/libm-test.inc (ceil_test_data): Test for "inexact"
46949         exceptions.
46950         (cimag_test_data): Likewise.
46951         (conj_test_data): Likewise.
46952         (copysign_test_data): Likewise.
46953         (cproj_test_data): Likewise.
46954         (creal_test_data): Likewise.
46955         (fabs_test_data): Likewise.
46956         (fdim_test_data): Likewise.
46957         (finite_test_data): Likewise.
46958         (floor_test_data): Likewise.
46959         (fmax_test_data): Likewise.
46960         (fmin_test_data): Likewise.
46961         (fmod_test_data): Likewise.
46962         (fpclassify_test_data): Likewise.
46963         (frexp_test_data): Likewise.
46964         (ilogb_test_data): Likewise.
46965         (isfinite_test_data): Likewise.
46966         (isgreater_test_data): Likewise.
46967         (isgreaterequal_test_data): Likewise.
46968         (isinf_test_data): Likewise.
46969         (isless_test_data): Likewise.
46970         (islessequal_test_data): Likewise.
46971         (islessgreater_test_data): Likewise.
46972         (isnan_test_data): Likewise.
46973         (isnormal_test_data): Likewise.
46974         (issignaling_test_data): Likewise.
46975         (isunordered_test_data): Likewise.
46976         (ldexp_test_data): Likewise.
46977         (lrint_test_data): Likewise.
46978         (lrint_test_data) [TEST_FLOAT]: Disable one test.
46979         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
46980         (lrint_tonearest_test_data): Test for "inexact" exceptions.
46981         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
46982         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
46983         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
46984         test input.
46985         (lrint_towardzero_test_data): Test for "inexact" exceptions.
46986         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
46987         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
46988         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
46989         that test input.
46990         (lrint_downward_test_data): Test for "inexact" exceptions.
46991         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
46992         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
46993         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
46994         test input.
46995         (lrint_upward_test_data): Test for "inexact" exceptions.
46996         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
46997         test input.
46998         (llrint_test_data): Test for "inexact" exceptions.
46999         (llrint_test_data) [TEST_FLOAT]: Disable one test.
47000         (llrint_tonearest_test_data): Test for "inexact" exceptions.
47001         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47002         (llrint_towardzero_test_data): Test for "inexact" exceptions.
47003         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47004         (llrint_downward_test_data): Test for "inexact" exceptions.
47005         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47006         (llrint_upward_test_data): Test for "inexact" exceptions.
47007         (logb_test_data): Likewise.
47008         (logb_downward_test_data): Likewise.
47009         (nextafter_test_data): Likewise.
47010         (nexttoward_test_data): Likewise.
47011         (remainder_test_data): Likewise.
47012         (remquo_test_data): Likewise.
47013         (scalbn_test_data): Likewise.
47014         (scalbln_test_data): Likewise.
47015         (signbit_test_data): Likewise.
47016         (sqrt_test_data): Likewise.
47017         (significand_test_data): Likewise.
47018
47019 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
47020
47021         [BZ #15424]
47022         * benchtests/bench-modf.c (struct args): Mark arg0 as
47023         volatile.
47024         * scripts/bench.pl: Mark members of struct args as volatile.
47025
47026 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47027
47028         [BZ # 15497]
47029         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
47030         negative infinity on POWER6 or lower.
47031         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
47032
47033 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
47034
47035         [BZ #15442]
47036         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
47037         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
47038         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
47039         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
47040         (_FP_SETQNAN): New macro.
47041         (_FP_SETQNAN_SEMIRAW): Likewise.
47042         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
47043         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
47044         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
47045         (FP_EXTEND): Use _FP_FRAC_SNANP.
47046         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
47047         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
47048         into account.
47049         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47050         New macro.
47051         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47052         Likewise.
47053
47054 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47055
47056         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
47057         with DIVIDE_BY_ZERO_EXCEPTION.
47058         (gamma_test_data): Likewise.
47059         (lgamma_test_data): Likewise.
47060         (log_test_data): Likewise.
47061         (log10_test_data): Likewise.
47062         (log2_test_data): Likewise.
47063         (tgamma_test_data): Likewise.
47064
47065         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
47066         (acos_test_tonearest): Likewise.
47067         (acos_test_towardzero): Likewise.
47068         (acos_test_downward): Likewise.
47069         (acos_test_upward): Likewise.
47070         (acosh_test): Likewise.
47071         (asin_test): Likewise.
47072         (asin_test_tonearest): Likewise.
47073         (asin_test_towardzero): Likewise.
47074         (asin_test_downward): Likewise.
47075         (asin_test_upward): Likewise.
47076         (asinh_test): Likewise.
47077         (atan_test): Likewise.
47078         (atanh_test): Likewise.
47079         (atan2_test): Likewise.
47080         (cabs_test): Likewise.
47081         (cacos_test): Likewise.
47082         (cacosh_test): Likewise.
47083         (casin_test): Likewise.
47084         (casinh_test): Likewise.
47085         (catan_test): Likewise.
47086         (catanh_test): Likewise.
47087         (cbrt_test): Likewise.
47088         (ccos_test): Likewise.
47089         (ccosh_test): Likewise.
47090         (cexp_test): Likewise.
47091         (clog_test): Likewise.
47092         (clog10_test): Likewise.
47093         (cos_test): Likewise.
47094         (cos_test_tonearest): Likewise.
47095         (cos_test_towardzero): Likewise.
47096         (cos_test_downward): Likewise.
47097         (cos_test_upward): Likewise.
47098         (cosh_test): Likewise.
47099         (cosh_test_tonearest): Likewise.
47100         (cosh_test_towardzero): Likewise.
47101         (cosh_test_downward): Likewise.
47102         (cosh_test_upward): Likewise.
47103         (cpow_test): Likewise.
47104         (csin_test): Likewise.
47105         (csinh_test): Likewise.
47106         (csqrt_test): Likewise.
47107         (ctan_test): Likewise.
47108         (ctan_test_tonearest): Likewise.
47109         (ctan_test_towardzero): Likewise.
47110         (ctan_test_downward): Likewise.
47111         (ctan_test_upward): Likewise.
47112         (ctanh_test): Likewise.
47113         (ctanh_test_tonearest): Likewise.
47114         (ctanh_test_towardzero): Likewise.
47115         (ctanh_test_downward): Likewise.
47116         (ctanh_test_upward): Likewise.
47117         (erf_test): Likewise.
47118         (erfc_test): Likewise.
47119         (exp_test): Likewise.
47120         (exp_test_tonearest): Likewise.
47121         (exp_test_towardzero): Likewise.
47122         (exp_test_downward): Likewise.
47123         (exp_test_upward): Likewise.
47124         (exp10_test): Likewise.
47125         (exp2_test): Likewise.
47126         (expm1_test): Likewise.
47127         (fmod_test): Likewise.
47128         (gamma_test): Likewise.
47129         (hypot_test): Likewise.
47130         (j0_test): Likewise.
47131         (j1_test): Likewise.
47132         (jn_test): Likewise.
47133         (lgamma_test): Likewise.
47134         (log_test): Likewise.
47135         (log10_test): Likewise.
47136         (log1p_test): Likewise.
47137         (log2_test): Likewise.
47138         (logb_test_downward): Likewise.
47139         (pow_test): Likewise.
47140         (pow_test_tonearest): Likewise.
47141         (pow_test_towardzero): Likewise.
47142         (pow_test_downward): Likewise.
47143         (pow_test_upward): Likewise.
47144         (remainder_test): Likewise.
47145         (remquo_test): Likewise.
47146         (sin_test): Likewise.
47147         (sin_test_tonearest): Likewise.
47148         (sin_test_towardzero): Likewise.
47149         (sin_test_downward): Likewise.
47150         (sin_test_upward): Likewise.
47151         (sincos_test): Likewise.
47152         (sinh_test): Likewise.
47153         (sinh_test_tonearest): Likewise.
47154         (sinh_test_towardzero): Likewise.
47155         (sinh_test_downward): Likewise.
47156         (sinh_test_upward): Likewise.
47157         (sqrt_test): Likewise.
47158         (tan_test): Likewise.
47159         (tan_test_tonearest): Likewise.
47160         (tan_test_towardzero): Likewise.
47161         (tan_test_downward): Likewise.
47162         (tan_test_upward): Likewise.
47163         (tanh_test): Likewise.
47164         (tgamma_test): Likewise.
47165         (y0_test): Likewise.
47166         (y1_test): Likewise.
47167         (yn_test): Likewise.
47168
47169         * math/gen-libm-test.pl (adjust_arg): Remove function.
47170         (special_function): Remove argument $in_func.  Only handle
47171         generating output for tables of tests, not inside functions.
47172         (parse_args): Likewise.
47173         (generate_testfile): Remove variable $in_func.  Update call to
47174         parse_args.
47175         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
47176         (MINUS_ZERO_INIT): Rename macro to minus_zero.
47177         (PLUS_INFTY_INIT): Rename macro to plus_infty.
47178         (MINUS_INFTY_INIT): Rename macro to minus_infty.
47179         (QNAN_VALUE_INIT): Rename macro to qnan_value.
47180         (MAX_VALUE_INIT): Rename macro to max_value.
47181         (MIN_VALUE_INIT): Rename macro to min_value.
47182         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
47183         (plus_zero): Remove variable.
47184         (minus_zero): Likewise.
47185         (plus_infty): Likewise.
47186         (minus_infty): Likewise.
47187         (qnan_value): Likewise.
47188         (max_value): Likewise.
47189         (min_value): Likewise.
47190         (min_subnorm_value): Likewise.
47191
47192 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
47193
47194         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
47195         uint64_t or uint32_t usage.
47196         * crypt/sha256-block.c: Likewise.
47197         * crypt/sha256-crypt.c: Likewise.
47198         * crypt/sha256.c: Likewise.
47199         * crypt/sha512-block.c: Likewise.
47200         * crypt/sha512-crypt.c: Likewise.
47201         * crypt/sha512.c: Likewise.
47202         * debug/backtrace-tst.c: Likewise.
47203         * debug/pcprofiledump.c: Likewise.
47204         * elf/cache.c: Likewise.
47205         * elf/dl-cache.c: Likewise.
47206         * elf/dl-misc.c: Likewise.
47207         * elf/dl-profile.c: Likewise.
47208         * elf/dl-support.c: Likewise.
47209         * elf/ldconfig.c: Likewise.
47210         * elf/sprof.c: Likewise.
47211         * iconv/dummy-repertoire.c: Likewise.
47212         * iconv/iconv_charmap.c: Likewise.
47213         * iconv/skeleton.c: Likewise.
47214         * iconvdata/8bit-generic.c: Likewise.
47215         * iconvdata/cp737.h: Likewise.
47216         * iconvdata/cp775.h: Likewise.
47217         * iconvdata/ibm1008.h: Likewise.
47218         * iconvdata/ibm1025.h: Likewise.
47219         * iconvdata/ibm1046.h: Likewise.
47220         * iconvdata/ibm1097.h: Likewise.
47221         * iconvdata/ibm1112.h: Likewise.
47222         * iconvdata/ibm1122.h: Likewise.
47223         * iconvdata/ibm1123.h: Likewise.
47224         * iconvdata/ibm1124.h: Likewise.
47225         * iconvdata/ibm1129.h: Likewise.
47226         * iconvdata/ibm1130.h: Likewise.
47227         * iconvdata/ibm1132.h: Likewise.
47228         * iconvdata/ibm1133.h: Likewise.
47229         * iconvdata/ibm1137.h: Likewise.
47230         * iconvdata/ibm1140.h: Likewise.
47231         * iconvdata/ibm1141.h: Likewise.
47232         * iconvdata/ibm1142.h: Likewise.
47233         * iconvdata/ibm1143.h: Likewise.
47234         * iconvdata/ibm1144.h: Likewise.
47235         * iconvdata/ibm1145.h: Likewise.
47236         * iconvdata/ibm1146.h: Likewise.
47237         * iconvdata/ibm1147.h: Likewise.
47238         * iconvdata/ibm1148.h: Likewise.
47239         * iconvdata/ibm1149.h: Likewise.
47240         * iconvdata/ibm1153.h: Likewise.
47241         * iconvdata/ibm1154.h: Likewise.
47242         * iconvdata/ibm1155.h: Likewise.
47243         * iconvdata/ibm1156.h: Likewise.
47244         * iconvdata/ibm1157.h: Likewise.
47245         * iconvdata/ibm1158.h: Likewise.
47246         * iconvdata/ibm1160.h: Likewise.
47247         * iconvdata/ibm1161.h: Likewise.
47248         * iconvdata/ibm1162.h: Likewise.
47249         * iconvdata/ibm1163.h: Likewise.
47250         * iconvdata/ibm1164.h: Likewise.
47251         * iconvdata/ibm1166.h: Likewise.
47252         * iconvdata/ibm1167.h: Likewise.
47253         * iconvdata/ibm12712.h: Likewise.
47254         * iconvdata/ibm1390.h: Likewise.
47255         * iconvdata/ibm1399.h: Likewise.
47256         * iconvdata/ibm16804.h: Likewise.
47257         * iconvdata/ibm4517.h: Likewise.
47258         * iconvdata/ibm4899.h: Likewise.
47259         * iconvdata/ibm4909.h: Likewise.
47260         * iconvdata/ibm4971.h: Likewise.
47261         * iconvdata/ibm5347.h: Likewise.
47262         * iconvdata/ibm803.h: Likewise.
47263         * iconvdata/ibm856.h: Likewise.
47264         * iconvdata/ibm901.h: Likewise.
47265         * iconvdata/ibm902.h: Likewise.
47266         * iconvdata/ibm9030.h: Likewise.
47267         * iconvdata/ibm9066.h: Likewise.
47268         * iconvdata/ibm921.h: Likewise.
47269         * iconvdata/ibm922.h: Likewise.
47270         * iconvdata/ibm9448.h: Likewise.
47271         * iconvdata/isiri-3342.h: Likewise.
47272         * iconvdata/jis0201.h: Likewise.
47273         * include/link.h: Likewise.
47274         * include/netdb.h: Likewise.
47275         * inet/check_native.c: Likewise.
47276         * inet/check_pf.c: Likewise.
47277         * inet/getipv4sourcefilter.c: Likewise.
47278         * inet/getnameinfo.c: Likewise.
47279         * inet/getsourcefilter.c: Likewise.
47280         * inet/htonl.c: Likewise.
47281         * inet/setipv4sourcefilter.c: Likewise.
47282         * inet/setsourcefilter.c: Likewise.
47283         * inet/test-inet6_opt.c: Likewise.
47284         * inet/tst-network.c: Likewise.
47285         * locale/C-collate.c: Likewise.
47286         * locale/C-ctype.c: Likewise.
47287         * locale/C-time.c: Likewise.
47288         * locale/C-translit.h: Likewise.
47289         * locale/loadarchive.c: Likewise.
47290         * locale/programs/3level.h: Likewise.
47291         * locale/programs/charmap.c: Likewise.
47292         * locale/programs/charmap.h: Likewise.
47293         * locale/programs/ld-address.c: Likewise.
47294         * locale/programs/ld-collate.c: Likewise.
47295         * locale/programs/ld-ctype.c: Likewise.
47296         * locale/programs/ld-identification.c: Likewise.
47297         * locale/programs/ld-measurement.c: Likewise.
47298         * locale/programs/ld-messages.c: Likewise.
47299         * locale/programs/ld-monetary.c: Likewise.
47300         * locale/programs/ld-name.c: Likewise.
47301         * locale/programs/ld-numeric.c: Likewise.
47302         * locale/programs/ld-paper.c: Likewise.
47303         * locale/programs/ld-telephone.c: Likewise.
47304         * locale/programs/ld-time.c: Likewise.
47305         * locale/programs/linereader.c: Likewise.
47306         * locale/programs/locale.c: Likewise.
47307         * locale/programs/locarchive.c: Likewise.
47308         * locale/programs/locfile.h: Likewise.
47309         * locale/programs/repertoire.c: Likewise.
47310         * locale/programs/simple-hash.c: Likewise.
47311         * locale/programs/simple-hash.h: Likewise.
47312         * malloc/memusage.c: Likewise.
47313         * malloc/memusagestat.c: Likewise.
47314         * nis/nis_defaults.c: Likewise.
47315         * nis/nis_hash.c: Likewise.
47316         * nis/nis_print.c: Likewise.
47317         * nis/nis_xdr.c: Likewise.
47318         * nscd/connections.c: Likewise.
47319         * nscd/hstcache.c: Likewise.
47320         * nscd/nscd_gethst_r.c: Likewise.
47321         * nscd/nscd_getserv_r.c: Likewise.
47322         * nscd/nscd_helper.c: Likewise.
47323         * nscd/servicescache.c: Likewise.
47324         * nss/makedb.c: Likewise.
47325         * nss/nss_db/db-XXX.c: Likewise.
47326         * nss/nss_db/db-initgroups.c: Likewise.
47327         * nss/nss_db/db-netgrp.c: Likewise.
47328         * nss/nss_files/files-network.c: Likewise.
47329         * nss/nss_files/files-parse.c: Likewise.
47330         * posix/bug-regex5.c: Likewise.
47331         * posix/fnmatch_loop.c: Likewise.
47332         * posix/regcomp.c: Likewise.
47333         * posix/regexec.c: Likewise.
47334         * posix/tst-rfc3484-2.c: Likewise.
47335         * posix/tst-rfc3484-3.c: Likewise.
47336         * posix/tst-rfc3484.c: Likewise.
47337         * resolv/nss_dns/dns-canon.c: Likewise.
47338         * resolv/nss_dns/dns-network.c: Likewise.
47339         * resolv/res_init.c: Likewise.
47340         * resolv/res_mkquery.c: Likewise.
47341         * resolv/tst-aton.c: Likewise.
47342         * stdlib/cxa_atexit.c: Likewise.
47343         * stdlib/cxa_finalize.c: Likewise.
47344         * stdlib/gen-fpioconst.c: Likewise.
47345         * stdlib/strtol_l.c: Likewise.
47346         * string/tst-endian.c: Likewise.
47347         * sunrpc/auth_des.c: Likewise.
47348         * sunrpc/clnt_udp.c: Likewise.
47349         * sunrpc/rtime.c: Likewise.
47350         * sunrpc/svcauth_des.c: Likewise.
47351         * sunrpc/xdr.c: Likewise.
47352         * sunrpc/xdr_intXX_t.c: Likewise.
47353         * sunrpc/xdr_rec.c: Likewise.
47354         * sysdeps/generic/ldconfig.h: Likewise.
47355         * sysdeps/generic/ldsodefs.h: Likewise.
47356         * sysdeps/generic/memusage.h: Likewise.
47357         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
47358         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
47359         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
47360         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
47361         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
47362         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
47363         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
47364         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
47365         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
47366         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
47367         * sysdeps/posix/getaddrinfo.c: Likewise.
47368         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
47369         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
47370         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
47371         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
47372         * sysdeps/powerpc/test-gettimebase.c: Likewise.
47373         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
47374         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
47375         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
47376         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
47377         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
47378         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
47379         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
47380         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
47381         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
47382         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
47383         * sysdeps/x86_64/dl-tls.h: Likewise.
47384         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
47385         * time/alt_digit.c: Likewise.
47386         * time/era.c: Likewise.
47387         * wcsmbs/tst-c16c32-1.c: Likewise.
47388
47389 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47390
47391         * math/libm-test.inc (struct test_sincos_data): New type.
47392         (RUN_TEST_LOOP_sincos): New macro.
47393         (sincos_test_data): New variable.
47394         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
47395
47396 2013-05-16  Richard Henderson  <rth@redhat.com>
47397
47398         * math/atest-exp2.c (LIMB64): New macro.
47399         (CONSTSZ): New macro.
47400         (mp_exp1, mp_exp_m1, mp_log2): New variables.
47401         (hexdig): Move ...
47402         (print_mpn_fp): ... to function scope.
47403         (read_mpn_hex): Remove.
47404         (get_log2): Remove.
47405         (exp2_mpn): Use mp_log2.
47406         (main): Use mp_exp1.
47407
47408 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47409
47410         * math/libm-test.inc: Remove comment about not testing "inexact"
47411         exceptions.
47412         (INEXACT_EXCEPTION): New macro.
47413         (NO_INEXACT_EXCEPTION): Likewise.
47414         (INVALID_EXCEPTION_OK): Update value.
47415         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
47416         (OVERFLOW_EXCEPTION_OK): Likewise.
47417         (UNDERFLOW_EXCEPTION_OK): Likewise.
47418         (IGNORE_ZERO_INF_SIGN): Likewise.
47419         (ERRNO_UNCHANGED): Likewise.
47420         (ERRNO_EDOM): Likewise.
47421         (ERRNO_ERANGE): Likewise.
47422         (test_exceptions): Handle testing "inexact" exceptions.
47423         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
47424         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
47425         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
47426         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
47427         INEXACT_EXCEPTION.
47428         (rint_towardzero_test_data): Likewise.
47429         (rint_downward_test_data): Likewise.
47430         (rint_upward_test_data): Likewise.
47431
47432         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
47433         with OVERFLOW_EXCEPTION.
47434         (exp10_test_data): Likewise.
47435         (exp2_test_data): Likewise.
47436         (expm1_test_data): Likewise.
47437         (lgamma_test_data): Likewise.
47438         (pow_test_data): Likewise.
47439         (tgamma_test_data): Likewise.
47440         (yn_test_data): Remove duplicate test of overflow.
47441
47442         * math/libm-test.inc (struct test_cc_c_data): New type.
47443         (RUN_TEST_LOOP_cc_c): New macro.
47444         (cpow_test_data): New variable.
47445         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
47446
47447         * math/libm-test.inc (struct test_f_L_data): New type.
47448         (RUN_TEST_LOOP_f_L): New macro.
47449         (llrint_test_data): New variable.
47450         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
47451         (llrint_tonearest_test_data): New variable.
47452         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
47453         (llrint_towardzero_test_data): New variable.
47454         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
47455         (llrint_downward_test_data): New variable.
47456         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
47457         (llrint_upward_test_data): New variable.
47458         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
47459         (llround_test_data): New variable.
47460         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
47461
47462 2013-05-13  Peter Collingbourne  <pcc@google.com>
47463
47464         * math/atest-exp2.c (get_log2): Remove const attribute.
47465
47466 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
47467
47468         * math/libm-test.inc (struct test_f_l_data): New type.
47469         (RUN_TEST_LOOP_f_l): New macro.
47470         (lrint_test_data): New variable.
47471         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
47472         (lrint_tonearest_test_data): New variable.
47473         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
47474         (lrint_towardzero_test_data): New variable.
47475         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
47476         (lrint_downward_test_data): New variable.
47477         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
47478         (lrint_upward_test_data): New variable.
47479         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
47480         (lround_test_data): New variable.
47481         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
47482
47483 2013-05-15  Peter Collingbourne  <pcc@google.com>
47484
47485         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
47486         (EXTRACT_WORDS64) Use where appropriate.
47487         (INSERT_WORDS64) Likewise.
47488
47489         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
47490         constraints with x constraints.
47491         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
47492
47493         * malloc/obstack.c (_obstack_compat): Add initializer.
47494
47495 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
47496
47497         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
47498         si_trapno and add si_addr_lsb to _sifields.sigfault.
47499         (si_trapno): Remove macro.
47500         (si_addr_lsb): Define new macro.
47501         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
47502
47503 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
47504
47505         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
47506         instead of TEST_f_l.
47507         (llrint_test_tonearest): Likewise.
47508         (llrint_test_towardzero): Likewise.
47509         (llrint_test_downward): Likewise.
47510         (llrint_test_upward): Likewise.
47511         (llround_test): Likewise.
47512
47513         * math/libm-test.inc (struct test_f_i_data): Add comment.
47514         (RUN_TEST_LOOP_f_b): New macro.
47515         (RUN_TEST_LOOP_f_b_tg): Likewise.
47516         (finite_test_data): New variable.
47517         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
47518         (isfinite_test_data): New variable.
47519         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47520         (isinf_test_data): New variable.
47521         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47522         (isnan_test_data): New variable.
47523         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47524         (isnormal_test_data): New variable.
47525         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47526         (issignaling_test_data): New variable.
47527         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47528         (signbit_test_data): New variable.
47529         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
47530
47531         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
47532         with INVALID_EXCEPTION.
47533         (acosh_test_data): Likewise.
47534         (asin_test_data): Likewise.
47535         (atanh_test_data): Likewise.
47536         (fmod_test_data): Likewise.
47537         (log_test_data): Likewise.
47538         (log10_test_data): Likewise.
47539         (log2_test_data): Likewise.
47540         (pow_test_data): Likewise.
47541         (sqrt_test_data): Likewise.
47542         (y0_test_data): Likewise.
47543         (y1_test_data): Likewise.
47544         (yn_test_data): Likewise.
47545
47546         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
47547         function contents.
47548
47549         * math/libm-test.inc (struct test_ff_i_data): New type.
47550         (RUN_TEST_LOOP_ff_i_tg): New macro.
47551         (isgreater_test_data): New variable.
47552         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47553         (isgreaterequal_test_data): New variable.
47554         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47555         (isless_test_data): New variable.
47556         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47557         (islessequal_test_data): New variable.
47558         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47559         (islessgreater_test_data): New variable.
47560         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47561         (isunordered_test_data): New variable.
47562         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
47563
47564 2013-05-14  David S. Miller  <davem@davemloft.net>
47565
47566         * sysdeps/sparc/fpu/libm-test-ulps: Update.
47567
47568 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
47569
47570         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
47571
47572         * math/libm-test.inc (struct test_fF_f1_data): Change type of
47573         extra_test to int.
47574         (struct test_f_i_data): Change type of max_ulp to int.
47575
47576         * math/libm-test.inc (test_ffI_f1_data): New type.
47577         (RUN_TEST_LOOP_ffI_f1): New macro.
47578         (remquo_test_data): New variable.
47579         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
47580
47581         * setjmp/tst-setjmp-fp.c: New file.
47582         * setjmp/Makefile (tests): Add tst-setjmp-fp.
47583         (link-libm): New variable.
47584         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
47585
47586         * math/libm-test.inc (struct test_f_i_data): New type.
47587         (RUN_TEST_LOOP_f_i): New macro.
47588         (RUN_TEST_LOOP_f_i_tg): Likewise.
47589         (fpclassify_test_data): New variable.
47590         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
47591         (ilogb_test_data): New variable.
47592         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
47593
47594         * math/libm-test.inc (scalbln_test): Correct function name in END
47595         call.
47596
47597         * math/libm-test.inc (struct test_f_f1_data): Add comment.
47598         (RUN_TEST_LOOP_fI_f1): New macro.
47599         (frexp_test_data): New variable.
47600         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
47601
47602         * math/libm-test.inc (struct test_fF_f1_data): New type.
47603         (RUN_TEST_LOOP_fF_f1): New macro.
47604         (modf_test_data): New variable.
47605         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
47606
47607         * math/libm-test.inc (struct test_f_f1_data): New type.
47608         (RUN_TEST_LOOP_f_f1): New macro.
47609         (gamma_test_data): New variable.
47610         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
47611         (lgamma_test_data): New variable.
47612         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
47613
47614 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
47615
47616         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
47617         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
47618         (main): Comment "tls" pseudo-hwcap.
47619
47620 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
47621
47622         * math/libm-test.inc (struct test_fl_f_data): New type.
47623         (RUN_TEST_LOOP_fl_f): New variable.
47624         (scalbln_test_data): New variable.
47625         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
47626
47627         * math/libm-test.inc (struct test_fi_f_data): New type.
47628         (RUN_TEST_LOOP_fi_f): New macro.
47629         (ldexp_test_data): New variable.
47630         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
47631         (scalbn_test_data): New variable.
47632         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
47633
47634         * math/libm-test.inc (struct test_c_f_data): New type.
47635         (RUN_TEST_LOOP_c_f): New macro.
47636         (cabs_test_data): New variable.
47637         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
47638         (carg_test_data): New variable.
47639         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
47640         (cimag_test_data): New variable.
47641         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
47642         (creal_test_data): New variable.
47643         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
47644
47645         * math/libm-test.inc (struct test_if_f_data): New type.
47646         (RUN_TEST_LOOP_if_f): New macro.
47647         (jn_test_data): New variable.
47648         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
47649         (yn_test_data): New variable.
47650         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
47651
47652         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
47653
47654 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47655
47656         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
47657         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
47658
47659 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
47660
47661         * benchtests/Makefile (CPPFLAGS-nonlib): Add
47662         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
47663         (bench-deps): Add bench-timing.h.
47664         * benchtests-bench-skeleton.c: Include bench-timing.h.
47665         (main): Use TIMING_* macros instead of clock_gettime.
47666         * benchtests/bench-timing.h: New file.
47667
47668         [BZ #14582]
47669         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
47670         Renamed from _LIB_VERSION.
47671         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
47672
47673 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
47674
47675         * math/libm-test.inc (struct test_fff_f_data): New type.
47676         (RUN_TEST_LOOP_fff_f): New macro.
47677         (fma_test_data): New variable.
47678         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
47679         (fma_towardzero_test_data): New variable.
47680         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
47681         (fma_downward_test_data): New variable.
47682         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
47683         (fma_upward_test_data): New variable.
47684         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
47685
47686         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
47687         (struct test_c_c_data): New type.
47688         (RUN_TEST_LOOP_c_c): New macro.
47689         (cacos_test_data): New variable.
47690         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
47691         (cacosh_test_data): New variable.
47692         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
47693         (casin_test_data): New variable.
47694         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
47695         (casinh_test_data): New variable.
47696         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
47697         (catan_test_data): New variable.
47698         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
47699         (catanh_test_data): New variable.
47700         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
47701         (ccos_test_data): New variable.
47702         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
47703         (ccosh_test_data): New variable.
47704         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
47705         (cexp_test_data): New variable.
47706         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
47707         (clog_test_data): New variable.
47708         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
47709         (clog10_test_data): New variable.
47710         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
47711         (conj_test_data): New variable.
47712         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
47713         (cproj_test_data): New variable.
47714         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
47715         (csin_test_data): New variable.
47716         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
47717         (csinh_test_data): New variable.
47718         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
47719         (csqrt_test_data): New variable.
47720         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
47721         (ctan_test_data): New variable.
47722         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
47723         (ctan_tonearest_test_data): New variable.
47724         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
47725         (ctan_towardzero_test_data): New variable.
47726         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
47727         (ctan_downward_test_data): New variable.
47728         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
47729         (ctan_upward_test_data): New variable.
47730         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
47731         (ctanh_test_data): New variable.
47732         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
47733         (ctanh_tonearest_test_data): New variable.
47734         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
47735         (ctanh_towardzero_test_data): New variable.
47736         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
47737         (ctanh_downward_test_data): New variable.
47738         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
47739         (ctanh_upward_test_data): New variable.
47740         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
47741         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
47742         of BUILD_COMPLEX.
47743
47744         * math/libm-test.inc (struct test_ff_f_data): New type.
47745         (struct test_ff_f_data_nexttoward): Likewise.
47746         (RUN_TEST_LOOP_2_f): New macro.
47747         (RUN_TEST_LOOP_ff_f): Likewise.
47748         (atan2_test_data): New variable.
47749         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
47750         (copysign_test_data): New variable.
47751         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
47752         (fdim_test_data): New variable.
47753         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
47754         (fmax_test_data): New variable.
47755         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
47756         (fmin_test_data): New variable.
47757         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
47758         (fmod_test_data): New variable.
47759         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
47760         (hypot_test_data): New variable.
47761         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
47762         (nextafter_test_data): New variable.
47763         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
47764         (nexttoward_test_data): New variable.
47765         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
47766         (pow_test_data): New variable.
47767         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
47768         (pow_tonearest_test_data): New variable.
47769         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
47770         (pow_towardzero_test_data): New variable.
47771         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
47772         (pow_downward_test_data): New variable.
47773         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
47774         (pow_upward_test_data): New variable.
47775         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
47776         (remainder_test_data): New variable.
47777         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
47778         (scalb_test_data): New variable.
47779         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
47780         * sysdeps/i386/fpu/libm-test-ulps: Update.
47781
47782 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
47783
47784         * math/libm-test.inc (fma_test): Use max_value instead of local
47785         variable fltmax.
47786         (nextafter_test): Likewise.
47787
47788         * math/libm-test.inc (acos_towardzero_test_data): New variable.
47789         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47790         (acos_downward_test_data): New variable.
47791         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47792         (acos_upward_test_data): New variable.
47793         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47794         (acosh_test_data): New variable.
47795         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
47796         (asin_test_data): New variable.
47797         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
47798         (asin_tonearest_test_data): New variable.
47799         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47800         (asin_towardzero_test_data): New variable.
47801         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47802         (asin_downward_test_data): New variable.
47803         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47804         (asin_upward_test_data): New variable.
47805         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47806         (asinh_test_data): New variable.
47807         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
47808         (atan_test_data): New variable.
47809         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
47810         (atanh_test_data): New variable.
47811         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
47812         (cbrt_test_data): New variable.
47813         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
47814         (ceil_test_data): New variable.
47815         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
47816         (cos_test_data): New variable.
47817         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
47818         (cos_tonearest_test_data): New variable.
47819         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47820         (cos_towardzero_test_data): New variable.
47821         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47822         (cos_downward_test_data): New variable.
47823         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47824         (cos_upward_test_data): New variable.
47825         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47826         (cosh_test_data): New variable.
47827         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
47828         (cosh_tonearest_test_data): New variable.
47829         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47830         (cosh_towardzero_test_data): New variable.
47831         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47832         (cosh_downward_test_data): New variable.
47833         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47834         (cosh_upward_test_data): New variable.
47835         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47836         (erf_test_data): New variable.
47837         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
47838         (erfc_test_data): New variable.
47839         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
47840         (exp_test_data): New variable.
47841         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
47842         (exp_tonearest_test_data): New variable.
47843         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47844         (exp_towardzero_test_data): New variable.
47845         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47846         (exp_downward_test_data): New variable.
47847         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47848         (exp_upward_test_data): New variable.
47849         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47850         (exp10_test_data): New variable.
47851         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
47852         (exp2_test_data): New variable.
47853         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
47854         (expm1_test_data): New variable.
47855         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
47856         (fabs_test_data): New variable.
47857         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
47858         (floor_test_data): New variable.
47859         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
47860         (j0_test_data): New variable.
47861         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
47862         (j1_test_data): New variable.
47863         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
47864         (log_test_data): New variable.
47865         (log_test): Run tests with RUN_TEST_LOOP_f_f.
47866         (log10_test_data): New variable.
47867         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
47868         (log1p_test_data): New variable.
47869         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
47870         (log2_test_data): New variable.
47871         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
47872         (logb_test_data): New variable.
47873         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
47874         (logb_downward_test_data): New variable.
47875         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47876         (nearbyint_test_data): New variable.
47877         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
47878         (rint_test_data): New variable.
47879         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
47880         (rint_tonearest_test_data): New variable.
47881         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47882         (rint_towardzero_test_data): New variable.
47883         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47884         (rint_downward_test_data): New variable.
47885         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47886         (rint_upward_test_data): New variable.
47887         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47888         (round_test_data): New variable.
47889         (round_test): Run tests with RUN_TEST_LOOP_f_f.
47890         (sin_test_data): New variable.
47891         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
47892         (sin_tonearest_test_data): New variable.
47893         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47894         (sin_towardzero_test_data): New variable.
47895         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47896         (sin_downward_test_data): New variable.
47897         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47898         (sin_upward_test_data): New variable.
47899         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47900         (sinh_test_data): New variable.
47901         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
47902         (sinh_tonearest_test_data): New variable.
47903         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47904         (sinh_towardzero_test_data): New variable.
47905         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47906         (sinh_downward_test_data): New variable.
47907         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47908         (sinh_upward_test_data): New variable.
47909         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47910         (sqrt_test_data): New variable.
47911         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
47912         (tan_test_data): New variable.
47913         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
47914         (tan_tonearest_test_data): New variable.
47915         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47916         (tan_towardzero_test_data): New variable.
47917         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
47918         (tan_downward_test_data): New variable.
47919         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
47920         (tan_upward_test_data): New variable.
47921         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
47922         (tanh_test_data): New variable.
47923         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
47924         (tgamma_test_data): New variable.
47925         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
47926         (trunc_test_data): New variable.
47927         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
47928         (y0_test_data): New variable.
47929         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
47930         (y1_test_data): New variable.
47931         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
47932         (significand_test_data): New variable.
47933         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
47934
47935 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
47936
47937         [BZ #12387]
47938         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
47939
47940 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
47941
47942         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
47943
47944 2013-05-10  Andreas Jaeger  <aj@suse.de>
47945
47946         [BZ #15448]
47947         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
47948         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
47949
47950 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
47951
47952         * math/gen-libm-test.pl (adjust_arg): New function.
47953         (special_functions): Handle generating output in both functions
47954         and arrays.
47955         (parse_args): Likewise.
47956         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
47957         $in_func argument to parse_args.
47958         * math/libm-test.inc (struct test_f_f_data): New type.
47959         (IF_ROUND_INIT_): New macro.
47960         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
47961         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
47962         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
47963         (IF_ROUND_INIT_FE_UPWARD): Likewise.
47964         (ROUND_RESTORE_): Likewise.
47965         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
47966         (ROUND_RESTORE_FE_TONEAREST): Likewise.
47967         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
47968         (ROUND_RESTORE_FE_UPWARD): Likewise.
47969         (RUN_TEST_LOOP_f_f): New macro.
47970         (acos_test_data): New variable.
47971         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
47972         (acos_tonearest_test_data): New variable.
47973         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
47974
47975 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
47976
47977         * benchtests/bench-skeleton.c (startup): Fix coding style.
47978
47979 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
47980
47981         [BZ #6809]
47982         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
47983         negative infinity argument.
47984         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
47985         negative infinity argument.
47986         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
47987         negative infinity argument.
47988         * math/libm-test.inc (tgamma_test): Expect errno to be set for
47989         domain errors.
47990
47991 2013-05-10  Florian Weimer  <fweimer@redhat.com>
47992
47993         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
47994         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
47995         * iconv/iconv_prog.c (main): Likewise.
47996         * locale/programs/charmap-dir.c (charmap_readdir)
47997         (fopen_uncompressed): Likewise.
47998         * locale/programs/locfile.c (siblings_uncached)
47999         (write_locale_data): Use lstat64 instead of lstat.
48000         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
48001         stat.
48002
48003 2013-05-10  Andreas Jaeger  <aj@suse.de>
48004
48005         [BZ #15395]
48006         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
48007         localization.
48008         Include <locale.h>.
48009
48010 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
48011
48012         * elf/dl-close.c (_dl_close_worker): Add comments.
48013
48014 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
48015
48016         [BZ #15359]
48017         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
48018         high part of pi/2.
48019         (__ieee754_rem_pio2l): Update comments.
48020
48021         [BZ #15429]
48022         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
48023         high part of pi/2.
48024         (__ieee754_rem_pio2l): Update comments.
48025
48026         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
48027         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
48028
48029         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
48030         M_PI_4l.
48031
48032         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
48033         (M_PI_34_LOG10El): Likewise.
48034         (M_PI2_LOG10El): Likewise.
48035         (M_PI4_LOG10El): Likewise.
48036         (M_PI_LOG10El): Likewise.
48037
48038 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48039
48040         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48041
48042 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
48043
48044         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
48045         (MINUS_ZERO_INIT): Likewise.
48046         (PLUS_INFTY_INIT): Likewise.
48047         (MINUS_INFTY_INIT): Likewise.
48048         (QNAN_VALUE_INIT): Likewise.
48049         (MAX_VALUE_INIT): Likewise.
48050         (MIN_VALUE_INIT): Likewise.
48051         (MIN_SUBNORM_VALUE_INIT): Likewise.
48052         (plus_zero): Initialize with PLUS_ZERO_INIT.
48053         (minus_zero): Initialize with MINUS_ZERO_INIT.
48054         (plus_infty): Initialize with PLUS_INFTY_INIT.
48055         (minus_infty): Initialize with MINUS_INFTY_INIT.
48056         (qnan_value): Initialize with QNAN_VALUE_INIT.
48057         (max_value): Initialize with MAX_VALUE_INIT.
48058         (min_value): Initialize with MIN_VALUE_INIT.
48059         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
48060
48061         * math/libm-test.inc (RUN_TEST_if_f): New macro.
48062         (jn_test): Use TEST_if_f instead of TEST_ff_f.
48063         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
48064         (yn_test): Use TEST_if_f instead of TEST_ff_f.
48065
48066         * math/libm-test.inc (RUN_TEST_f_f): New macro.
48067         (RUN_TEST_2_f): Likewise.
48068         (RUN_TEST_ff_f): Likewise.
48069         (RUN_TEST_fi_f): Likewise.
48070         (RUN_TEST_fl_f): Likewise.
48071         (RUN_TEST_fff_f): Likewise.
48072         (RUN_TEST_c_f): Likewise.
48073         (RUN_TEST_f_f1): Likewise.
48074         (RUN_TEST_fF_f1): Likewise.
48075         (RUN_TEST_fI_f1): Likewise.
48076         (RUN_TEST_ffI_f1): Likewise.
48077         (RUN_TEST_c_c): Likewise.
48078         (RUN_TEST_cc_c): Likewise.
48079         (RUN_TEST_f_i): Likewise.
48080         (RUN_TEST_f_i_tg): Likewise.
48081         (RUN_TEST_ff_i_tg): Likewise.
48082         (RUN_TEST_f_b): Likewise.
48083         (RUN_TEST_f_b_tg): Likewise.
48084         (RUN_TEST_f_l): Likewise.
48085         (RUN_TEST_f_L): Likewise.
48086         (RUN_TEST_sincos): Likewise.
48087         * math/gen-libm-test.pl (new_test): Take new argument to indicate
48088         whether to show exceptions.  Do not include ");\n" in return
48089         value.
48090         (special_functions): Output call to RUN_TEST_sincos instead of
48091         check_float calls.  Update calls to new_test.
48092         (parse_args): Output call to single RUN_TEST_* macro instead of
48093         check_* calls and other assignments.  Update calls to new_test.
48094
48095         [BZ #2546]
48096         [BZ #2560]
48097         [BZ #5159]
48098         [BZ #15426]
48099         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
48100         input to result for tgamma overflow.
48101         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
48102         (gamma_coeff): New variable.
48103         (NCOEFF): New macro.
48104         (gamma_positive): New function.
48105         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
48106         underflow here.  Use gamma_positive instead of exp (lgamma) for
48107         other arguments.
48108         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
48109         (gamma_coeff): New variable.
48110         (NCOEFF): New macro.
48111         (gammaf_positive): New function.
48112         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
48113         underflow here.  Use gamma_positive instead of exp (lgamma) for
48114         other arguments.
48115         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
48116         (gamma_coeff): New variable.
48117         (NCOEFF): New macro.
48118         (gammal_positive): New function.
48119         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
48120         underflow here.  Use gamma_positive instead of exp (lgamma) for
48121         other arguments.
48122         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
48123         (gamma_coeff): New variable.
48124         (NCOEFF): New macro.
48125         (gammal_positive): New function.
48126         (__ieee754_gammal_r): Handle positive infinity, overflow and
48127         underflow here.  Handle NaN the same as positive infinity.  Remove
48128         check x < 0xffffffff for negative integers.  Use gamma_positive
48129         instead of exp (lgamma) for other arguments.
48130         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
48131         (gamma_coeff): New variable.
48132         (NCOEFF): New macro.
48133         (gammal_positive): New function.
48134         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
48135         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
48136         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
48137         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
48138         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
48139         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
48140         * sysdeps/generic/math_private.h (__gamma_productf): New
48141         prototype.
48142         (__gamma_product): Likewise.
48143         (__gamma_productl): Likewise.
48144         * math/Makefile (libm-calls): Add gamma_product.
48145         * math/libm-test.inc (tgamma_test): Add more tests.
48146         * sysdeps/i386/fpu/libm-test-ulps: Update.
48147         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48148
48149 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
48150
48151         * benchtests/bench-skeleton.c (main): Preheat CPU.
48152
48153 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
48154
48155         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
48156
48157 2013-05-07  Roland McGrath  <roland@hack.frob.com>
48158
48159         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
48160         and _dl_skip_args_internal.
48161
48162 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
48163
48164         * manual/message.texi (Message Translation): Talk about users.
48165         Message to key mapping impacts design.
48166
48167 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48168
48169         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
48170
48171         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
48172
48173         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
48174         * sysdeps/wordsize-64/glob64.c: ... here.
48175
48176         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
48177         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
48178         New macros.
48179
48180         * debug/getlogin_r_chk.c: Moved to ...
48181         * login/getlogin_r_chk.c: ... here.
48182         * debug/Makefile (routines): Move getlogin_r_chk to ...
48183         * login/Makefile (routines): ... here.
48184         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
48185         * login/Versions (libc: GLIBC_2.4): ... here.
48186
48187         * io/poll.c (__poll): Renamed from poll.
48188         Add libc_hidden_def.
48189         (poll): Define as weak alias.
48190
48191         * debug/ptsname_r_chk.c: Moved to ...
48192         * login/ptsname_r_chk.c: ... here.
48193         * debug/Makefile (routines): Move ptsname_r_chk to ...
48194         * login/Makefile (routines): ... here.
48195         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
48196         * login/Versions (libc: GLIBC_2.4): ... here.
48197
48198         * posix/getlogin.c: Moved to ...
48199         * login/getlogin.c: ... here.
48200         * posix/getlogin_r.c: Moved to ...
48201         * login/getlogin_r.c: ... here.
48202         * posix/getlogin_r.c: Moved to ...
48203         * login/getlogin_r.c: ... here.
48204         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
48205         * login/Makefile (routines): ... here.
48206         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
48207         * login/Versions (libc: GLIBC_2.0): ... here.
48208
48209         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
48210         (setrlimit): Define as weak alias.
48211
48212         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
48213         Call __ names for open, ftruncate, and close.
48214         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
48215         (truncate): Define as weak alias.
48216
48217 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
48218
48219         * math/gen-libm-test.pl (parse_args): Initialize x before each
48220         test of frexp, modf and remquo.
48221
48222         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
48223         test signgam value.
48224
48225 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48226
48227         [BZ #15418]
48228         [BZ #15419]
48229         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
48230         internal tests.
48231         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
48232
48233 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48234
48235         * elf/dl-writev.h: New file.
48236         * elf/dl-misc.c: Include it.
48237         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
48238         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
48239
48240 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
48241
48242         * math/libm-test.inc (noXFails): Remove variable.
48243         (noXPasses): Likewise.
48244         (BUILD_COMPLEX_INT): Remove macro.
48245         (print_screen): Remove xfail argument.
48246         (print_screen_max_error): Likewise.
48247         (update_stats): Likewise.
48248         (print_max_error): Likewise.  Update calls to other affected
48249         functions.
48250         (print_complex_max_error): Likewise.
48251         (test_single_exception): Update calls to print_screen.
48252         (test_single_errno): Likewise.
48253         (check_float_internal): Remove xfail argument.  Update calls to
48254         other affected functions.
48255         (check_float): Likewise.
48256         (check_complex): Likewise.
48257         (check_int): Likewise.
48258         (check_long): Likewise.
48259         (check_bool): Likewise.
48260         (check_longlong): Likewise.
48261         (main): Don't print noXFails and noXPasses.
48262         * math/gen-libm-test.pl (top level): Don't mention expected
48263         failure handling in comment.
48264         (new_test): Don't handle expected failures.
48265         (parse_args): Don't mention expected failure handling in comment.
48266         (generate_testfile): Don't handle expected failures.
48267         (parse_ulps): Likewise.
48268         (print_ulps_file): Likewise.
48269         (get_failure): Remove function.
48270         (output_test): Don't handle expected failures.
48271         * make/README.libm-test: Don't mention expected failure handling.
48272
48273         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
48274         (minus_zero): Likewise.
48275         (plus_infty): Likewise.
48276         (minus_infty): Likewise.
48277         (qnan_value): Likewise.
48278         (max_value): Likewise.
48279         (min_value): Likewise.
48280         (min_subnorm_value): Likewise.
48281         (initialize): Do not initialize those variables dynamically.
48282
48283 2013-05-03  Roland McGrath  <roland@hack.frob.com>
48284
48285         * io/open.c (__open_2): Moved to ...
48286         * io/open_2.c: ... this new file.
48287         * io/open64.c (__open64_2): Moved to ...
48288         * io/open64_2.c: ... this new file.
48289         * io/openat.c (__openat_2): Moved to ...
48290         * io/openat_2.c: ... this new file.
48291         * io/openat64.c (__openat64_2): Moved to ...
48292         * io/openat64_2.c: ... this new file.
48293         * io/Makefile (routines): Add them.
48294         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
48295         * sysdeps/unix/sysv/linux/open_2.c: File removed.
48296         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
48297         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
48298         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
48299         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
48300         (__openat64): Add hidden_ver.
48301         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
48302         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
48303
48304         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
48305         Separately conditionalize setting of GLRO(dl_sysinfo) so
48306         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
48307         as well, but the actual setting is only under [NEED_DL_SYSINFO].
48308
48309 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48310
48311         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
48312         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
48313         definition.
48314         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
48315         * sysdeps/unix/sysv/linux/powerpc/init-first.c
48316         (_libc_vdso_platform_setup): Add __vdso_time initialization.
48317         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
48318         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
48319
48320 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
48321
48322         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
48323         test signgam value.
48324
48325         * math/libm-test.inc (hypot_test): Do not use
48326         IGNORE_ZERO_INF_SIGN.
48327
48328 2013-05-03  Andreas Jaeger  <aj@suse.de>
48329
48330         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
48331         Linux 3.9.
48332         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
48333         (PF_MAX): Adjust for VSOCK change.
48334
48335 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48336
48337         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48338
48339 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
48340
48341         [BZ #15264]
48342         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
48343         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
48344         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
48345
48346 2013-05-02  David S. Miller  <davem@davemloft.net>
48347
48348         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48349
48350 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
48351
48352         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
48353
48354 2013-05-01  Roland McGrath  <roland@hack.frob.com>
48355
48356         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
48357
48358 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
48359
48360         [BZ #14952]
48361         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
48362         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48363         Use __attribute__ ((__gnu_inline__)).
48364         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48365         Don't use __attribute__ ((__gnu_inline__)).
48366
48367 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
48368
48369         [BZ #15423]
48370         * math/s_catan.c (__catan): Handle small real or imaginary part of
48371         input specially to avoid spurious underflow.
48372         * math/s_catanf.c (__catanf): Likewise.
48373         * math/s_catanh.c (__catanh): Likewise.
48374         * math/s_catanhf.c (__catanhf): Likewise.
48375         * math/s_catanhl.c (__catanhl): Likewise.
48376         * math/s_catanl.c (__catanl): Likewise.
48377         * math/libm-test.inc (catan_test): Add more tests.
48378         (catanh_test): Likewise.
48379         * sysdeps/i386/fpu/libm-test-ulps: Update.
48380         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48381
48382 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48383
48384         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48385
48386 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
48387
48388         [BZ #15416]
48389         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
48390         accurately for denominator in atan2.
48391         * math/s_catanf.c (__catanf): Likewise.
48392         * math/s_catanh.c (__catanh): Likewise.
48393         * math/s_catanhf.c (__catanhf): Likewise.
48394         * math/s_catanhl.c (__catanhl): Likewise.
48395         * math/s_catanl.c (__catanl): Likewise.
48396         * math/libm-test.inc (catan_test): Add more tests.
48397         (catanh_test): Likewise.
48398         * sysdeps/i386/fpu/libm-test-ulps: Update.
48399         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48400
48401 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
48402
48403         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
48404
48405         * benchtests/Makefile (bench): Remove slow benchmarks.
48406         * benchtests/atan-inputs: Add slow benchmark inputs.
48407         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
48408         (BENCH_FUNC): Accept variant offset.
48409         (VARIANT): Define.
48410         * benchtests/bench-skeleton.c (main): Run benchmark for each
48411         variant.
48412         * benchtests/cos-inputs: Add slow benchmark inputs.
48413         * benchtests/exp-inputs: Likewise.
48414         * benchtests/pow-inputs: Likewise.
48415         * benchtests/sin-inputs: Likewise.
48416         * benchtests/slowatan-inputs: Remove.
48417         * benchtests/slowatan.c: Remove.
48418         * benchtests/slowcos-inputs: Remove.
48419         * benchtests/slowcos.c: Remove.
48420         * benchtests/slowexp-inputs: Remove.
48421         * benchtests/slowexp.c: Remove.
48422         * benchtests/slowpow-inputs: Remove.
48423         * benchtests/slowpow.c: Remove.
48424         * benchtests/slowsin-inputs: Remove.
48425         * benchtests/slowsin.c: Remove.
48426         * benchtests/slowtan-inputs: Remove.
48427         * benchtests/slowtan.c: Remove.
48428         * benchtests/tan-inputs: Add slow benchmark inputs.
48429         * scripts/bench.pl: Parse comments and directives.
48430
48431         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
48432         in CPPFLAGS.
48433         ($(objpfx)bench-%.c): Remove *-ITER.
48434         * benchtests/bench-modf.c: Remove definition of ITER.
48435         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
48436         (main): Loop for DURATION seconds instead of fixed number of
48437         iterations.
48438         * scripts/bench.pl: Don't expect iterations in parameters.
48439
48440 2013-04-29  Roland McGrath  <roland@hack.frob.com>
48441
48442         * io/fchdir.c (__fchdir): Renamed from fchdir.
48443         (fchdir): Define as weak alias.
48444
48445 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
48446
48447         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
48448         (ERRNO_EDOM): Likewise.
48449         (ERRNO_ERANGE): Likewise.
48450         (noErrnoTests): New variable.
48451         (init_max_error): Set errno to 0.
48452         (test_single_errno): New function.
48453         (test_errno): Likewise.
48454         (check_float_internal): Call test_errno.  Set errno to 0.
48455         (check_complex): Refer to errno tests in comment.
48456         (check_int): Call test_errno.  Set errno to 0.
48457         (check_long): Likewise.
48458         (check_bool): Likewise.
48459         (check_longlong): Likewise.
48460         (cos_test): Use ERRNO_* flags for errno tests instead of
48461         check_int.
48462         (expm1_test): Likewise.
48463         (fmod_test): Likewise.
48464         (ilogb_test): Likewise.
48465         (lgamma_test): Likewise.
48466         (pow_test): Likewise.
48467         (remainder_test): Likewise.
48468         (sin_test): Likewise.
48469         (tan_test): Likewise.
48470         (yn_test): Likewise.
48471         (initialize): Set errno to 0.
48472         (main): Print number of errno tests.
48473         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
48474
48475 2013-04-29  Andreas Jaeger  <aj@suse.de>
48476
48477         [BZ #15084]
48478         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
48479         and RES_USEVC.
48480
48481         [BZ #15085]
48482         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
48483         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
48484         unimplemented.
48485
48486         [BZ #15380]
48487         * stdlib/random.c (__initstate): Return NULL if
48488         __initstate fails.
48489
48490         [BZ #15086]
48491         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
48492         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
48493         RES_SNGLKUPREOP.
48494
48495 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48496
48497         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48498
48499 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
48500
48501         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
48502         of individual tests.
48503         (casin_test): Likewise.
48504         (casinh_test): Likewise.
48505
48506 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
48507
48508         [BZ #15409]
48509         * math/s_catan.c (__catan): Handle arguments with large real or
48510         imaginary part separately without squaring.
48511         * math/s_catanf.c (__catanf): Likewise.
48512         * math/s_catanh.c (__catanh): Likewise.
48513         * math/s_catanhf.c (__catanhf): Likewise.
48514         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
48515         and redefine.
48516         (__catanhl): Handle arguments with large real or imaginary part
48517         separately without squaring.
48518         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
48519         and redefine.
48520         (__catanl): Handle arguments with large real or imaginary part
48521         separately without squaring.
48522         * math/libm-test.inc (catan_test): Add more tests.
48523         (catanh_test): Likewise.
48524         * sysdeps/i386/fpu/libm-test-ulps: Update.
48525         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48526
48527 2013-04-27  Andreas Jaeger  <aj@suse.de>
48528
48529         [BZ #15007]
48530         * stdlib/stdlib.h: Update guards for qecvt.
48531         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
48532         <stdlib.h>.
48533
48534 2013-04-27  Allan McRae  <allan@archlinux.org>
48535
48536         * sysdeps/i386/fpu/libm-test-ulps: Update.
48537
48538 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
48539
48540         [BZ #15406]
48541         * math/s_catan.c: Include <float.h>.
48542         (__catan): Ensure underflow exception occurs for underflowed
48543         result.
48544         * math/s_catanf.c: Include <float.h>.
48545         (__catanf): Ensure underflow exception occurs for underflowed
48546         result.
48547         * math/s_catanh.c: Include <float.h>.
48548         (__catanh): Ensure underflow exception occurs for underflowed
48549         result.
48550         * math/s_catanhf.c: Include <float.h>.
48551         (__catanhf): Ensure underflow exception occurs for underflowed
48552         result.
48553         * math/s_catanhl.c: Include <float.h>.
48554         (__catanhl): Ensure underflow exception occurs for underflowed
48555         result.
48556         * math/s_catanl.c: Include <float.h>.
48557         (__catanl): Ensure underflow exception occurs for underflowed
48558         result.
48559         * math/libm-test.inc (catan_test): Add more tests.
48560         (catanh_test): Likewise.
48561
48562         [BZ #15405]
48563         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
48564         underflowed result.
48565         * math/s_ccoshf.c (__ccoshf): Likewise.
48566         * math/s_ccoshl.c (__ccoshl): Likewise.
48567         * math/s_csin.c (__csin): Likewise.
48568         * math/s_csinf.c (__csinf): Likewise.
48569         * math/s_csinh.c (__csinh): Likewise.
48570         * math/s_csinhf.c (__csinhf): Likewise.
48571         * math/s_csinhl.c (__csinhl): Likewise.
48572         * math/s_csinl.c (__csinl): Likewise.
48573         * math/libm-test.inc (ccos_test): Add more tests.
48574         (ccosh_test): Likewise.
48575         (csin_test): Likewise.
48576         (csinh_test): Likewise.
48577
48578 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48579
48580         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
48581         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
48582         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
48583         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
48584         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
48585         powerpc/power5+/fpu folders.
48586         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
48587
48588
48589 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
48590
48591         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
48592
48593 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
48594
48595         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
48596         additions to variable.
48597         [$(config-machine) = x86_64] (modules-names): Likewise.
48598         ($(objpfx)tst-audit3): Remove dependency.
48599         ($(objpfx)tst-audit3.out): Likewise.
48600         ($(objpfx)tst-audit4): Likewise.
48601         ($(objpfx)tst-audit4.out): Likewise.
48602         ($(objpfx)tst-audit5): Likewise.
48603         ($(objpfx)tst-audit5.out): Likewise.
48604         ($(objpfx)tst-audit6): Likewise.
48605         ($(objpfx)tst-audit6.out): Likewise.
48606         ($(objpfx)tst-audit7): Likewise.
48607         ($(objpfx)tst-audit7.out): Likewise.
48608         (tst-audit3-ENV): Remove variable.
48609         (tst-audit4-ENV): Likewise.
48610         (tst-audit5-ENV): Likewise.
48611         (tst-audit6-ENV): Likewise.
48612         (tst-audit7-ENV): Likewise.
48613         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
48614         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
48615         addition to variable.
48616         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
48617         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
48618         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
48619         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
48620         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
48621         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
48622         tst-audit3, tst-audit4 and tst-audit5.
48623         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
48624         tst-audit6 and tst-audit7.
48625         [$(subdir) = elf] (modules-names): Add audit modules for those
48626         tests.
48627         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
48628         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
48629         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
48630         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
48631         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
48632         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
48633         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
48634         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
48635         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
48636         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
48637         [$(subdir) = elf] (tst-audit3-ENV): New variable.
48638         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
48639         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
48640         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
48641         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
48642         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
48643         Likewise.
48644         [$(subdir) = elf && $(config-cflags-avx) = yes]
48645         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
48646         [$(subdir) = elf && $(config-cflags-avx) = yes]
48647         (CFLAGS-tst-auditmod4a.c): Likewise.
48648         [$(subdir) = elf && $(config-cflags-avx) = yes]
48649         (CFLAGS-tst-auditmod4b.c): Likewise.
48650         [$(subdir) = elf && $(config-cflags-avx) = yes]
48651         (CFLAGS-tst-auditmod6b.c): Likewise.
48652         [$(subdir) = elf && $(config-cflags-avx) = yes]
48653         (CFLAGS-tst-auditmod6c.c): Likewise.
48654         [$(subdir) = elf && $(config-cflags-avx) = yes]
48655         (CFLAGS-tst-auditmod7b.c): Likewise.
48656         * elf/tst-audit3.c: Move to ...
48657         * sysdeps/x86_64/tst-audit3.c: ... here.
48658         * elf/tst-audit4.c: Move to ...
48659         * sysdeps/x86_64/tst-audit4.c: ... here.
48660         * elf/tst-audit5.c: Move to ...
48661         * sysdeps/x86_64/tst-audit5.c: ... here.
48662         * elf/tst-audit6.c: Move to ...
48663         * sysdeps/x86_64/tst-audit6.c: ... here.
48664         * elf/tst-audit7.c: Move to ...
48665         * sysdeps/x86_64/tst-audit7.c: ... here.
48666         * elf/tst-auditmod3a.c: Move to ...
48667         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
48668         * elf/tst-auditmod3b.c: Move to ...
48669         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
48670         * elf/tst-auditmod4a.c: Move to ...
48671         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
48672         * elf/tst-auditmod4b.c: Move to ...
48673         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
48674         * elf/tst-auditmod5a.c: Move to ...
48675         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
48676         * elf/tst-auditmod5b.c: Move to ...
48677         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
48678         * elf/tst-auditmod6a.c: Move to ...
48679         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
48680         * elf/tst-auditmod6b.c: Move to ...
48681         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
48682         * elf/tst-auditmod6c.c: Move to ...
48683         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
48684         * elf/tst-auditmod7a.c: Move to ...
48685         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
48686         * elf/tst-auditmod7b.c: Move to ...
48687         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
48688
48689 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
48690
48691         [BZ #15366]
48692         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
48693         define unconditionally.
48694         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
48695         define unconditionally.
48696         (INT8_C, INT16_C, etc.): Likewise.
48697
48698 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
48699
48700         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
48701         __ehdr_start with hidden visibility.
48702
48703         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
48704
48705 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
48706
48707         * math/libm-test.inc (cos_test): Use accurate hex constants.
48708         (sincost_test): Likewise.
48709
48710 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
48711
48712         * math/libm-test.inc (catan_test): Add more tests.
48713         (catanh_test): Likewise.
48714
48715         * math/s_catanf.c (__catanf): Use suffixed floating-point
48716         constants.
48717         * math/s_catanhf.c (__catanhf): Likewise.
48718         * math/s_catanhl.c (__catanhl): Likewise.
48719         * math/s_catanl.c (__catanl): Likewise.
48720
48721         [BZ #15394]
48722         * math/s_catan.c (__catan): Calculate imaginary part of result
48723         with log1p not log unless computing log of number close to 0.
48724         * math/s_catanf.c (__catanf): Likewise.
48725         * math/s_catanl.c (__catanl): Likewise.
48726         * math/s_catanh.c (__catanh): Calculate real part of result with
48727         log1p not log unless computing log of number close to 0.
48728         * math/s_catanhf.c (__catanhf): Likewise.
48729         * math/s_catanhl.c (__catanhl): Likewise.
48730         * math/libm-test.inc (catan_test): Add more tests.
48731         (catanh_test): Likewise.
48732         * sysdeps/i386/fpu/libm-test-ulps: Update.
48733         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48734
48735 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
48736
48737         * benchtests/Makefile: Mention files in which fast and slow
48738         paths of math functions are implemented.
48739
48740 2013-04-23  Roland McGrath  <roland@hack.frob.com>
48741
48742         * sysdeps/posix/timespec_get.c: New file.
48743
48744 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48745
48746         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
48747         POWER.
48748         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
48749         for POWER.
48750         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
48751         powerpc/power5/fpu folders.
48752         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
48753         * benchtests/Makefile: Add modf testcase.
48754         * benchtests/bench-modf.c: New file: Benchmark test for mo
48755
48756 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
48757
48758         [BZ #14888]
48759         * time/Makefile (tests): Add tst-strptime-whitespace.
48760         * time/strptime_l.c (get_number): Use ISSPACE.
48761         (__strptime_internal): Likewise.
48762         * time/tst-strptime-whitespace.c: New test case.
48763
48764 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
48765
48766         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
48767         member.
48768         (_nss_files_init): Set it here.
48769
48770 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
48771
48772         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
48773         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
48774         unsigned.
48775
48776 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
48777
48778         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
48779
48780 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
48781
48782         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
48783         size just once.
48784
48785 2013-04-21  David S. Miller  <davem@davemloft.net>
48786
48787         * po/ru.po: Update Russion translation from translation project.
48788
48789 2013-04-17  Adam Conrad  <adconrad@0c3.net>
48790
48791         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
48792         and setfsgid.
48793
48794 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
48795
48796         * configure.in: Remove i386 configure warning. Remove i386 case.
48797         * configure: Regenerate.
48798         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
48799         Add example to error message.
48800         * sysdeps/i386/configure: Regenerate.
48801
48802 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
48803
48804         * benchtests/Makefile (bench): Add cos, tan, slowcos and
48805         slowtan.
48806         * benchtests/cos-inputs: New file.
48807         * benchtests/slowcos-inputs: New file.
48808         * benchtests/slowcos.c: New file.
48809         * benchtests/slowtan-inputs: New file.
48810         * benchtests/slowtan.c: New file.
48811         * benchtests/tan-inputs: New file.
48812
48813 2013-04-16  Roland McGrath  <roland@hack.frob.com>
48814
48815         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
48816         considered kosher.
48817
48818 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
48819
48820         * benchtests/Makefile: Include cppflags-iterator.mk to add
48821         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
48822
48823         * Makefile.in (bench-clean): New target.
48824         * benchtests/Makefile (bench-clean): Likewise.
48825
48826 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
48827
48828         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
48829
48830 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
48831
48832         * stdio-common/tstdiomisc.c: Fix coding-style violation.
48833
48834 2013-04-15  Andreas Schwab  <schwab@suse.de>
48835
48836         * nscd/grpcache.c (cache_addgr): Properly check for short write.
48837         * nscd/initgrcache.c (addinitgroupsX): Likewise.
48838         * nscd/pwdcache.c (cache_addpw): Likewise.
48839         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
48840         more than recsize.
48841
48842 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
48843
48844         * benchtests/Makefile (bench): Write all output to
48845         bench-out.tmp together.
48846
48847 2013-04-15  Andreas Schwab  <schwab@suse.de>
48848
48849         * nscd/nscd.c (main): Don't fork again after closing files.
48850
48851 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
48852
48853         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
48854
48855         * benchtests/Rules (bench-deps): Collect dependencies into a
48856         single variable.  Add Makefile to dependencies.
48857         ($(objpfx)bench-%.c): Depend on bench-deps.
48858
48859 2013-04-12  Roland McGrath  <roland@hack.frob.com>
48860             Xavier Roche  <roche+kml2@exalead.com>
48861
48862         [BZ #15361]
48863         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
48864         just that it's a file descriptor.
48865         * manual/llio.texi (Synchronizing AIO Operations): Update description
48866         for EBADF error from aio_fsync.
48867
48868 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
48869
48870         * Rules (bench): Move target definition...
48871         * benchtests/Makefile: ... here.
48872
48873 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
48874
48875         * math/libm-test.inc (cos_test): Fix PI/2 test.
48876         (sincos_test): Likewise.
48877         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
48878         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
48879
48880 2013-04-11  Andreas Schwab  <schwab@suse.de>
48881
48882         [BZ #13988]
48883         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
48884         accept exponent character only when digits were seen.
48885         * stdio-common/Makefile (tests): Add bug26.
48886         * stdio-common/bug26.c: New file.
48887
48888         [BZ #14293]
48889         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
48890         non-freeable.
48891
48892 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
48893
48894         * Makeconfig (rtld-prefix): Define built linker prefix.
48895         * Rules (run-bench): Use it.
48896         * math/Makefile (run-regen-ulps): Likewise.
48897
48898         * Rules (bench): Remove eval.
48899
48900 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48901             Roland McGrath  <roland@hack.frob.com>
48902             Ondrej Bilka  <neleai@seznam.cz>
48903
48904         [BZ #15346]
48905         * time/getdate.c: Include ctype.h and alloca.h.
48906         (__getdate_r): Trim leading and trailing spaces of input.
48907         * time/tst-getdate.c (tests): Add tests with leading and
48908         trailing spaces.
48909
48910 2013-04-08  Roland McGrath  <roland@hack.frob.com>
48911
48912         [BZ #14280]
48913         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
48914         when computing value.
48915
48916 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
48917
48918         * math/README.libm-test (How can I generate "libm-test-ulps"?):
48919         Use testrun.sh to run libm tests.
48920
48921         [BZ #15309]
48922         * elf/dl-open.c (dl_open_worker): memset all of seen array.
48923
48924 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
48925
48926         [BZ #15264]
48927         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
48928
48929 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
48930
48931         * Makefile.in (regen-ulps): New target.
48932         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
48933         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
48934         [ifneq (no,$(PERL)] (regen-ulps): New target.
48935         [ifeq (no,$(PERL)] (regen-ulps): New target.
48936         * math/libm-test.inc (ulps_file_name): Define.
48937         (output_dir): New variable.
48938         (options): Add "output-dir" option.
48939         (parse_opt): Handle 'o' case.
48940         (main): If output_dir is non-NULL use it as a prefix
48941         otherwise use "".
48942         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
48943
48944 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
48945
48946         [BZ #10060, #10062]
48947         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
48948         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
48949         fail configure if __sync_val_compare_and_swap is not inlined.
48950         * sysdeps/i386/configure: Regenerate.
48951         * configure.in: Build for i686 when configured for i386.
48952         * configure: Regenerate.
48953         * README: Remove i386 reference.
48954
48955 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
48956
48957         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
48958         * sysdeps/s390/s390-64/sysdep.h: Likewise.
48959
48960 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
48961
48962         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
48963         (lmsnanval): New variables.
48964         (F): Add conversion tests.
48965         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
48966         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
48967
48968         * stdio-common/tstdiomisc.c (F): Properly collect individual
48969         tests' results.
48970
48971         [BZ #14686, #15336]
48972         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
48973         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
48974         Instead, use input NaN values or generate a qNaN by arithmetic
48975         operation.  Also fix bugs to comply with the standard.
48976         * math/libm-test.inc (remainder_test): Add more tests.
48977
48978         [BZ #15335, #15342]
48979         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
48980         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
48981         input NaN values or generate a qNaN by arithmetic operation.
48982
48983         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
48984         unreachable code.
48985
48986         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
48987         definitions.
48988
48989 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
48990
48991         [BZ #14478]
48992         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
48993         underflowed result.
48994         * math/s_cexpf.c (__cexpf): Likewise.
48995         * math/s_cexpl.c (__cexpl): Likewise.
48996         * math/libm-test.inc (cexp_test): Add more tests.
48997
48998 2013-04-03  Andreas Schwab  <schwab@suse.de>
48999
49000         [BZ #15330]
49001         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
49002         order arrays from heap if bigger than alloca cutoff.
49003
49004 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
49005
49006         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
49007         (SNAN_TESTS_double): Refer to GCC PR56831.
49008         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
49009         GCC PR56828.
49010
49011 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
49012
49013         * Rules (bench): Move bench.out after the run is complete.
49014
49015         * Rules (bench): Echo currently running benchmark.
49016
49017         * benchtests/Makefile (bench): Add atan and slowatan.
49018         * benchtests/atan-inputs: New file.
49019         * benchtests/slowatan-inputs: New file.
49020         * benchtests/slowatan.c: New file.
49021
49022         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
49023         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
49024         its value.
49025
49026         [BZ #15305]
49027         * sysdeps/unix/sysv/linux/kernel-features.h
49028         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
49029         __ASSUME_XFS_RESTRICTED_CHOWN.
49030         * sysdeps/unix/sysv/linux/pathconf.c
49031         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
49032         Save and restore errno.
49033
49034 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
49035
49036         [BZ #15327]
49037         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
49038         arguments using __kernel_casinh.
49039         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
49040         arguments using __kernel_casinhf.
49041         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
49042         arguments using __kernel_casinhl.
49043         * math/libm-test.inc (cacosh_test): Add more tests.
49044         * sysdeps/i386/fpu/libm-test-ulps: Update.
49045         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49046
49047 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
49048
49049         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
49050         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
49051
49052         * bench/Makefile (bench): Add sin and slowsin.
49053         * benchtests/sin-inputs: New file.
49054         * benchtests/slowsin-inputs: New file.
49055         * benchtests/slowsin.c: New file.
49056
49057         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
49058         (bench): Add slowexp and slowpow.
49059         (exp-ITER): Increase iterations.
49060         (pow-ITER): Likewise.
49061         * benchtests/exp-inputs: Change input.
49062         * benchtests/pow-inputs: Likewise.
49063         * benchtests/slowexp-inputs: New file.
49064         * benchtests/slowexp.c: New file.
49065         * benchtests/slowpow-inputs: New file.
49066         * benchtests/slowpow.c: New file.
49067
49068 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49069
49070         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
49071         instructions.
49072         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
49073         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
49074         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
49075         * benchtests/Makefile: Add rint benchtest.
49076         * benchtests/rint-inputs: Input for rint benchtest.
49077
49078 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
49079
49080         * Versions.def (libm): Add GLIBC_2.18.
49081         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
49082         hidden libm prototypes.
49083         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
49084         * math/Makefile (libm-calls): Add s_issignaling.
49085         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
49086         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
49087         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
49088         declaration.
49089         * math/math.h [__USE_GNU] (issignaling): New macro.
49090         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
49091         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
49092         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
49093         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
49094         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
49095         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
49096         * manual/arith.texi (issignaling): New section.
49097         * manual/libm-err-tab.pl (@all_functions): Update comment.
49098         * math/gen-libm-test.pl (parse_args): Apply special handling for
49099         issignaling.
49100         * math/libm-test.inc (print_float, issignaling_test): New
49101         functions.
49102         (check_float_internal): Add issignaling checks.
49103         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
49104         default definition.
49105         * sysdeps/powerpc/math-tests.h: New file.
49106         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
49107         tests.
49108         * math/test-snan.c (TEST_FUNC): Likewise.
49109
49110 2013-03-30  David S. Miller  <davem@davemloft.net>
49111
49112         * po/de.po: Update from translation team.
49113
49114 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
49115
49116         [BZ #10357]
49117         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49118         imaginary part less than 1.0 and real part less than 0.5
49119         specially.
49120         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49121         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49122         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
49123         (cacos_test): Add more tests.
49124         (casin_test): Likewise.
49125         (casinh_test): Likewise.
49126         * sysdeps/i386/fpu/libm-test-ulps: Update.
49127         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49128
49129 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
49130
49131         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
49132         ONE with its value.
49133
49134         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
49135         (__pow_mp): Replace ONE and MONE with their values.
49136         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49137         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
49138         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49139         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
49140         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49141         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49142
49143         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
49144
49145         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
49146         (__pow_mp): Replace ZERO and MZERO with their values.
49147         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49148         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49149         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49150         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
49151         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49152         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
49153         (__sqr): Likewise.
49154
49155         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
49156
49157         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
49158
49159 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49160
49161         * include/stdlib.h [!SHARED] (__call_tls_dtors):
49162         Declare with __attribute__ ((weak)).
49163         * stdlib/exit.c (__libc_atexit) [!SHARED]:
49164         Call __call_tls_dtors only if it's not NULL.
49165
49166 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49167
49168         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
49169         didn't do it already, then set _dl_phdr and _dl_phnum based on the
49170         magic __ehdr_start linker symbol if it's defined.
49171         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
49172         them up here if it was already done.
49173
49174         * elf/dl-support.c (_dl_phdr): Make pointer to const.
49175         (_dl_aux_init): Use const in cast when setting it.
49176         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
49177         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
49178         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
49179
49180         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
49181         Declare them here.
49182         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
49183         * csu/libc-tls.c: Nor here.
49184         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
49185
49186         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
49187         (__libc_message): Never call vsyslog.
49188
49189 2013-03-28  Alan Modra  <amodra@gmail.com>
49190
49191         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
49192         Define as empty.
49193         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
49194         Likewise.
49195
49196 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49197
49198         [BZ #15214]
49199         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
49200         underflow.
49201         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49202
49203 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
49204
49205         [BZ #15304]
49206         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
49207         Don't add gid passed as argument.
49208
49209         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
49210
49211 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
49212
49213         [BZ #15307]
49214         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49215         imaginary part between 1.0 and 1.5 and real part less than 0.5
49216         specially.
49217         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49218         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49219         * math/libm-test.inc (cacos_test): Add more tests.
49220         (casin_test): Likewise.
49221         (casinh_test): Likewise.
49222         * sysdeps/i386/fpu/libm-test-ulps: Update.
49223         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49224
49225 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
49226
49227         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
49228         constants.
49229         (norm): Likewise.
49230         (denorm): Likewise.
49231         (__dbl_mp): Likewise.
49232         (add_magnitudes): Likewise.
49233         (sub_magnitudes): Likewise.
49234         (__add): Likewise.
49235         (__sub): Likewise.
49236         (__mul): Likewise.
49237         (__sqr): Likewise.
49238         (__inv): Likewise.
49239         (__dvd): Likewise.
49240
49241         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
49242         commented code.
49243         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
49244         (__dubcos): Likewise.
49245         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
49246         (__ieee754_acos): Likewise.
49247         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49248         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
49249         (__exp1): Likewise.
49250         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49251         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
49252         (log1): Likewise.
49253         (my_log2): Likewise.
49254         (checkint): Likewise.
49255         * sysdeps/ieee754/dbl-64/e_remainder.c
49256         (__ieee754_remainder): Likewise.
49257         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49258         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
49259         (bsloww): Likewise.
49260         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49261
49262         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49263         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
49264         MANTISSA_STORE_T to store computations on mantissa.  Use
49265         macros for rounding and division.
49266         (denorm): Likewise.
49267         (__dbl_mp): Likewise.
49268         (add_magnitudes): Likewise.
49269         (sub_magnitudes): Likewise.
49270         (__mul): Likewise.
49271         (__sqr): Likewise.
49272         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49273         powers of two in terms of TWOPOW macro.
49274         (mp_no): Make type of mantissa as MANTISSA_T.
49275         [!RADIXI]: Define RADIXI.
49276         [!TWO52]: Define TWO52.
49277         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
49278
49279 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49280
49281         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
49282         llroundl symbol when building for PPC32.
49283
49284 2013-03-24  Mark H Weaver  <mhw@netris.org>
49285
49286         * manual/arith.texi (Normalization Functions): Fix prototypes for
49287         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
49288
49289 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49290
49291         [BZ #13889]
49292         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
49293         high value to check if expl overflow.
49294         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
49295         to check for underflow and overflow.
49296         * math/libm-test.inc: Add exp test.
49297
49298 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
49299
49300         [BZ #11120]
49301         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
49302         with NOT_IN_libc.
49303
49304 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49305
49306         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
49307         symbol.
49308
49309 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
49310
49311         * math/gen-libm-test.pl (parse_args, special_functions): Properly
49312         wrap blocks consisting of several statements.
49313
49314         * sysdeps/generic/math-tests.h: New file.
49315         * sysdeps/i386/fpu/math-tests.h: Likewise.
49316         * math/test-snan.c: Include it.
49317         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
49318
49319 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49320
49321         [BZ #15285]
49322         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
49323         (__ieee754_j0l): Do not improve calculations using cos of twice
49324         input for inputs above LDBL_MAX / 2.0L.
49325         (__ieee754_y0l): Likewise.
49326         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
49327         (__ieee754_j1l): Do not improve calculations using cos of twice
49328         input for inputs above LDBL_MAX / 2.0L.
49329         (__ieee754_y1l): Likewise.
49330         * math/libm-test.inc (j0_test): Add another test.
49331         (j1_test): Likewise.
49332         (y0_test): Likewise.
49333         (y1_test): Likewise.
49334         * sysdeps/i386/fpu/libm-test-ulps: Update.
49335
49336 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49337
49338         * Rules ($(objpfx)bench-%.c): Include code from a C source
49339         file.
49340
49341 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49342
49343         [BZ #15287]
49344         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49345         imaginary part 1.0 and real part less than 0.5 specially.
49346         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49347         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49348         * math/libm-test.inc (cacos_test): Add more tests.
49349         (casin_test): Likewise.
49350         (casinh_test): Likewise.
49351         * sysdeps/i386/fpu/libm-test-ulps: Update.
49352         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49353
49354 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49355
49356         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
49357         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
49358
49359 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
49360
49361         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
49362         * config.make.in (config-cflags-sse4): Remove variable.
49363         (config-cflags-avx): Likewise.
49364         (config-cflags-sse2avx): Likewise.
49365         (config-cflags-novzeroupper): Likewise.
49366         (config-asflags-i686): Likewise.
49367         (have-mfma4): Likewise.
49368         (have-as-vis3): Likewise.
49369         (MIG): Likewise.
49370         * configure.in (MIG): Do not AC_SUBST.
49371         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
49372         (libc_cv_cc_sse4): Do not AC_SUBST.
49373         (libc_cv_cc_avx): Likewise.
49374         (libc_cv_cc_sse2avx): Likewise.
49375         (libc_cv_cc_novzeroupper): Likewise.
49376         (libc_cv_cc_fma4): Likewise.
49377         (libc_cv_as_i686): Likewise.
49378         (libc_cv_sparc_as_vis3): Likewise.
49379         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
49380         LIBC_CONFIG_VAR.
49381         (config-asflags-i686): Likewise.
49382         (config-cflags-avx): Likewise.
49383         (config-cflags-sse2avx): Likewise.
49384         (have-mfma4): Likewise.
49385         (config-cflags-novzeroupper): Likewise.
49386         * sysdeps/mach/configure.in (MIG): Likewise.
49387         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
49388         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
49389         LIBC_CONFIG_VAR.
49390         (config-cflags-avx): Likewise.
49391         (config-cflags-sse2avx): Likewise.
49392         (have-mfma4): Likewise.
49393         (config-cflags-novzeroupper): Likewise.
49394         * configure: Regenerated.
49395         * sysdeps/i386/configure: Likewise.
49396         * sysdeps/mach/configure: Likewise.
49397         * sysdeps/sparc/configure: Likewise.
49398         * sysdeps/x86_64/configure: Likewise.
49399
49400 2013-03-20  Roland McGrath  <roland@hack.frob.com>
49401
49402         [BZ #14812]
49403         * locale/programs/localedef.c (options): Put N_ translation marker
49404         on argument names, not just descriptions.
49405
49406 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
49407
49408         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
49409
49410 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
49411
49412         [BZ #14176]
49413         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
49414
49415 2013-03-19  Roland McGrath  <roland@hack.frob.com>
49416
49417         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
49418         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
49419         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
49420         [!BEFORE_ABORT] (before_abort): New function.
49421         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
49422         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
49423         (writev_for_fatal): New function.
49424         (WRITEV_FOR_FATAL): New macro; call that.
49425         (backtrace_and_maps): New function.
49426         (BEFORE_ABORT): New macro; call that.
49427         (struct str_list): Type removed.
49428         (__libc_message, __libc_fatal): Functions removed.
49429         Include <sysdeps/posix/libc_fatal.c> instead.
49430
49431 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
49432
49433         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
49434         constants.
49435         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
49436         double constants.
49437
49438 2013-03-19  Andreas Schwab  <schwab@suse.de>
49439
49440         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
49441         * sysdeps/gnu/configure: Regenerate.
49442
49443         * configure.in: Substitute libc_cv_rtlddir.
49444         * configure: Regenerate.
49445         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
49446         * Makeconfig (rtlddir, inst_rtlddir): New variables.
49447         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
49448         * elf/Makefile (install-others, CFLAGS-interp.c)
49449         (ldso_install, common-ldd-rewrite): Likewise.
49450         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
49451         $(inst_slibdir)/$(rtld-installed-name).
49452         * scripts/rellns-sh: Add -p option.
49453         * Makerules (make-shlib-link): Use rellns-sh to get relative name
49454         for source.
49455
49456 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
49457
49458         * manual/nptl.texi: Renamed to ...
49459         * manual/threads.texi: ... this.
49460         * manual/Makefile (chapters): Update.
49461
49462 2013-03-18  Roland McGrath  <roland@hack.frob.com>
49463
49464         [BZ #14812]
49465         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
49466         on argument names, not just descriptions.
49467         * malloc/memusagestat.c (options): Likewise.
49468         * nss/getent.c (options): Likewise.
49469
49470 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
49471
49472         [BZ #14812]
49473         * iconv/iconv_prog.c (options): Put N_ translation marker
49474         on argument names, not just descriptions.
49475         * iconv/iconvconfig.c (options): Likewise.
49476
49477 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
49478
49479         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
49480         implementation which is faster on all x86_64 architectures.
49481         Tested on AMD, Intel Nehalem, SNB, IVB.
49482         * sysdeps/x86_64/strnlen.S: Likewise.
49483
49484         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
49485         Remove all multiarch strlen and strnlen versions.
49486         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
49487         Remove strlen and strnlen related parts.
49488
49489         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
49490         Inline strlen part.
49491         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
49492
49493         * sysdeps/x86_64/multiarch/strlen.S: Remove.
49494         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
49495         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
49496         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
49497         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
49498         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
49499
49500 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
49501
49502         * manual/memory.texi (Malloc Tunable Parameters):
49503         Sort parameters alphabetically. Add comments for missing entries.
49504
49505 2013-03-17  David S. Miller  <davem@davemloft.net>
49506
49507         * sysdeps/sparc/fpu/libm-test-ulps: Update.
49508
49509 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
49510
49511         [BZ #15283]
49512         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
49513         for arguments at most half maximum finite value.
49514         * math/libm-test.inc (j0_test): Add more tests.
49515         (j1_test): Likewise.
49516         (y0_test): Likewise.
49517         (y1_test): Likewise.
49518         * sysdeps/i386/fpu/libm-test-ulps: Update.
49519         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49520
49521         [BZ #14155]
49522         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
49523         1 / x and functions P and Q for arguments above 0x1p256L.
49524         (__ieee754_y0l): Likewise.
49525         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
49526         (__ieee754_y1l): Likewise.
49527         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
49528         (j1_test): Likewise.
49529         (y0_test): Likewise.
49530         (y1_test): Likewise.
49531
49532 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
49533
49534         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
49535         variable.
49536
49537 2013-03-15  Roland McGrath  <roland@hack.frob.com>
49538
49539         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
49540         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
49541         zero since it's initialized to EXEC_PAGESIZE.
49542
49543         * sysdeps/unix/sysv/linux/ldsodefs.h
49544         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
49545         * sysdeps/generic/ldsodefs.h: ... here.
49546
49547 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
49548
49549         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
49550
49551         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
49552         math/test-snan.c.
49553         * math/test-snan.c: Renamed from
49554         sysdeps/powerpc/fpu/test-powerpc-snan.c.
49555         * math/Makefile (tests): Add test-snan.
49556         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
49557         test-powerpc-snan.
49558
49559         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
49560         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
49561         functions.
49562         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
49563         __builtin_nan family of functions.
49564         * math/libm-test.inc (initialize): Initialize qnan_value with
49565         __builtin_nan family of functions.
49566         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
49567         Remove variables.
49568         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
49569         Remove functions.
49570         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
49571         storage class.  Initialize qNaN_var and sNaN_var with
49572         __builtin_nan and __builtin_nans families of functions,
49573         respectively.
49574
49575         * math/libm-test.inc (acosh_test): Also test with qNaN input.
49576         (sqrt_test): Remove duplicate test with qNaN input.
49577         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
49578         (round_test, signbit_test, significand_test): Note missing +/-Inf
49579         as well as qNaN tests.
49580
49581         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
49582         qNaN_var.  Fix a few strings, too.
49583         * math/libm-test.inc (nan_value): Rename to qnan_value.
49584         * math/gen-libm-test.pl (%beautify): Adjust to that.
49585         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
49586         * math/test-misc.c (main): Likewise.
49587         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
49588         to __qnan_bytes, and __qnan_union, respectively.
49589         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
49590         Likewise.
49591         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
49592         and lqnanval, respectively.
49593         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
49594         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
49595         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
49596         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
49597
49598         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
49599         * math/test-misc.c (main) [__x86_64__]: Enable test for long
49600         doubles.
49601
49602         * math/test-misc.c (main): Fix copy'n'pastos.
49603         * misc/tst-efgcvt.c (special): Likewise.
49604
49605         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
49606         Remove declarations.
49607
49608 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49609
49610         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
49611         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
49612         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
49613         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
49614
49615 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49616
49617         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
49618         macro to return vdso values correctly in IFUNC implementations.
49619         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
49620         Optimization by using IFUNC.
49621
49622 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49623             Richard Henderson  <rth@redhat.com>
49624             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
49625
49626         * Makefile.in (bench): New target.
49627         * NEWS: Mention the benchmark framework.
49628         * Rules (bench): Likewise.
49629         (binaries-bench): Generate binaries for functions to
49630         benchmark.
49631         * benchtests/Makefile: New makefile for benchmark tests.
49632         * benchtests/bench-skeleton.c: New skeleton file for benchmark
49633         programs.
49634         * benchtests/exp-inputs: New input file for EXP function.
49635         * benchtests/pow-inputs: New input file for POW function.
49636         * scripts/bench.pl: New script to generate source files for
49637         benchmark programs.
49638
49639 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49640
49641         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49642         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
49643         computations on mantissa.  Use macros for rounding and
49644         division.
49645         (denorm): Likewise.
49646         (__dbl_mp): Likewise.
49647         (add_magnitudes): Likewise.
49648         (sub_magnitudes): Likewise.
49649         (__mul): Likewise.
49650         (__sqr): Likewise.
49651         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49652         powers of two in terms of TWOPOW macro.
49653         (mp_no): Make type of mantissa as MANTISSA_T.
49654         [!RADIXI]: Define RADIXI.
49655         [!TWO52]: Define TWO52.
49656         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
49657
49658         * manual/nptl.texi (cindex): Modify threads to pthreads.
49659
49660 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
49661
49662         * sysdeps/x86_64/preconfigure: Regenerated.
49663
49664 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
49665
49666         [BZ #14155]
49667         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
49668         0x1p28 and above.
49669         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
49670         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
49671         0x1p28 and above.
49672         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
49673         * math/libm-test.inc (j0_test): Do not allow one spurious
49674         underflow exception.
49675         (y1_test): Likewise.
49676
49677 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
49678
49679         * manual/Makefile (chapters): Add nptl.
49680         * manual/debug.texi (Debugging Support): Add link to Threads
49681         chapter.
49682         * manual/nptl.texi: New file.
49683
49684         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
49685
49686 2013-03-14  Petr Baudis  <pasky@ucw.cz>
49687
49688         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
49689         for non-NULL pointer before the memory validity test. Pointed
49690         out by Holger Brunck <holger.brunck@keymile.com>.
49691
49692 2013-03-13  Andreas Schwab  <schwab@suse.de>
49693
49694         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
49695         instead of .os.
49696
49697 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
49698
49699         * timezone/zic.c: Update from tzcode 2013b.
49700
49701 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
49702
49703         * manual/install.texi (Configuring and compiling):
49704         Mention i686 and i586.
49705         * INSTALL: Regenerate.
49706
49707 2013-03-12  Roland McGrath  <roland@hack.frob.com>
49708
49709         * sysdeps/init_array/elf-init.c: New file.
49710         * csu/elf-init.c
49711         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
49712         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
49713
49714         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
49715         __gmon_start__ as global, but as static with a .preinit_array pointer.
49716         * sysdeps/init_array/gmon-start.c: New file.  Use that.
49717         * sysdeps/init_array/crti.S: New file, empty except for comments.
49718         * sysdeps/init_array/crtn.S: Likewise.
49719
49720 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
49721
49722         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
49723         definining bcopy.
49724         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
49725         Remove Prefer_SSE_for_memop.
49726         * sysdeps/x86_64/multiarch/init-arch.h: Remove
49727         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
49728         HAS_PREFER_SSE_FOR_MEMOP.
49729         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
49730         memset-x86-64.
49731         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
49732         Remove bzero, memset ifunc support.
49733         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
49734         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
49735         * sysdeps/x86_64/multiarch/memset.S: Likewise.
49736         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
49737
49738 2013-03-11  Andreas Schwab  <schwab@suse.de>
49739
49740         [BZ #15234]
49741         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
49742         by SHLIB_COMPAT.
49743         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
49744         (GLIBC_2.16): Remove pthread_atfork.
49745
49746 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
49747
49748         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
49749         (ptestcases.h): Likewise.
49750
49751 2013-03-08  Roland McGrath  <roland@hack.frob.com>
49752
49753         * Makeconfig ($(common-objpfx)config.status): Depend on
49754         sysdeps/*/preconfigure{,.in} too.
49755
49756 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
49757
49758         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
49759         (__free_hook): Use void * instead of __malloc_ptr_t.
49760         (__malloc_hook): Likewise.
49761         (__realloc_hook): Likewise.
49762         (__memalign_hook): Likewise.
49763         (__after_morecore_hook): Likewise.
49764         * malloc/arena.c (save_malloc_hook): Likewise.
49765         (save_free_hook): Likewise.
49766         * malloc/hooks.c (malloc_hook_ini): Likewise.
49767         (realloc_hook_ini): Likewise.
49768         (memalign_hook_ini): Likewise.
49769         * malloc/malloc.c (malloc_hook_ini): Likewise.
49770         (realloc_hook_ini): Likewise.
49771         (memalign_hook_ini): Likewise.
49772         (__free_hook): Likewise.
49773         (__malloc_hook): Likewise.
49774         (__realloc_hook): Likewise.
49775         (__memalign_hook): Likewise.
49776         (__libc_malloc): Likewise.
49777         (__libc_free): Likewise.
49778         (__libc_realloc): Likewise.
49779         (__libc_memalign): Likewise.
49780         (__libc_valloc): Likewise.
49781         (__libc_pvalloc): Likewise.
49782         (__libc_calloc): Likewise.
49783         (__posix_memalign): Likewise.
49784         * malloc/morecore.c (__sbrk): Likewise.
49785         (__default_morecore): Likewise.
49786
49787         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
49788
49789         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
49790         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
49791         __malloc_ptrdiff_t.
49792
49793         * malloc/malloc.h (__malloc_size_t): Remove macro.
49794         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
49795         __malloc_size_t.
49796         (old_memalign_hook): Likewise.
49797         (old_realloc_hook): Likewise.
49798         (struct hdr): Likewise.
49799         (flood): Likewise.
49800         (mallochook): Likewise.
49801         (memalignhook): Likewise.
49802         (reallochook): Likewise.
49803         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
49804         (tr_old_realloc_hook): Likewise.
49805         (tr_old_memalign_hook): Likewise.
49806         (tr_mallochook): Likewise.
49807         (tr_reallochook): Likewise.
49808         (tr_memalignhook): Likewise.
49809
49810 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49811
49812         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
49813         default_ldbl_pack and using as default implementation.
49814         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
49815         implementation.
49816         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
49817         redundant definition.
49818         (ldbl_insert_mantissa): Likewise.
49819         (ldbl_canonicalize): Likewise.
49820         (ldbl_nearbyint): Likewise.
49821         (ldbl_pack): Rename to ldbl_pack_ppc.
49822         (ldbl_unpack): Rename to ldbl_unpack_ppc.
49823         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
49824         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
49825
49826 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
49827
49828         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
49829         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
49830         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
49831         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
49832         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
49833         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
49834         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
49835         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
49836
49837 2013-03-07  Andreas Jaeger  <aj@suse.de>
49838
49839         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
49840         bits/mman-linux.h.
49841
49842 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
49843
49844         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
49845         Include mpa.h and declare __MPEXP.
49846         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
49847         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
49848         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
49849         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
49850         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
49851         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
49852         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
49853
49854         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
49855         (__slowpow): Use long double EXPL and LOGL functions to
49856         compute POW.
49857         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
49858         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
49859         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
49860         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
49861         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
49862         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
49863
49864         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
49865         intermediate variable to calculate exponent.
49866         (__sqr): Likewise.
49867         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
49868         Likewise.
49869         (__sqr): Likewise.
49870
49871         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
49872         [!NO__SQR]: Define __sqr.
49873         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
49874         and NO__SQR.  Remove all code except __mul and __sqr.  Include
49875         sysdeps/ieee754/dbl-64/mpa.c.
49876         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
49877
49878         [BZ #12723]
49879         * posix/Makefile (tests): Add tst-pathconf.
49880         * posix/tst-pathconf.c: New test case.
49881         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
49882         _PC_PIPE_BUF.
49883         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
49884
49885 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
49886
49887         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
49888
49889 2013-03-06  Andreas Jaeger  <aj@suse.de>
49890
49891         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
49892         definition via __MAP_ANONYMOUS.
49893
49894         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
49895         it's not part of Linux headers.
49896
49897         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
49898         (MAP_HUGE_MASK): Define.
49899
49900         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
49901         Define.
49902         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49903         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
49904         Define.
49905         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49906         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
49907         Define.
49908         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49909         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
49910         Define.
49911         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
49912
49913         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
49914         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
49915         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
49916         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
49917         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
49918         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
49919
49920         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
49921         Handle f2fs.
49922
49923         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
49924         Handle f2fs and efivarfs.
49925
49926         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
49927         f2fs.
49928
49929         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
49930         (EFIVARFS_MAGIC): Add.
49931         (F2FS_LINK_MAX): Add.
49932
49933 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
49934
49935         * stdio-common/vfprintf.c: Replace __builtin_expect with
49936         __glibc_unlikely.
49937
49938 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
49939
49940         [BZ #13550]
49941         * sysdeps/generic/bp-sym.h: Remove file.
49942         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
49943         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
49944         <bp-sym.h> and <bp-asm.h>.
49945         (__longjmp): Don't use BP_SYM.
49946         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
49947         and <bp-asm.h>.
49948         (memcpy): Don't use BP_SYM.
49949         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
49950         <bp-sym.h> and <bp-asm.h>.
49951         (memcpy): Don't use BP_SYM.
49952         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
49953         <bp-asm.h>.
49954         (memcpy): Don't use BP_SYM.
49955         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
49956         <bp-asm.h>.
49957         (memset): Don't use BP_SYM.
49958         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
49959         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
49960         (__bzero): Don't use BP_SYM.
49961         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
49962         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
49963         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
49964         <bp-sym.h> and <bp-asm.h>.
49965         (memcmp): Don't use BP_SYM.  Remove comment about bounded
49966         pointers.
49967         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
49968         <bp-sym.h> and <bp-asm.h>.
49969         (memcpy): Don't use BP_SYM.
49970         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
49971         <bp-sym.h> and <bp-asm.h>.
49972         (memset): Don't use BP_SYM.
49973         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
49974         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
49975         (__bzero): Don't use BP_SYM.
49976         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
49977         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
49978         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
49979         <bp-sym.h> and <bp-asm.h>.
49980         (strncmp): Don't use BP_SYM.  Remove comment about bounded
49981         pointers.
49982         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
49983         <bp-sym.h> and <bp-asm.h>.
49984         (memcpy): Don't use BP_SYM.
49985         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
49986         <bp-sym.h> and <bp-asm.h>.
49987         (memset): Don't use BP_SYM.
49988         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
49989         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
49990         (__bzero): Don't use BP_SYM.
49991         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
49992         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
49993         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
49994         <bp-sym.h> and <bp-asm.h>.
49995         (__memchr): Don't use BP_SYM.
49996         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
49997         <bp-sym.h> and <bp-asm.h>.
49998         (memcmp): Don't use BP_SYM.  Remove comment about bounded
49999         pointers.
50000         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
50001         <bp-sym.h> and <bp-asm.h>.
50002         (memcpy): Don't use BP_SYM.
50003         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
50004         <bp-sym.h> and <bp-asm.h>.
50005         (__mempcpy): Don't use BP_SYM.
50006         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
50007         <bp-sym.h> and <bp-asm.h>.
50008         (__memrchr): Don't use BP_SYM.
50009         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
50010         <bp-sym.h> and <bp-asm.h>.
50011         (memset): Don't use BP_SYM.
50012         (__bzero): Likewise.
50013         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
50014         <bp-sym.h> and <bp-asm.h>.
50015         (__rawmemchr): Don't use BP_SYM.
50016         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
50017         <bp-sym.h> and <bp-asm.h>.
50018         (__STRCMP): Don't use BP_SYM.
50019         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
50020         <bp-sym.h> and <bp-asm.h>.
50021         (strchr): Don't use BP_SYM.
50022         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
50023         <bp-sym.h> and <bp-asm.h>.
50024         (__strchrnul): Don't use BP_SYM.
50025         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
50026         <bp-sym.h> and <bp-asm.h>.
50027         (strlen): Don't use BP_SYM.
50028         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
50029         <bp-sym.h> and <bp-asm.h>.
50030         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50031         pointers.
50032         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
50033         <bp-sym.h> and <bp-asm.h>.
50034         (__strnlen): Don't use BP_SYM.
50035         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
50036         <bp-sym.h> and <bp-asm.h>.
50037         (__GI__setjmp): Don't use BP_SYM.
50038         (_setjmp): Likewise.
50039         (__sigsetjmp): Likewise.
50040         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
50041         (L(start_addresses)): Don't use BP_SYM.
50042         (_start): Likewise.
50043         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
50044         <bp-asm.h>.
50045         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
50046         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
50047         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50048         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50049         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
50050         <bp-asm.h>.
50051         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
50052         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
50053         about bounded pointers.
50054         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50055         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50056         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
50057         <bp-asm.h>.
50058         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50059         about bounded pointers.  Remove GKM FIXME comments.
50060         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50061         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
50062         <bp-asm.h>.
50063         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
50064         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
50065         Remove GKM FIXME comments.
50066         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50067         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50068         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
50069         <bp-asm.h>.
50070         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50071         about bounded pointers.  Remove GKM FIXME comment.
50072         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
50073         and <bp-asm.h>.
50074         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50075         pointers.
50076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
50077         <bp-sym.h> and <bp-asm.h>.
50078         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
50080         <bp-sym.h> and <bp-asm.h>.
50081         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50082         comment.
50083
50084 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
50085
50086         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
50087         call free(NULL).
50088
50089 2013-03-05  David S. Miller  <davem@davemloft.net>
50090
50091         * po/es.po: Update from translation team.
50092
50093 2013-03-05  Andreas Jaeger  <aj@suse.de>
50094
50095         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
50096         <bits/mman-linux.h>.
50097         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50098         is fine.
50099         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
50100         <bits/mman-linux.h> to end of file.
50101         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50102         is fine.
50103         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
50104         <bits/mman-linux.h> to end of file.
50105         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50106         is fine.
50107         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
50108         <bits/mman-linux.h> to end of file.
50109
50110         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
50111         (MCL_CURRENT, MCL_FUTURE): Define here.
50112
50113 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50114
50115         [BZ #15232]
50116         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
50117         attribute_hidden.
50118         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
50119
50120 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50121
50122         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
50123         fourth parameter needed for rt_sigprocmask syscall.
50124         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
50125         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
50126         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
50127         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
50128         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
50129         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
50130
50131 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
50132
50133         [BZ #13550]
50134         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
50135         comment about bounded pointers.
50136         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
50137         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
50138
50139 2013-03-04  Andreas Jaeger  <aj@suse.de>
50140
50141         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
50142         common definitions.
50143
50144         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
50145         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
50146         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
50147         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
50148         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
50149         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
50150
50151 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50152
50153         [BZ #15055]
50154         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
50155         __ieee754_sqrl instead of __sqrl.
50156
50157 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
50158
50159         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
50160         * sysdeps/powerpc/fpu_control.h: ... here.
50161         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
50162         * sysdeps/powerpc/bits/fenvinline.h: ... here.
50163         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
50164         * sysdeps/powerpc/bits/mathinline.h: ... here.
50165
50166 2013-03-01  Roland McGrath  <roland@hack.frob.com>
50167
50168         * elf/dl-hwcaps.c (_dl_important_hwcaps):
50169         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
50170         to just [NEED_DL_SYSINFO_DSO].
50171         * elf/dl-support.c: Likewise.
50172         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
50173         * elf/rtld.c (dl_main): Likewise.
50174         * elf/setup-vdso.h (setup_vdso): Likewise.
50175         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
50176         * sysdeps/unix/sysv/linux/dl-sysdep.c
50177         (_dl_discover_osversion): Likewise.
50178
50179 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
50180
50181         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
50182         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50183
50184 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
50185
50186         * NEWS: Mention libm performance improvements and non-x86 PI
50187         futex support.
50188
50189         * csu/libc-start.c (__pthread_initialize_minimal): Change
50190         function arguments.
50191         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50192
50193 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
50194
50195         [BZ #13550]
50196         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
50197         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
50198         <bp-sym.h> and <bp-asm.h>.
50199         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50200         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
50201         and <bp-asm.h>.
50202         (memcpy): Don't use BP_SYM.
50203         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
50204         <bp-asm.h>.
50205         (__mpn_add_n): Don't use BP_SYM.
50206         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
50207         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
50208         and <bp-asm.h>.
50209         (__mpn_addmul_1): Don't use BP_SYM.
50210         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50211         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
50212         <bp-sym.h>.
50213         (_setjmp): Don't use BP_SYM.
50214         (__novmx_setjmp): Likewise.
50215         (__GI__setjmp): Likewise.
50216         (__vmx_setjmp): Likewise.
50217         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
50218         <bp-sym.h>.
50219         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
50220         (__bzero): Don't use BP_SYM.
50221         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50222         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50223         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
50224         <bp-sym.h> and <bp-asm.h>.
50225         (memcpy): Don't use BP_SYM.
50226         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
50227         <bp-sym.h> and <bp-asm.h>.
50228         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50229         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
50230         <bp-sym.h> and <bp-asm.h>.
50231         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50232         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
50233         <bp-asm.h>.
50234         (__mpn_lshift): Don't use BP_SYM.
50235         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50236         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
50237         <bp-asm.h>.
50238         (memset): Don't use BP_SYM.
50239         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50240         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50241         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
50242         <bp-asm.h>.
50243         (__mpn_mul_1): Don't use BP_SYM.
50244         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50245         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
50246         <bp-sym.h> and <bp-asm.h>.
50247         (memcmp): Don't use BP_SYM.
50248         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
50249         <bp-sym.h> and <bp-asm.h>.
50250         (memcpy): Don't use BP_SYM.
50251         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
50252         <bp-sym.h> and <bp-asm.h>.
50253         (memset): Don't use BP_SYM.
50254         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
50255         <bp-sym.h> and <bp-asm.h>.
50256         (strncmp): Don't use BP_SYM.
50257         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
50258         <bp-sym.h> and <bp-asm.h>.
50259         (memcpy): Don't use BP_SYM.
50260         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
50261         <bp-sym.h> and <bp-asm.h>.
50262         (memset): Don't use BP_SYM.
50263         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
50264         <bp-sym.h> and <bp-asm.h>.
50265         (__memchr): Don't use BP_SYM.
50266         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
50267         <bp-sym.h> and <bp-asm.h>.
50268         (memcmp): Don't use BP_SYM.
50269         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
50270         <bp-sym.h> and <bp-asm.h>.
50271         (memcpy): Don't use BP_SYM.
50272         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
50273         <bp-sym.h> and <bp-asm.h>.
50274         (__mempcpy): Don't use BP_SYM.
50275         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
50276         <bp-sym.h> and <bp-asm.h>.
50277         (__memrchr): Don't use BP_SYM.
50278         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
50279         <bp-sym.h> and <bp-asm.h>.
50280         (memset): Don't use BP_SYM.
50281         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
50282         <bp-sym.h> and <bp-asm.h>.
50283         (__rawmemchr): Don't use BP_SYM.
50284         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
50285         <bp-sym.h> and <bp-asm.h>.
50286         (__STRCMP): Don't use BP_SYM.
50287         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
50288         <bp-sym.h> and <bp-asm.h>.
50289         (strchr): Don't use BP_SYM.
50290         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
50291         <bp-sym.h> and <bp-asm.h>.
50292         (__strchrnul): Don't use BP_SYM.
50293         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
50294         <bp-sym.h> and <bp-asm.h>.
50295         (strlen): Don't use BP_SYM.
50296         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
50297         <bp-sym.h> and <bp-asm.h>.
50298         (strncmp): Don't use BP_SYM.
50299         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
50300         <bp-sym.h> and <bp-asm.h>.
50301         (__strnlen): Don't use BP_SYM.
50302         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
50303         <bp-asm.h>.
50304         (__mpn_rshift): Don't use BP_SYM.
50305         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50306         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
50307         <bp-sym.h> and <bp-asm.h>.
50308         (__sigsetjmp): Don't use BP_SYM.
50309         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
50310         (L(start_addresses)): Don't use BP_SYM.
50311         (_start): Likewise.
50312         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
50313         <bp-asm.h>.
50314         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
50315         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50316         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50317         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
50318         <bp-asm.h>.
50319         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
50320         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50321         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50322         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
50323         <bp-asm.h>.
50324         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50325         comments.
50326         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50327         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
50328         <bp-asm.h>.
50329         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
50330         FIXME comments.
50331         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50332         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50333         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
50334         <bp-asm.h>.
50335         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50336         comment.
50337         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
50338         and <bp-asm.h>.
50339         (strncmp): Don't use BP_SYM,
50340         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
50341         <bp-asm.h>.
50342         (__mpn_sub_n): Don't use BP_SYM.
50343         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50344         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
50345         and <bp-asm.h>.
50346         (__mpn_submul_1): Don't use BP_SYM.
50347         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
50349         <bp-sym.h> and <bp-asm.h>.
50350         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
50352         <bp-sym.h> and <bp-asm.h>.
50353         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50354         comment.
50355
50356 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
50357
50358         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
50359         Use ZK to minimize writes to Z.
50360         (sub_magnitudes): Simplify code a bit.
50361         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
50362         Use ZK to minimize writes to Z.
50363         (sub_magnitudes): Simplify code a bit.
50364
50365 2013-02-27  Roland McGrath  <roland@hack.frob.com>
50366
50367         * csu/gmon-start.c: Add special exception to license text.
50368
50369 2013-02-27  Richard Henderson  <rth@redhat.com>
50370
50371         * scripts/config.guess: Update from config.git.
50372         * scripts/config.sub: Likewise.
50373
50374 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
50375
50376         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
50377
50378         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
50379
50380         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
50381
50382         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
50383
50384         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
50385
50386 2013-02-26  Roland McGrath  <roland@hack.frob.com>
50387
50388         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
50389         [$(build-shared = yes].
50390
50391 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50392
50393         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
50394         (__mul): Reduce iterations for calculating mantissa.
50395
50396         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
50397         MPTWO.
50398         (__mpranred): Likewise.
50399
50400         [BZ #15160]
50401         * malloc/memusagestat.c (main): Draw graphs for heap and stack
50402         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
50403
50404 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
50405
50406         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
50407         Define __attribute__.
50408
50409 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
50410
50411         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
50412         unused.
50413         * posix/regex_internal.h (__attribute): Remove.
50414         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
50415         (re_string_context_at): Likewise.
50416         (bitset_not): Use __attribute__ and mark function as possibly
50417         unused.
50418         (bitset_merge): Likewise.
50419         (bitset_mask): Likewise.
50420         (re_string_char_size_at): Likewise.
50421         (re_string_wchar_at): Likewise.
50422         (re_string_elem_size_at): Likewise.
50423
50424 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
50425
50426         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
50427         code.
50428         (cc32): Likewise.
50429
50430         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
50431         (__acr): Likewise.
50432         (__cpy): Likewise.
50433         (norm): Likewise.
50434         (denorm): Likewise.
50435         (__dbl_mp): Likewise.
50436         (add_magnitudes): Likewise.
50437         (sub_magnitudes): Likewise.
50438         (__mul): Likewise.
50439         (__inv): Likewise.
50440
50441         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
50442         style.
50443
50444         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
50445         style.
50446
50447         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
50448         code.
50449
50450         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
50451         up changes with default code.
50452         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
50453         Likewise.
50454
50455 2013-02-24  Allan McRae  <allan@archlinux.org>
50456
50457         * manual/socket.texi (The Internet Namespace): Order menu items
50458         to match that in the file.
50459
50460         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
50461         node listing of the info page menu.
50462
50463 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
50464
50465         [BZ #13550]
50466         * sysdeps/i386/bp-asm.h: Remove file.
50467         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
50468         (PARMS): Do not use macros from bp-asm.h.
50469         (S1): Likewise.
50470         (S2): Likewise.
50471         (SIZE): Likewise.
50472         (__mpn_add_n): Do not use BP_SYM
50473         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
50474         "bp-asm.h".
50475         (PARMS): Do not use macros from bp-asm.h.
50476         (S1): Likewise.
50477         (SIZE): Likewise.
50478         (__mpn_addmul_1): Do not use BP_SYM
50479         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
50480         "bp-asm.h".
50481         (PARMS): Do not use macros from bp-asm.h.
50482         (SIGMSK): Likewise.
50483         (_setjmp): Likewise.  Do not use BP_SYM.
50484         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
50485         "bp-asm.h".
50486         (PARMS): Do not use macros from bp-asm.h.
50487         (SIGMSK): Likewise.
50488         (setjmp): Likewise.  Do not use BP_SYM.
50489         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
50490         "bp-asm.h".
50491         (PARMS): Do not use macros from bp-asm.h.
50492         (__frexp): Do not use BP_SYM.
50493         (frexp): Likewise.
50494         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
50495         "bp-asm.h".
50496         (PARMS): Do not use macros from bp-asm.h.
50497         (__frexpf): Do not use BP_SYM.
50498         (frexpf): Likewise.
50499         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
50500         "bp-asm.h".
50501         (PARMS): Do not use macros from bp-asm.h.
50502         (__frexpl): Do not use BP_SYM.
50503         (frexpl): Likewise.
50504         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
50505         "bp-asm.h".
50506         (PARMS): Do not use macros from bp-asm.h.
50507         (__remquo): Do not use BP_SYM.
50508         (remquo): Likewise.
50509         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
50510         "bp-asm.h".
50511         (PARMS): Do not use macros from bp-asm.h.
50512         (__remquof): Do not use BP_SYM.
50513         (remquof): Likewise.
50514         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
50515         "bp-asm.h".
50516         (PARMS): Do not use macros from bp-asm.h.
50517         (__remquol): Do not use BP_SYM.
50518         (remquol): Likewise.
50519         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
50520         "bp-asm.h".
50521         (PARMS): Do not use macros from bp-asm.h.
50522         (DEST): Likewise.
50523         (SRC): Likewise.
50524         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
50525         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
50526         "bp-asm.h".
50527         (PARMS): Do not use macros from bp-asm.h.
50528         (strlen): Do not use BP_SYM.
50529         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
50530         "bp-asm.h".
50531         (PARMS): Do not use macros from bp-asm.h.
50532         (S1): Likewise.
50533         (S2): Likewise.
50534         (SIZE): Likewise.
50535         (__mpn_add_n): Do not use BP_SYM.
50536         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
50537         "bp-asm.h".
50538         (PARMS): Do not use macros from bp-asm.h.
50539         (S1): Likewise.
50540         (SIZE): Likewise.
50541         (__mpn_addmul_1): Do not use BP_SYM.
50542         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
50543         weak_alias.
50544         (bzero): Likewise.
50545         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
50546         "bp-asm.h".
50547         (PARMS): Do not use macros from bp-asm.h.
50548         (S): Likewise.
50549         (SIZE): Likewise.
50550         (__mpn_lshift): Do not use BP_SYM.
50551         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
50552         "bp-asm.h".
50553         (PARMS): Do not use macros from bp-asm.h.
50554         (DEST): Likewise.
50555         (SRC): Likewise.
50556         (LEN): Likewise.
50557         (memcpy): Likewise.  Do not use BP_SYM.
50558         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
50559         libc_hidden_def and weak_alias.
50560         (mempcpy): Do not use BP_SYM in weak_alias.
50561         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
50562         "bp-asm.h".
50563         (PARMS): Do not use macros from bp-asm.h.
50564         (DEST): Likewise.
50565         (LEN): Likewise.
50566         [!BZERO_P] (CHR): Likewise.
50567         (memset): Likewise.  Do not use BP_SYM.
50568         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
50569         "bp-asm.h".
50570         (PARMS): Do not use macros from bp-asm.h.
50571         (S1): Likewise.
50572         (SIZE): Likewise.
50573         (__mpn_mul_1): Do not use BP_SYM.
50574         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
50575         "bp-asm.h".
50576         (PARMS): Do not use macros from bp-asm.h.
50577         (S): Likewise.
50578         (SIZE): Likewise.
50579         (__mpn_rshift): Do not use BP_SYM.
50580         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
50581         "bp-asm.h".
50582         (PARMS): Do not use macros from bp-asm.h.
50583         (STR): Likewise.
50584         (CHR): Likewise.
50585         (strchr): Likewise.  Do not use BP_SYM.
50586         (index): Do not use BP_SYM in weak_alias.
50587         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
50588         "bp-asm.h".
50589         (PARMS): Do not use macros from bp-asm.h.
50590         (DEST): Likewise.
50591         (SRC): Likewise.
50592         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
50593         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
50594         "bp-asm.h".
50595         (PARMS): Do not use macros from bp-asm.h.
50596         (strlen): Do not use BP_SYM.
50597         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
50598         "bp-asm.h".
50599         (PARMS): Do not use macros from bp-asm.h.
50600         (S1): Likewise.
50601         (S2): Likewise.
50602         (SIZE): Likewise.
50603         (__mpn_sub_n): Do not use BP_SYM.
50604         * sysdeps/i386/i586/submul_1.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         (SIZE): Likewise.
50609         (__mpn_submul_1): Do not use BP_SYM.
50610         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
50611         "bp-asm.h".
50612         (PARMS): Do not use macros from bp-asm.h.
50613         (S1): Likewise.
50614         (S2): Likewise.
50615         (SIZE): Likewise.
50616         (__mpn_add_n): Do not use BP_SYM.
50617         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
50618         weak_alias.
50619         (bzero): Likewise.
50620         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
50621         "bp-asm.h".
50622         (PARMS): Do not use macros from bp-asm.h.
50623         (BLK2): Likewise.
50624         (LEN): Likewise.
50625         (memcmp): Do not use BP_SYM.
50626         (bcmp): Do not use BP_SYM in weak_alias.
50627         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
50628         "bp-asm.h".
50629         (PARMS): Do not use macros from bp-asm.h.
50630         (DEST): Likewise.
50631         (SRC): Likewise.
50632         (LEN): Likewise.
50633         (memcpy): Likewise.  Do not use BP_SYM.
50634         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
50635         "bp-asm.h".
50636         (PARMS): Do not use macros from bp-asm.h.
50637         (DEST): Likewise.
50638         (SRC): Likewise.
50639         (LEN): Likewise.
50640         (memmove): Likewise.  Do not use BP_SYM.
50641         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
50642         "bp-asm.h".
50643         (PARMS): Do not use macros from bp-asm.h.
50644         (DEST): Likewise.
50645         (SRC): Likewise.
50646         (LEN): Likewise.
50647         (__mempcpy): Likewise.  Do not use BP_SYM.
50648         (mempcpy): Do not use BP_SYM in weak_alias.
50649         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
50650         "bp-asm.h".
50651         (PARMS): Do not use macros from bp-asm.h.
50652         (DEST): Likewise.
50653         (LEN): Likewise.
50654         [!BZERO_P] (CHR): Likewise.
50655         (memset): Likewise.  Do not use BP_SYM.
50656         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
50657         "bp-asm.h".
50658         (PARMS): Do not use macros from bp-asm.h.
50659         (STR2): Likewise.
50660         (strcmp): Do not use BP_SYM.
50661         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
50662         "bp-asm.h".
50663         (PARMS): Do not use macros from bp-asm.h.
50664         (STR): Likewise.
50665         (DELIM): Likewise.
50666         [USE_AS_STRTOK_R] (SAVE): Likewise.
50667         (FUNCTION): Likewise.  Do not use BP_SYM.
50668         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
50669         aliases.
50670         (strtok_r): Likewise.
50671         (__GI___strtok_r): Likewise.
50672         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
50673         (PARMS): Do not use macros from bp-asm.h.
50674         (S): Likewise.
50675         (SIZE): Likewise.
50676         (__mpn_lshift): Do not use BP_SYM.
50677         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
50678         (PARMS): Do not use macros from bp-asm.h.
50679         (STR): Likewise.
50680         (CHR): Likewise.
50681         (__memchr): Do not use BP_SYM.
50682         (memchr): Do not use BP_SYM in weak_alias.
50683         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
50684         (PARMS): Do not use macros from bp-asm.h.
50685         (BLK2): Likewise.
50686         (LEN): Likewise.
50687         (memcmp): Do not use BP_SYM.
50688         (bcmp): Do not use BP_SYM in weak_alias.
50689         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
50690         (PARMS): Do not use macros from bp-asm.h.
50691         (S1): Likewise.
50692         (SIZE): Likewise.
50693         (__mpn_mul_1): Do not use BP_SYM.
50694         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
50695         "bp-asm.h".
50696         (PARMS): Do not use macros from bp-asm.h.
50697         (STR): Likewise.
50698         (CHR): Likewise.
50699         (__rawmemchr): Do not use BP_SYM.
50700         (rawmemchr): Do not use BP_SYM in weak_alias.
50701         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
50702         (PARMS): Do not use macros from bp-asm.h.
50703         (S): Likewise.
50704         (SIZE): Likewise.
50705         (__mpn_rshift): Do not use BP_SYM.
50706         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
50707         (PARMS): Do not use macros from bp-asm.h.
50708         (SIGMSK): Likewise.
50709         (__sigsetjmp): Likewise.  Do not use BP_SYM.
50710         * sysdeps/i386/start.S: Do not include "bp-sym.h".
50711         (_start): Do not use BP_SYM.
50712         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
50713         (PARMS): Do not use macros from bp-asm.h.
50714         (DEST): Likewise.
50715         (SRC): Likewise.
50716         (__stpcpy): Likewise.  Do not use BP_SYM.
50717         (stpcpy): Do not use BP_SYM in weak_alias.
50718         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
50719         "bp-asm.h".
50720         (PARMS): Do not use macros from bp-asm.h.
50721         (DEST): Likewise.
50722         (SRC): Likewise.
50723         (LEN): Likewise.
50724         (__stpncpy): Likewise.  Do not use BP_SYM.
50725         (stpncpy): Do not use BP_SYM in weak_alias.
50726         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
50727         (PARMS): Do not use macros from bp-asm.h.
50728         (STR): Likewise.
50729         (CHR): Likewise.
50730         (strchr): Likewise.  Do not use BP_SYM.
50731         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
50732         "bp-asm.h".
50733         (PARMS): Do not use macros from bp-asm.h.
50734         (STR): Likewise.
50735         (CHR): Likewise.
50736         (__strchrnul): Likewise.  Do not use BP_SYM.
50737         (strchrnul): Do not use BP_SYM in weak_alias.
50738         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
50739         "bp-asm.h".
50740         (PARMS): Do not use macros from bp-asm.h.
50741         (STOP): Likewise.
50742         (strcspn): Do not use BP_SYM.
50743         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
50744         "bp-asm.h".
50745         (PARMS): Do not use macros from bp-asm.h.
50746         (STR): Likewise.
50747         (STOP): Likewise.
50748         (strpbrk): Likewise.  Do not use BP_SYM.
50749         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
50750         "bp-asm.h".
50751         (PARMS): Do not use macros from bp-asm.h.
50752         (STR): Likewise.
50753         (CHR): Likewise.
50754         (strrchr): Likewise.  Do not use BP_SYM.
50755         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
50756         (PARMS): Do not use macros from bp-asm.h.
50757         (SKIP): Likewise.
50758         (strspn): Do not use BP_SYM.
50759         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
50760         (PARMS): Do not use macros from bp-asm.h.
50761         (STR): Likewise.
50762         (DELIM): Likewise.
50763         (SAVE): Likewise.
50764         (FUNCTION): Likewise.  Do not use BP_SYM.
50765         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
50766         aliases.
50767         (strtok_r): Likewise.
50768         (__GI___strtok_r): Likewise.
50769         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
50770         (PARMS): Do not use macros from bp-asm.h.
50771         (S1): Likewise.
50772         (S2): Likewise.
50773         (SIZE): Likewise.
50774         (__mpn_sub_n): Do not use BP_SYM.
50775         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
50776         "bp-asm.h".
50777         (PARMS): Do not use macros from bp-asm.h.
50778         (S1): Likewise.
50779         (SIZE): Likewise.
50780         (__mpn_submul_1): Do not use BP_SYM.
50781         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
50782         <bp-sym.h>.
50783         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
50784         and <bp-asm.h>.
50785         (PARMS): Do not use macros from bp-asm.h.
50786         (FLAGS): Likewise.
50787         (PTID): Likewise.
50788         (TLS): Likewise.
50789         (CTID): Likewise.
50790         (__clone): Do not use BP_SYM.
50791         (clone): Do not use BP_SYM in weak_alias.
50792         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
50793         and <bp-asm.h>.
50794         (PARMS): Do not use macros from bp-asm.h.
50795         (LEN): Likewise.
50796         (__mmap64): Do not use BP_SYM.
50797         (mmap64): Do not use BP_SYM in weak_alias.
50798         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
50799         <bp-sym.h> and <bp-asm.h>.
50800         (PARMS): Do not use macros from bp-asm.h.
50801         (__posix_fadvise64_l64): Do not use BP_SYM.
50802         * sysdeps/unix/sysv/linux/i386/semtimedop.S
50803         (PARMS): Do not use macros from bp-asm.h.
50804         (NSOPS): Likewise.
50805         (semtimedop): Do not use BP_SYM.
50806         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
50807         and <bp-asm.h>.
50808
50809 2013-02-21  Allan McRae  <allan@archlinux.org>
50810
50811         * manual/message.texi (Charset conversion in gettext):
50812         Move @end statement to beginning of line.
50813
50814 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50815
50816         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
50817         static.
50818         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
50819         Likewise.
50820
50821         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
50822         (denorm): Likewise.
50823         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
50824         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
50825
50826 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50827
50828         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
50829         tail-call to the resolved function if pltexit isn't needed.
50830
50831 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
50832
50833         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
50834         or Y being zero as being unlikely.
50835         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
50836         Likewise.
50837
50838 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
50839
50840         * manual/nss.texi (System Databases and Name Service Switch):
50841         Remove frobnicate @pxref.
50842
50843 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
50844
50845         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
50846         __attribute__ ((unused)) to __attribute__ ((__unused__)).
50847
50848 2013-02-20  Petr Machata  <pmachata@redhat.com>
50849
50850         * elf/elf.h (R_ARM_TARGET1): New macro.
50851         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
50852         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
50853         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
50854         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
50855         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
50856         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
50857         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
50858         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
50859         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
50860         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
50861         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
50862         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
50863         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
50864         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
50865         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
50866         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
50867         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
50868         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
50869         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
50870         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
50871         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
50872         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
50873         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
50874         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
50875         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
50876         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
50877         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
50878         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
50879         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
50880         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
50881         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
50882         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
50883         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
50884         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
50885         (R_ARM_THM_GOT_BREL12): Likewise.
50886         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
50887         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
50888         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
50889         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
50890         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
50891         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
50892         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
50893         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
50894         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
50895
50896 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
50897
50898         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
50899         __attribute_used__ to __attribute__ ((unused)).
50900
50901 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
50902
50903         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
50904         powerpc mpa.c.
50905         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
50906         comment formatting.
50907         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
50908
50909 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
50910
50911         [BZ #13550]
50912         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
50913         Remove macro.
50914         (ENTER): Remove both macro definitions.
50915         (LEAVE): Likewise.
50916         (CHECK_BOUNDS_LOW): Likewise.
50917         (CHECK_BOUNDS_HIGH): Likewise.
50918         (CHECK_BOUNDS_BOTH): Likewise.
50919         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
50920         (RETURN_BOUNDED_POINTER): Likewise.
50921         (RETURN_NULL_BOUNDED_POINTER): Likewise.
50922         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
50923         (POP_ERRNO_LOCATION_RETURN): Likewise.
50924         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
50925         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50926         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
50927         macros.
50928         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50929         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
50930         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
50931         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
50932         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
50933         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
50934         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
50935         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
50936         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
50937         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
50938         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
50939         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
50940         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50941         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
50942         removed macros.
50943         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50944         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
50945         macros.
50946         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50947         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
50948         * sysdeps/i386/i586/memset.S (memset): Likewise.
50949         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
50950         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50951         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
50952         macros.
50953         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50954         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
50955         Change uses of L(2) to L(out).
50956         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
50957         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
50958         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
50959         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50960         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
50961         removed macros.
50962         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50963         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
50964         macros.
50965         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50966         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
50967         (RETURN): Do not use macro LEAVE.
50968         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
50969         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
50970         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
50971         * sysdeps/i386/i686/memset.S (memset): Likewise.
50972         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
50973         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
50974         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50975         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
50976         Likewise.
50977         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50978         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
50979         L(1_2) and L(1_3) into L(1).
50980         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
50981         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
50982         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50983         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
50984         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50985         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
50986         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
50987         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50988         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
50989         macros.
50990         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
50991         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50992         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
50993         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
50994         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
50995         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50996         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
50997         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
50998         * sysdeps/i386/strcspn.S (strcspn): Likewise.
50999         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
51000         * sysdeps/i386/strrchr.S (strrchr): Likewise.
51001         * sysdeps/i386/strspn.S (strspn): Likewise.
51002         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
51003         conditional code.
51004         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51005         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
51006         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51007         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
51008         L(1_3) into L(1_1).
51009         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
51010         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51011         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
51012         macros.
51013         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51014
51015 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
51016
51017         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
51018         macro.
51019
51020 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
51021
51022         * math/atest-exp.c (exp_mpn): Remove ROUND.
51023         * math/atest-exp2.c (exp_mpn): Likewise.
51024         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
51025
51026         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
51027         * stdlib/tst-tls-atexit-lib.c: Likewise.
51028         * stdlib/tst-tls-atexit.c: Likewise.
51029
51030 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51031
51032         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
51033         and __attribute_alloc_size__.
51034
51035 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51036
51037         * include/programs/xmalloc.h: Change __attribute_alloc_size to
51038         __attribute_alloc_size__.
51039         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
51040         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
51041
51042 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51043
51044         * include/programs/xmalloc.h: New file.
51045         * catgets/gencat.c: Include it.
51046         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
51047         * elf/pldd.c: Likewise.
51048         * iconv/iconv_charmap.c: Likewise.
51049         * iconv/iconvconfig.c: Likewise.
51050         * iconv/strtab.c: Likewise.
51051         * locale/programs/locale.c: Likewise.
51052         * locale/programs/localedef.h: Likewise.
51053         * locale/programs/simple-hash.c: Likewise.
51054         * nscd/nscd.h: Likewise.
51055         * nss/makedb.c: Likewise.
51056         * sysdeps/generic/ldconfig.h: Likewise.
51057
51058 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
51059
51060         * Versions.def: Add GLIBC_2.18.
51061         * include/link.h (struct link_map): New member l_tls_dtor_count.
51062         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
51063         (__call_tls_dtors): Likewise.
51064         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
51065         __cxa_thread_atexit_impl.
51066         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
51067         Likewise.
51068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
51069         Likewise.
51070         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
51071         Likewise.
51072         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
51073         Likewise.
51074         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
51075         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
51076         Likewise.
51077         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
51078         Likewise.
51079         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
51080         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
51081         Likewise.
51082         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
51083         (tests): Add test case tst-tls-atexit.
51084         (modules-names): Add shared library for tst-tls-atexit.
51085         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
51086         (GLIBC_PRIVATE): Add __call_tls_dtors.
51087         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
51088         for libstdc++.
51089         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
51090         * stdlib/tst-tls-atexit.c: New test case.
51091         * stdlib/tst-tls-atexit-lib.c: New test case.
51092
51093         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
51094
51095         * elf/Versions (ld): Add _dl_find_dso_for_object.
51096         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
51097         * elf/dl-open.c (_dl_find_dso_for_object): New function.
51098         (dl_open_worker): Use _dl_find_dso_for_object.
51099         * elf/dl-sym.c (do_sym): Likewise.
51100         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
51101
51102 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51103
51104         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
51105         Syntactic changes only.
51106         (_dl_runtime_profile): Do a tail-call to the resolved function.
51107
51108 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
51109
51110         [BZ #13550]
51111         * sysdeps/x86_64/bp-asm.h: Remove file.
51112         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
51113         <bp-sym.h> and <bp-asm.h>.
51114         (__clone): Do not use BP_SYM.
51115         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
51116         <bp-sym.h> and <bp-asm.h>.
51117         * sysdeps/unix/x86_64/sysdep.S: Likewise.
51118         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
51119         "bp-asm.h".
51120         (_setjmp): Do not use BP_SYM.
51121         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
51122         "bp-asm.h".
51123         (setjmp): Do not use BP_SYM.
51124         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
51125         libc_hidden_def.
51126         (mempcpy): Do not use BP_SYM in weak_alias.
51127         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
51128         "bp-asm.h".
51129         (strchr): Do not use BP_SYM.
51130         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
51131         "bp-asm.h".
51132         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
51133         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
51134         (_start): Do not use BP_SYM.
51135         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
51136         "bp-asm.h".
51137         (strcat): Do not use BP_SYM.
51138         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
51139         "bp-asm.h".
51140         (STRCMP): Do not use BP_SYM.
51141         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
51142         "bp-asm.h".
51143         (STRCPY): Do not use BP_SYM.
51144         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
51145         "bp-asm.h".
51146         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
51147         "bp-asm.h".
51148         (FUNCTION): Do not use BP_SYM.
51149         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
51150         weak_alias.
51151         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
51152
51153 2013-02-17  Andreas Jaeger  <aj@suse.de>
51154
51155         * time/Versions: Sort entries.
51156         * string/Versions: Likewise.
51157         * resolv/Versions: Likewise.
51158         * posix/Versions: Likewise.
51159         * iconv/Versions: Likewise.
51160         * elf/Versions: Likewise.
51161         * wcsmbs/Versions: Likewise.
51162
51163 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51164
51165         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
51166         loop termination condition.
51167
51168         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
51169         variable to calculate EZ.
51170         (__sqr): Likewise.
51171
51172         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
51173         the lower precision input.
51174
51175 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
51176
51177         [BZ #13550]
51178         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
51179         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
51180         (run-via-rtld-prefix): Do not handle %-bp tests.
51181         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
51182         (all-object-suffixes): Remove .ob.
51183         (bppfx): Remove variable.
51184         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
51185         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
51186         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
51187         [$(build-bounded) = yes] (libtype.ob): Likewise.
51188         * Makerules (elide-routines.ob): Remove variable.
51189         (do-tests-clean): Do not handle *-bp.out.
51190         (common-mostlyclean): Do not handle *-bp and *-bp.out.
51191         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
51192         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
51193         (tests): Do not include $(tests-bp.out).
51194         (xtests): Do not include $(xtests-bp.out).
51195         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
51196         [$(build-bounded) = yes] ($(addprefix
51197         $(objpfx),$(binaries-bounded))): Remove rule.
51198         ($(objpfx)%-bp.out): Remove rule.
51199         * config.make.in (build-bounded): Remove variable.
51200         * crypt/Makefile [$(build-bounded) = yes]
51201         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
51202         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
51203         append to variable.
51204         [$(build-bounded) = yes] (install-lib): Likewise.
51205         [$(build-bounded) = yes] (generated): Likewise.
51206         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
51207         Remove rule.
51208         * intl/Makefile [$(build-bounded) = yes]
51209         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
51210         * math/Makefile [$(build-bounded) = yes]
51211         ($(tests:%=$(objpfx)%-bp): Likewise.
51212         * misc/Makefile [$(build-bounded) = yes]
51213         ($(objpfx)tst-tsearch-bp): Likewise.
51214         * nptl/Makeconfig (bounded-thread-library): Remove variable.
51215         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
51216         Remove dependency.
51217         * string/Makefile (o-objects.ob): Remove variable.
51218         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
51219         (CFLAGS-.ob): Remove variable.
51220         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
51221         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
51222         both definitions of variable.
51223         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
51224         (ASFLAGS-.ob): Remove variable.
51225
51226 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
51227
51228         [BZ #13550]
51229         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
51230         Remove __BOUNDED_POINTERS__ from condition.
51231         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
51232         * string/bits/string2.h [!__NO_STRING_INLINES &&
51233         !__BOUNDED_POINTERS__]: Likewise.
51234         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
51235         Likewise.
51236         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
51237         Remove conditional code.
51238         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
51239         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
51240         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
51241         condition.
51242
51243         [BZ #13550]
51244         * csu/libc-start.c: Do not include <bp-sym.h>.
51245         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
51246         * elf/dl-open.c: Do not include <bp-sym.h>.
51247         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
51248         * math/fegetenv.c: Do not include <bp-sym.h>.
51249         (fegetenv): Do not use BP_SYM in versioned symbols.
51250         * nptl/sysdeps/pthread/bits/libc-lockP.h
51251         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
51252         <bp-sym.h>.
51253         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51254         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
51255         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51256         (__pthread_mutex_destroy): Likewise.
51257         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51258         (__pthread_mutex_lock): Likewise.
51259         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51260         (__pthread_mutex_trylock): Likewise.
51261         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51262         (__pthread_mutex_unlock): Likewise.
51263         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51264         (__pthread_mutexattr_init): Likewise.
51265         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51266         (__pthread_mutexattr_destroy): Likewise.
51267         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51268         (__pthread_mutexattr_settype): Likewise.
51269         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51270         (__pthread_rwlock_init): Likewise.
51271         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51272         (__pthread_rwlock_destroy): Likewise.
51273         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51274         (__pthread_rwlock_rdlock): Likewise.
51275         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51276         (__pthread_rwlock_tryrdlock): Likewise.
51277         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51278         (__pthread_rwlock_wrlock): Likewise.
51279         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51280         (__pthread_rwlock_trywrlock): Likewise.
51281         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51282         (__pthread_rwlock_unlock): Likewise.
51283         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51284         (__pthread_key_create): Likewise.
51285         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51286         (__pthread_setspecific): Likewise.
51287         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51288         (__pthread_getspecific): Likewise.
51289         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
51290         Likewise.
51291         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51292         (_pthread_cleanup_push_defer): Likewise.
51293         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51294         (_pthread_cleanup_pop_restore): Likewise.
51295         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51296         (pthread_setcancelstate): Likewise.
51297         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
51298         <bp-sym.h>.
51299         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
51300         (memchr): Do not use BP_SYM in weak_alias.
51301         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
51302         (fegetenv): Do not use BP_SYM in versioned symbols.
51303         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
51304         (fesetenv): Do not use BP_SYM in versioned symbols.
51305         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51306         (feupdateenv): Do not use BP_SYM in versioned symbols.
51307         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51308         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51309         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
51310         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
51311         (open64): Do not use BP_SYM in weak_alias.
51312         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
51313         (fegetenv): Do not use BP_SYM in versioned symbols.
51314         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
51315         (fesetenv): Do not use BP_SYM in versioned symbols.
51316         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51317         (feupdateenv): Do not use BP_SYM in versioned symbols.
51318         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
51319         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
51320         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
51321         (feraiseexcept): Do not use BP_SYM in versioned symbols.
51322         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51323         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51324         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
51325         <bp-sym.h>.
51326         (__libc_start_main): Do not use BP_SYM.
51327
51328 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
51329
51330         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
51331         redundant return line.
51332         (norm): Likewise.
51333         (denorm): Likewise.
51334         (dbl_mp): Likewise.
51335         (sub_magnitudes): Likewise.
51336         (__add): Likewise.
51337         (__sub): Likewise.
51338         (__mul): Likewise.
51339         (__inv): Likewise.
51340         (__dvd): Likewise.
51341         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
51342         (norm): Likewise.
51343         (denorm): Likewise.
51344         (dbl_mp): Likewise.
51345         (sub_magnitudes): Likewise.
51346         (__add): Likewise.
51347         (__sub): Likewise.
51348         (__mul): Likewise.
51349         (__inv): Likewise.
51350         (__dvd): Likewise.
51351
51352         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
51353         instead of __mul.
51354         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
51355         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
51356         (cc32): Likewise.
51357
51358         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
51359         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
51360         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
51361         of __mul for squares.
51362         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
51363         function
51364         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
51365         Likewise.
51366         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
51367         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
51368
51369 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
51370
51371         [BZ #13550]
51372         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
51373         code.
51374         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
51375         prototype or function definition.  Rename ubp_* variables and
51376         parameters.  Remove argv definitions conditional on
51377         [__BOUNDED_POINTERS__].
51378         * debug/backtrace.c (__backtrace): Do not use __unbounded.
51379         * elf/dl-runtime.c (_dl_fixup): Likewise.
51380         * include/set-hooks.h (RUN_HOOK): Likewise.
51381         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
51382         definition.
51383         * string/strcpy.c (strcpy): Do not use __unbounded.
51384         * sysdeps/generic/frame.h (struct layout): Likewise.
51385         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
51386         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
51387         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
51388         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
51389         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
51390         (__backtrace): Likewise.
51391         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
51392         use __ptrvalue.
51393         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
51394         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
51395         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
51396         Likewise.
51397         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
51398         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
51399         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
51400         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
51401         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
51402         Do not use __unbounded.
51403         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
51404         Rename __unboundedrlimits parameter to rlimits in prototype.
51405         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
51406         Do not use __unbounded.
51407         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
51408         not use __ptrvalue.
51409         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
51410         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
51411         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
51412         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
51413         __ptrvalue or __unbounded.
51414         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
51415         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
51416         use __unbounded.
51417         (__new_msgctl): Do not use __ptrvalue.
51418         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
51419         __unbounded.
51420         (__libc_msgrcv): Do not use __ptrvalue.
51421         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
51422         startup_info): Do not use __unbounded.
51423         (__libc_start_main): Likewise.  Rename ubp_* variables and
51424         parameters.  Remove argv definitions conditional on
51425         [__BOUNDED_POINTERS__].
51426         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
51427         __ptrvalue.
51428         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
51429         use __unbounded.
51430         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
51431         or __ptrvalue.
51432         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
51433         use __unbounded.
51434         (__new_shmctl): Do not use __ptrvalue.
51435         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
51436         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
51437         Likewise.
51438         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
51439         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
51440         (__libc_sigaction): Likewise.
51441         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
51442         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
51443         Likewise.
51444         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
51445
51446 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
51447
51448         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
51449
51450         * string/mempcpy.c: Implement by calling memcpy.
51451
51452 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
51453
51454         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
51455
51456         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
51457         evaluation.
51458
51459         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
51460         values in the mantissa.
51461
51462         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
51463         minimize writes to Z.
51464         (sub_magnitudes): Simplify code a bit.
51465
51466 2013-02-12  Roland McGrath  <roland@hack.frob.com>
51467
51468         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
51469         from the message.  The linker prefixes all warnings with that already.
51470
51471 2013-02-12  Andreas Schwab  <schwab@suse.de>
51472
51473         [BZ #15078]
51474         * posix/regexec.c (extend_buffers): Add parameter min_len.
51475         (check_matching): Pass minimum needed length.
51476         (clean_state_log_if_needed): Likewise.
51477         (get_subexp): Likewise.
51478         * posix/Makefile (tests): Add bug-regex34.
51479         (bug-regex34-ENV): Define.
51480         * posix/bug-regex34.c: New file.
51481
51482         [BZ #11561]
51483         * posix/regcomp.c (parse_bracket_exp): When looking up collating
51484         elements compare against the byte sequence of it, not its name.
51485         * posix/Makefile (tests): Add bug-regex35.
51486         (bug-regex35-ENV): Define.
51487         * posix/bug-regex35.c: New file.
51488
51489 2013-02-11  Tom de Vries  <tom@codesourcery.com>
51490
51491         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
51492         comment.
51493         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
51494         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
51495         (CHECK_EOL): Add undef.
51496
51497 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
51498
51499         * bits/stdlib-bsearch.h: New file.
51500         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
51501         * stdlib/stdlib.h: Likewise.
51502
51503 2013-02-11  Roland McGrath  <roland@hack.frob.com>
51504
51505         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
51506         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
51507         declaration.
51508         * manual/search.texi (Array Search Function): Add missing const in
51509         lfind prototype.
51510         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
51511         declaration to use rlim_t.
51512         (Basic Scheduling Functions): Remove erroneous const from
51513         sched_getparam prototype.  Remove erroneous * from
51514         sched_get_priority_max and sched_get_priority_min prototypes.
51515         (Resource Usage): Fix summary @comment on vtimes to refer to
51516         sys/vtimes.h rather than vtimes.h.
51517         Add missing *s in vtimes prototype.
51518         (Limits on Resources): Fix ulimit prototype to return long int.
51519         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
51520         prototypes to use long int rather than double.
51521         (BSD Random): Fix initstate and setstate to use char *, not void *.
51522         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
51523         prototype to make second argument 'struct aiocb64 *const[]'.
51524         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
51525         (Status of AIO Operations): Remove erroneous const in aio_return and
51526         aio_return64 prototypes.
51527         (Synchronizing I/O): Fix sync prototype to return void.
51528         * manual/startup.texi (Suboptions): Remove an erroneous const in
51529         getsubopt prototype.
51530         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
51531         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
51532         use size_t rather than int.
51533         (Scanning All Users): Likewise for getpwent_r.
51534         (Setting Groups): Add missing const to setgroups prototype.
51535         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
51536         * manual/socket.texi (Host Names): Fix gethostbyaddr and
51537         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
51538         'const void *' rather than 'const char *'.
51539         (Host Address Functions): Likewise for inet_ntop.
51540         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
51541         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
51542         ssize_t for return value.
51543         (Sending Data): Likewise for send, sendto, sendmsg.
51544         (Socket Option Functions): Add a missing const in setsockopt prototype.
51545         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
51546         use wchar_t for the argument.
51547         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
51548         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
51549         take no arguments.
51550         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
51551         double/float/long double for second argument.
51552         Fix return types of significand, significandf, significandl.
51553         * manual/filesys.texi (Setting Permissions): Use mode_t for second
51554         argument in fchmod prototype.
51555         (File Owner): Use uid_t and gid_t in fchown prototype.
51556         (File Times): Add const to utimes, futimes, and lutimes prototypes.
51557         (Making Special Files): Use mode_t and dev_t in mknod prototype.
51558         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
51559         use 'const struct dirent **' as argument types to CMP function pointer
51560         argument.
51561         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
51562         (File Times): Fix summary magic @comment for struct utimbuf and utime
51563         to refer to utime.h, not time.h.
51564         * manual/string.texi (Argz Functions): Add missing const in
51565         argz_extract and argz_next prototypes.
51566         (Finding Tokens in a String): Likewise for basename.
51567         (String/Array Comparison): Fix typo in wcscasecmp prototype.
51568         (Copying and Concatenation): Fix typo in wmemmove prototype.
51569         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
51570         (Signal Stack): Remove erroneous const in sigstack prototype.
51571         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
51572         prototype.
51573         (Simple Calendar Time): Likewise for stime.
51574         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
51575         prototype.
51576         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
51577         say sys/sysctl.h instead.
51578         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
51579         and vsyslog prototypes.
51580
51581 2013-02-11  Tom de Vries  <tom@codesourcery.com>
51582
51583         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
51584         Remove.
51585
51586 2013-02-11  Roland McGrath  <roland@hack.frob.com>
51587
51588         * misc/sys/mman.h: Fix typo in mremap comment.
51589
51590 2013-02-08  Roland McGrath  <roland@hack.frob.com>
51591
51592         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
51593         the '\0' terminator.
51594
51595 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
51596
51597         [BZ #13550]
51598         * debug/segfault.c: Don't include <bp-checks.h>.
51599         * sysdeps/generic/bp-checks.h: Remove file.
51600         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
51601         (__GETDENTS): Don't use CHECK_N.
51602         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
51603         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
51604         (__getgroups): Don't use CHECK_N.
51605         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
51606         (setgroups): Don't use CHECK_N.
51607         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
51608         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
51609         (__libc_msgrcv): Don't use CHECK_N.
51610         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
51611         (__libc_msgsnd): Don't use CHECK_N.
51612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
51613         <bp-checks.h>.
51614         (__libc_pread): Don't use CHECK_N.
51615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
51616         include <bp-checks.h>.
51617         (__libc_pread64): Don't use CHECK_N.
51618         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
51619         include <bp-checks.h>.
51620         (__libc_pwrite): Don't use CHECK_N.
51621         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
51622         include <bp-checks.h>.
51623         (__libc_pwrite64): Don't use CHECK_N.
51624         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
51625         <bp-checks.h>.
51626         (__libc_pread): Don't use CHECK_N.
51627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
51628         include <bp-checks.h>.
51629         (__libc_pread64): Don't use CHECK_N.
51630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
51631         include <bp-checks.h>.
51632         (__libc_pwrite): Don't use CHECK_N.
51633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
51634         include <bp-checks.h>.
51635         (__libc_pwrite64): Don't use CHECK_N.
51636         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
51637         (do_pread): Don't use CHECK_N.
51638         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
51639         (do_pread64): Don't use CHECK_N.
51640         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
51641         (do_pwrite): Don't use CHECK_N.
51642         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
51643         (do_pwrite64): Don't use CHECK_N.
51644         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
51645         (__libc_readv): Don't use CHECK_N.
51646         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
51647         (semop): Don't use CHECK_N.
51648         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
51649         <bp-checks.h>.
51650         (semtimedop): Don't use CHECK_N.
51651         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
51652         (__libc_pread): Don't use CHECK_N.
51653         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
51654         <bp-checks.h>.
51655         (__libc_pread64): Don't use CHECK_N.
51656         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
51657         <bp-checks.h>.
51658         (__libc_pwrite): Don't use CHECK_N.
51659         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
51660         <bp-checks.h>.
51661         (__libc_pwrite64): Don't use CHECK_N.
51662         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
51663         <bp-checks.h>.
51664         (__libc_msgrcv): Don't use CHECK_N.
51665         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
51666         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
51667         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
51668         (__libc_writev): Don't use CHECK_N.
51669
51670 2013-02-08  Roland McGrath  <roland@hack.frob.com>
51671
51672         * string/strcpy.c: Removed unused variable.
51673
51674         * Makeconfig (+sysdep-includes): Define with := rather than =.
51675         Use an existing include/ subdir of each sysdeps dir before it.
51676
51677 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
51678
51679         * nscd/connection.c (register_traced_file): Comment function.
51680         [HAVE_INOTIFY] (union __inev): Define.
51681         [HAVE_INOTIFY] (inotify_check_files): New function.
51682         [HAVE_INOTIFY] (clear_db_cache): Likewise.
51683         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
51684         clear_db_cache.
51685         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
51686
51687 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
51688
51689         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
51690         loaded if not already and that a failure is permanent.
51691
51692 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
51693
51694         [BZ #15006]
51695         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
51696         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
51697
51698 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
51699
51700         [BZ #13550]
51701         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
51702         (CHECK_1_NULL_OK): Likewise.
51703         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
51704         (__fxstat): Do not use CHECK_1.
51705         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
51706         <bp-checks.h>.
51707         (___fxstat64): Do not use CHECK_1.
51708         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
51709         <bp-checks.h>.
51710         (__fxstatat): Do not use CHECK_1.
51711         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
51712         <bp-checks.h>.
51713         (__fxstatat64): Do not use CHECK_1.
51714         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
51715         <bp-checks.h>.
51716         (__fxstat): Do not use CHECK_1.
51717         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
51718         <bp-checks.h>.
51719         (__fxstatat): Do not use CHECK_1.
51720         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
51721         <bp-checks.h>.
51722         (__getresgid): Do not use CHECK_1.
51723         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
51724         <bp-checks.h>.
51725         (__getresuid): Do not use CHECK_1.
51726         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
51727         <bp-checks.h>.
51728         (__lxstat): Do not use CHECK_1.
51729         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
51730         <bp-checks.h>.
51731         (__old_msgctl): Do not use CHECK_1.
51732         (__new_msgctl): Likewise.
51733         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
51734         <bp-checks.h>.
51735         (__new_setrlimit): Do not use CHECK_1.
51736         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
51737         <bp-checks.h>.
51738         (__old_shmctl): Do not use CHECK_1.
51739         (__new_shmctl): Likewise.
51740         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
51741         <bp-checks.h>.
51742         (__xstat): Do not use CHECK_1.
51743         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
51744         (__lxstat): Do not use CHECK_1.
51745         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
51746         <bp-checks.h>.
51747         (___lxstat64): Do not use CHECK_1.
51748         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
51749         (__old_msgctl): Do not use CHECK_1.
51750         (__new_msgctl): Likewise.
51751         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
51752         <bp-checks.h>.
51753         (__gettimeofday): Do not use CHECK_1.
51754         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
51755         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
51756         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
51757         <bp-checks.h>.
51758         (__gettimeofday): Do not use CHECK_1.
51759         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
51760         (__old_shmctl): Do not use CHECK_1_NULL_OK.
51761         (__new_shmctl): Do not use CHECK_1.
51762         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
51763         <bp-checks.h>.
51764         (do_sigtimedwait): Do not use CHECK_1.
51765         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
51766         <bp-checks.h>.
51767         (do_sigwaitinfo): Do not use CHECK_1.
51768         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
51769         <bp-checks.h>.
51770         (msgctl): Do not use CHECK_1.
51771         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
51772         <bp-checks.h>.
51773         (shmctl): Do not use CHECK_1.
51774         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
51775         (ustat): Do not use CHECK_1.
51776         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
51777         <bp-checks.h>.
51778         (__fxstat): Do not use CHECK_1.
51779         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
51780         <bp-checks.h>.
51781         (__fxstatat): Do not use CHECK_1.
51782         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
51783         <bp-checks.h>.
51784         (__lxstat): Do not use CHECK_1.
51785         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
51786         <bp-checks.h>.
51787         (__xstat): Do not use CHECK_1.
51788         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
51789         (__xstat): Do not use CHECK_1.
51790         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
51791         (___xstat64): Do not use CHECK_1.
51792
51793         [BZ #13550]
51794         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
51795         definitions.
51796         (CHECK_BOUNDS_HIGH): Likewise.
51797         * string/strcpy.c: Do not include <bp-checks.h>.
51798         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
51799
51800 2013-02-07  Roland McGrath  <roland@hack.frob.com>
51801
51802         * nscd/nscd-client.h (__nscd_drop_map_ref):
51803         Add __attribute__ ((unused)).
51804         * nis/nss-nisplus.h (niserr2nss): Likewise.
51805
51806         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
51807         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
51808
51809         * csu/libc-tls.c (init_static_tls, init_slotinfo):
51810         Remove inline keyword.
51811         * include/rounding-mode.h (round_away): Likewise.
51812         * libio/wfileops.c (adjust_wide_data): Likewise.
51813         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
51814         (__m128i_strloadu_tolower): Likewise.
51815         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
51816         (__m128i_strloadu_tolower): Likewise.
51817         * time/mktime.c (ydhms_diff): Likewise.
51818         * locale/elem-hash.h (elem_hash): Likewise.
51819         * locale/setlocale.c (setdata): Likewise.
51820         * posix/regex_internal.h (re_string_char_size_at): Likewise.
51821         (re_string_wchar_at): Likewise.
51822         (bitset_not, bitset_merge, bitset_mask): Likewise.
51823         [!(__GNUC__ > 3)] (inline): Remove macro.
51824         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
51825         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
51826         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
51827         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
51828         * string/memcmp.c (memcmp_bytes): Likewise.
51829         * locale/programs/locarchive.c (compute_hashval): Likewise.
51830         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
51831         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
51832         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
51833         * nss/getent.c (print_rpc, print_protocols): Likewise.
51834         (print_passwd, print_group, print_aliases): Likewise.
51835         * nis/nss-nisplus.h (niserr2nss): Likewise.
51836         * nscd/connections.c (restart_p): Likewise.
51837         Change return type to bool.
51838
51839 2013-02-05  Roland McGrath  <roland@hack.frob.com>
51840
51841         * Makeconfig (all-Depend-files): Add existing
51842         $(sorted-subdirs:=/Depend) files.
51843         (all-subdirs): Remove nss.
51844         * sysdeps/unix/inet/Subdirs: Add it here instead.
51845         * hesiod/Depend: New file.
51846
51847         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
51848         instead of calling alloca.
51849
51850         * io/lseek.c (__lseek): Rename to __libc_lseek.
51851         Define __lseek as an alias.
51852
51853         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
51854
51855 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
51856
51857         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
51858         else clause and remove check for non-standard endianness.
51859
51860 2013-02-04  David S. Miller  <davem@davemloft.net>
51861
51862         * sysdeps/sparc/fpu/libm-test-ulps: Update.
51863
51864 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
51865
51866         [BZ #13550]
51867         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
51868         (__ubp_memchr): Remove prototype.
51869         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
51870         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
51871         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
51872         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
51873         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
51874         Remove alias.
51875         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
51876         (__ubp_memchr): Likewise.
51877         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
51878         (__ubp_memchr): Likewise.
51879         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
51880         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
51881         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
51882         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
51883         CHECK_STRING.
51884         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
51885         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
51886         (__getcwd): Do not use CHECK_STRING.
51887         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
51888         <bp-checks.h>.
51889         (__real_chown): Do not use CHECK_STRING.
51890         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
51891         <bp-checks.h>.
51892         (fchownat): Do not use CHECK_STRING.
51893         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
51894         CHECK_STRING.
51895         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
51896         <bp-checks.h>.
51897         (__lchown): Do not use CHECK_STRING.
51898         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
51899         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
51900         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
51901         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
51902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
51903         include <bp-checks.h>.
51904         (truncate64): Do not use CHECK_STRING.
51905         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
51906         <bp-checks.h>.
51907         (__real_chown): Do not use CHECK_STRING.
51908         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
51909         <bp-checks.h>.
51910         (__lchown): Do not use CHECK_STRING.
51911         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
51912         <bp-checks.h>.
51913         (__chown): Do not use CHECK_STRING.
51914         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
51915         <bp-checks.h>.
51916         (truncate64): Do not use CHECK_STRING.
51917         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
51918         Likewise.
51919         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
51920         (__xmknod): Do not use CHECK_STRING.
51921         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
51922         <bp-checks.h>.
51923         (__xmknodat): Do not use CHECK_STRING.
51924         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
51925         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
51926
51927 2013-02-04  Andreas Schwab  <schwab@suse.de>
51928
51929         [BZ #14142]
51930         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
51931         * include/netdb.h: Likewise for h_errno.
51932         * elf/tst-stackguard1.c: Include <tls.h>.
51933
51934 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
51935
51936         * elf/link.h (struct link_map): Extend the l_addr comment.
51937         * include/link.h (struct link_map): Likewise.
51938
51939 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
51940
51941         [BZ #13550]
51942         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
51943         (BOUNDED_1): Remove macro.
51944         * debug/backtrace.c: Don't include <bp-checks.h>.
51945         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
51946         (__backtrace): Likewise.
51947         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
51948         <bp-checks.h>.
51949         (__backtrace): Don't use BOUNDED_1.
51950         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
51951         <bp-checks.h>.
51952         (__backtrace): Don't use BOUNDED_1.
51953         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
51954         (__backtrace): Don't use BOUNDED_1.
51955         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
51956         (shmat): Don't use BOUNDED_N.
51957
51958 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
51959
51960         [BZ #13550]
51961         * sysdeps/generic/bp-start.h: Remove file.
51962         * csu/libc-start.c: Don't include <bp-start.h>.
51963         (LIBC_START_MAIN): Set up __environ directly instead of using
51964         INIT_ARGV_and_ENVIRON.
51965         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
51966         <bp-start.h>.
51967
51968         [BZ #13550]
51969         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
51970         definitions.
51971         (CHECK_FCNTL): Likewise.
51972         (CHECK_N_PAGES): Likewise.
51973
51974         [BZ #13550]
51975         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
51976         definitions.
51977         (CHECK_SIGSET_NULL_OK): Likewise.
51978         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
51979         <bp-checks.h>.
51980         (sigpending): Don't use CHECK_SIGSET.
51981         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
51982         <bp-checks.h>.
51983         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
51984         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
51985         <bp-checks.h>.
51986         (do_sigsuspend): Don't use CHECK_SIGSET.
51987         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
51988         use CHECK_SIGSET.
51989         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
51990         (do_sigwait): Don't use CHECK_SIGSET.
51991         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
51992         use CHECK_SIGSET.
51993         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
51994         include <bp-checks.h>.
51995         (sigpending): Don't use CHECK_SIGSET.
51996         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
51997         include <bp-checks.h>.
51998         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
51999         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
52000         <bp-checks.h>.
52001         (sigpending): Don't use CHECK_SIGSET.
52002         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
52003         <bp-checks.h>.
52004         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52005
52006         [BZ #13550]
52007         * sysdeps/generic/bp-semctl.h: Remove file.
52008         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
52009         <bp-checks.h> and <bp-semctl.h>.
52010         (__old_semctl): Don't use CHECK_SEMCTL.
52011         (__new_semctl): Likewise.
52012         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
52013         and <bp-semctl.h>.
52014         (__old_semctl): Don't use CHECK_SEMCTL.
52015         (__new_semctl): Likewise.
52016         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
52017         <bp-checks.h> and <bp-semctl.h>.
52018         (__old_semctl): Don't use CHECK_SEMCTL.
52019         (__new_semctl): Likewise.
52020         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
52021         <bp-checks.h> and <bp-semctl.h>.
52022         (semctl): Don't use CHECK_SEMCTL.
52023
52024         [BZ #13550]
52025         * Makerules (elide-bp-thunks): Remove variable.
52026         (elide-routines.oS): Don't use $(elide-bp-thunks).
52027         (elide-routines.os): Likewise.
52028         (elide-routines.o): Likewise.
52029         (elide-routines.op): Likewise.
52030         (elide-routines.og): Likewise.
52031         (objects): Don't use $(bp-thunks).
52032         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
52033         include.
52034         (common-generated): Do not add s-proto-bp.d.
52035         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
52036         (int): Likewise.
52037         (typ): Likewise.
52038         Do not generate makefile rules for bounded-pointer thunks.
52039         * sysdeps/generic/bp-thunks.h: Remove file.
52040         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
52041         * sysdeps/unix/s-proto-bp.S: Likewise.
52042
52043         [BZ #15062]
52044         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
52045         parts of result separately when argument is not close to line from
52046         -i to i and one part of argument is small.
52047         * math/k_casinhf.c (__kernel_casinhf): Likewise.
52048         * math/k_casinhl.c (__kernel_casinhl): Likewise.
52049         * math/libm-test.inc (cacos_test): Add more tests.
52050         (casin_test): Likewise.
52051         (casinh_test): Likewise.
52052         * sysdeps/i386/fpu/libm-test-ulps: Update.
52053         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52054
52055 2013-01-31  David S. Miller  <davem@davemloft.net>
52056
52057         * po/de.po: Update from translation team.
52058
52059 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
52060
52061         * time/tzfile.c: Include stdint.h for SIZE_MAX.
52062
52063 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
52064
52065         * configure.in (_AC_PROG_CC_C89): New definition.
52066         * configure: Regenerate.
52067
52068         * configure.in (AC_PROG_CPP): New definition.
52069         * configure: Regenerate.
52070
52071 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52072
52073         * debug/tst-backtrace.h: New file.
52074         * debug/tst-backtrace2.c: Include tst-backtrace.h.
52075         (ret): Remove variable.
52076         (x): Likewise.
52077         (FAIL): Remove macro.
52078         (NO_INLINE): Likewise.
52079         (fn1): Use match function instead of strstr.
52080         * debug/tst-backtrace3.c: Include tst-backtrace.h.
52081         (ret): Remove variable.
52082         (x): Likewise.
52083         (FAIL): Remove macro.
52084         (NO_INLINE): Likewise.
52085         (fn): Use match function instead of strstr.
52086         * debug/tst-backtrace4.c: Include tst-backtrace.h.
52087         (ret): Remove variable.
52088         (x): Likewise.
52089         (FAIL): Remove macro.
52090         (NO_INLINE): Likewise.
52091         (handle_signal): Use match function instead of strstr.
52092         * debug/tst-backtrace5.c: Include tst-backtrace.h.
52093         (ret): Remove variable.
52094         (x): Likewise.
52095         (FAIL): Remove macro.
52096         (NO_INLINE): Likewise.
52097         (handle_signal): Use match function instead of strstr.
52098
52099 2013-01-23  Roland McGrath  <roland@hack.frob.com>
52100
52101         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
52102
52103 2013-01-23  David S. Miller  <davem@davemloft.net>
52104
52105         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
52106         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
52107         argument of CAS if possible.
52108         * sysdeps/sparc/sparc64/bits/atomic.h
52109         (__arch_compare_and_exchange_val_32_acq): Likewise.
52110         (__arch_compare_and_exchange_val_64_acq): Likewise.
52111
52112 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
52113
52114         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
52115         * sysdeps/posix/ulimit.c: ... this.
52116         Include <limits.h>.
52117         * sysdeps/unix/bsd/ulimit.c: Remove file.
52118
52119 2013-01-23  Adam Conrad  <adconrad@0c3.net>
52120
52121         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
52122         (LDFLAGS-tst-array5): Likewise.
52123
52124 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52125
52126         [BZ #15036]
52127         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
52128         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
52129         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
52130         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
52131
52132 2013-01-21  David S. Miller  <davem@davemloft.net>
52133
52134         * sysdeps/sparc/backtrace.c: New file.
52135         * sysdeps/sparc/sparc32/backtrace.h: New file.
52136         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
52137         * sysdeps/sparc/sparc64/backtrace.h: New file.
52138         * sysdeps/sparc/sparc64/backtrace.c: Delete.
52139         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
52140         -funwind-tables.
52141
52142 2013-01-21  Andreas Schwab  <schwab@suse.de>
52143
52144         [BZ #15020]
52145         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
52146         closed its stdout.
52147
52148 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
52149
52150         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
52151         "mpa2.h".
52152         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52153
52154 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
52155             Mark Mitchell  <mark@codesourcery.com>
52156             Tom de Vries  <tom@codesourcery.com>
52157             Paul Pluzhnikov  <ppluzhnikov@google.com>
52158
52159         * debug/tst-backtrace2.c: New file.
52160         * debug/tst-backtrace3.c: Likewise.
52161         * debug/tst-backtrace4.c: Likewise.
52162         * debug/tst-backtrace5.c: Likewise.
52163         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
52164         (CFLAGS-tst-backtrace3.c): Likewise.
52165         (CFLAGS-tst-backtrace4.c): Likewise.
52166         (CFLAGS-tst-backtrace5.c): Likewise.
52167         (LDFLAGS-tst-backtrace2): Likewise.
52168         (LDFLAGS-tst-backtrace3): Likewise.
52169         (LDFLAGS-tst-backtrace4): Likewise.
52170         (LDFLAGS-tst-backtrace5): Likewise.
52171         (tests): Add new tests tst-backtrace2, tst-backtrace3,
52172         tst-backtrace4 and tst-backtrace5.
52173
52174 2013-01-18  Anton Blanchard  <anton@samba.org>
52175             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52176
52177         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
52178         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
52179         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
52180         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
52181         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
52182         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
52183         "+r" and remove output regs list as redundant.  Add explicit inline
52184         asm to specify register of return val to work around compiler codegen
52185         bug.  Remove (int) cast on return value.  Add return type parameter to
52186         use in macro so that this macro does not truncate return value for
52187         64-bit values.
52188         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
52189         pass to INTERNAL_VSYSCALL_NCS.
52190         (INLINE_VSYSCALL): Add 'long int' as return type to
52191         INTERNAL_VSYSCALL_NCS macro invocation.
52192         (INTERNAL_VSYSCALL): Add 'long int' as return type to
52193         INTERNAL_VSYSCALL_NCS macro invocation.
52194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
52195
52196 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
52197
52198         [BZ #14496]
52199         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
52200         Fix application of SIMD FP exception mask.
52201
52202         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
52203         mp_no from a power of two.
52204         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
52205         __mpexp_twomm1.  Use __pow_mp.
52206
52207         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
52208         multiplication.
52209
52210 2013-01-17  David S. Miller  <davem@davemloft.net>
52211
52212         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52213
52214 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52215
52216         [BZ #15023]
52217         * include/complex.h: Condition contents on [!_COMPLEX_H].
52218         (__kernel_casinhf): New prototype.
52219         (__kernel_casinh): Likewise.
52220         (__kernel_casinhl): Likewise.
52221         * math/Makefile (libm_calls): Add k_casinh.
52222         * math/k_casinh.c: New file.
52223         * math/k_casinhf.c: Likewise.
52224         * math/k_casinhl.c: Likewise.
52225         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
52226         finite nonzero arguments.
52227         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
52228         finite nonzero arguments.
52229         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
52230         finite nonzero arguments.
52231         * math/s_casinh.c: Do not include <float.h>.
52232         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
52233         * math/s_casinhf.c: Do not include <float.h>.
52234         (__casinhf): Move code for finite nonzero arguments to
52235         k_casinhf.c.
52236         * math/s_casinhl.c: Do not include <float.h>.
52237         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
52238         redefine.
52239         (__casinhl): Move code for finite nonzero arguments to
52240         k_casinhl.c.
52241         * math/libm-test.inc (cacos_test): Add more tests.
52242         * sysdeps/i386/fpu/libm-test-ulps: Update.
52243         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52244
52245 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
52246
52247         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
52248         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
52249         [!HAVE_MREMAP]: Remove [defined linux] case.
52250         * malloc/arena.c: Do not include <malloc-sysdep.h>.
52251
52252 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
52253
52254         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
52255
52256 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
52257
52258         * elf/elf.h (R_386_SIZE32): New relocation.
52259         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
52260         R_386_SIZE32.
52261         (elf_machine_rela): Likewise.
52262         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
52263         R_X86_64_SIZE64 and R_X86_64_SIZE32.
52264
52265 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52266
52267         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
52268         (FP_FAST_FMA): Do not define.
52269         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
52270         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
52271         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
52272         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
52273         !_SOFT_FLOAT]: Likewise.
52274         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
52275         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
52276         value.
52277         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
52278         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
52279         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
52280         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
52281         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
52282         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
52283         file.
52284
52285 2013-01-16  Andreas Schwab  <schwab@suse.de>
52286
52287         [BZ #14327]
52288         * include/stdlib.h (__mktemp): Add declaration.
52289         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
52290         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
52291
52292 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
52293
52294         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
52295         definitions.
52296         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
52297         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
52298         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
52299         definitions here.
52300         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
52301         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
52302         definitions.
52303         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
52304         and ONE.
52305         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
52306         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
52307         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
52308         definitions.
52309         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
52310         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
52311         definitions.
52312         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
52313
52314         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
52315
52316 2013-01-15  David S. Miller  <davem@davemloft.net>
52317
52318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52319         trunc{,f} to libm-sysdep_routes.
52320         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
52322         file.
52323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
52324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
52325         file.
52326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
52327         file.
52328         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
52329         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
52330         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
52331         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
52332         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
52333         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
52334         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
52335         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
52336
52337         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52338         nearbyint{,f} to libm-sysdep_routes.
52339         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52340         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
52341         New file.
52342         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
52343         file.
52344         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
52345         New file.
52346         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
52347         file.
52348         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
52349         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
52350         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
52351         file.
52352         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
52353         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
52354         file.
52355         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
52356         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
52357         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
52358
52359         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
52360         libc_feholdexcept and libc_fesetenv.
52361
52362 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
52363
52364         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
52365
52366 2013-01-14  David S. Miller  <davem@davemloft.net>
52367
52368         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
52369         (SPARC_ASM_VIS2_IFUNC): Likewise.
52370         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
52371         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
52372         use of 'siam' instruction.
52373         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
52374         Likewise.
52375         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
52376         Likewise.
52377         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
52378         Likewise.
52379         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
52380         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
52381         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
52382         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
52383         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
52384         file.
52385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
52386         file.
52387         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
52388         file.
52389         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
52390         file.
52391         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
52392         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
52393         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
52394         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
52395         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
52396         new VIS2 routines.
52397         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
52398         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
52399         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
52400         Likewise.
52401         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
52402         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
52403         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
52404         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
52405         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
52406         routines to libm-sysdep_routines.
52407         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52408
52409         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52410         fdim/fdimf to libm-sysdep_routines.
52411         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
52412         file.
52413         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
52414         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
52415         file.
52416         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
52417         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
52418         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
52419         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
52420         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
52421         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
52422         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
52423
52424 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
52425
52426         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
52427         to optimize copies.
52428
52429         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
52430         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
52431         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52432
52433         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
52434         local variable MPTWO.
52435         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
52436         Likewise.
52437
52438 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52439
52440         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
52441         GLOB_NOESCAPE.
52442
52443 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52444
52445         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
52446
52447 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
52448
52449         * manual/pattern.texi (glob_t): Document gl_flags.
52450         (glob64_t): Likewise.
52451
52452 2013-01-11  David S. Miller  <davem@davemloft.net>
52453
52454         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
52455         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
52456         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
52457         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
52458         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
52459         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
52460         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
52461         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
52462         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
52463         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
52464         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
52465         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
52466         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
52467
52468         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
52469         sparc V9 rather than using V8 code.
52470         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52471         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52472
52473         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
52474         Move to...
52475         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
52476         Here.
52477
52478 2013-01-11  Roland McGrath  <roland@hack.frob.com>
52479
52480         [BZ #14941]
52481         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
52482         not in the main loop.
52483         * configure: Regenerated.
52484
52485 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
52486
52487         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
52488         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
52489         to just #else.
52490         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
52491         [!__GLIBC_HAVE_LONG_LONG] case.
52492         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
52493         condition to just #else.
52494         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
52495         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
52496         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
52497         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
52498         unconditional.
52499         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
52500         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
52501         #elif condition to just #else.
52502         * sysdeps/unix/sysv/linux/sys/sysmacros.h
52503         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
52504         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
52505         #elif condition to just #else.
52506
52507 2013-01-11  Steve Ellcey  <sellcey@mips.com>
52508
52509         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
52510         (EF_MIPS_ARCH_64): Fix value.
52511         (EF_MIPS_ARCH_32R2): New.
52512         (EF_MIPS_ARCH_64R2): New.
52513
52514 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
52515
52516         * Makeconfig (+link-pie-before-libc): New.
52517         (+link-pie-after-libc): Likewise.
52518         (+link-pie-tests): Likewise.
52519         (+link-pie): Rewritten.
52520         (link-before-libc): Remove $(config-LDFLAGS).
52521         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
52522         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
52523         (config-LDFLAGS): Renamed to ...
52524         (rtld-LDFLAGS): This.
52525         (rtld-tests-LDFLAGS): New macro.
52526         (link-libc-rpath-link): Likewise.
52527         (link-libc-tests-rpath-link): Likewise.
52528         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
52529         (link-libc): Prepand $(link-libc-rpath-link).
52530         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
52531         (test-program-prefix): New macro.
52532         (test-via-rtld-prefix): Likewise.
52533         (test-program-cmd): Likewise.
52534         (host-test-program-cmd): Likewise.
52535         * Makefile ($(common-objpfx)testrun.sh): Replace
52536         $(run-program-prefix) with $(test-program-prefix).
52537         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
52538         $(rtld-LDFLAGS).
52539         ($(common-objpfx)shlib.lds): Likewise.
52540         (build-module-helper): Likewise.
52541         ($(common-objpfx)format.lds): Likewise.
52542         * Rules (binaries-pie-tests): New.
52543         (binaries-pie-notests): Likewise.
52544         (binaries-pie): Rewritten.
52545         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
52546         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
52547         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
52548         (make-test-out): Replace $(host-built-program-cmd) with
52549         $(host-test-program-cmd).
52550         * config.make.in (build-hardcoded-path-in-tests): New variable.
52551         * configure.in (--enable-hardcoded-path-in-tests): New configure
52552         option.
52553         (hardcoded_path_in_tests): New AC_SUBST.
52554         * configure: Regenerated.
52555         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
52556         $(built-program-cmd) with $(test-program-cmd).
52557         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
52558         (test_program_cmd): This.
52559         * elf/Makefile ($(objpfx)order.out): Run test with
52560         $(test-program-prefix).
52561         ($(objpfx)order2.out): Likewise.
52562         ($(objpfx)tst-initorder.out): Likewise.
52563         ($(objpfx)tst-initorder2.out): Likewise.
52564         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
52565         $(test-program-cmd).
52566         ($(objpfx)tst-array1-static.out): Likewise.
52567         ($(objpfx)tst-array2.out): Likewise.
52568         ($(objpfx)tst-array3.out): Likewise.
52569         ($(objpfx)tst-array4.out): Likewise.
52570         ($(objpfx)tst-array5.out): Likewise.
52571         ($(objpfx)tst-array5-static.out): Likewise.
52572         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
52573         $(test-program-cmd).
52574         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
52575         $(run-program-prefix) with $(test-program-prefix).
52576         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
52577         (test_program_prefix): This.
52578         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
52579         $(run-program-prefix) with $(test-program-prefix).
52580         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
52581         (test_program_prefix): This.
52582         * iconvdata/tst-tables.sh: Likewise.
52583         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
52584         $(run-program-prefix) with $(test-program-prefix).
52585         ($(objpfx)tst-translit.out): Likewise.
52586         ($(objpfx)tst-gettext2.out): Likewise.
52587         ($(objpfx)tst-gettext4.out): Likewise.
52588         ($(objpfx)tst-gettext6.out): Likewise.
52589         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
52590         (test_program_prefix): This.
52591         * intl/tst-gettext2.sh: Likewise.
52592         * intl/tst-gettext4.sh  Likewise.
52593         * intl/tst-gettext6.sh: Likewise.
52594         * intl/tst-translit.sh: Likewise.
52595         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
52596         with $(test-program-cmd).
52597         * libio/Makefile ($(objpfx)test-freopen.out): Replace
52598         $(run-program-prefix) with $(test-program-prefix).
52599         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
52600         (test_program_prefix): This.
52601         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
52602         $(run-program-prefix) with $(test-program-prefix).
52603         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
52604         (test_program_prefix): This.
52605         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
52606         * posix/Makefile ($(objpfx)globtest.out): Replace
52607         $(run-via-rtld-prefix) and $(test-wrapper) with
52608         $(test-program-prefix) and $(test-via-rtld-prefix).
52609         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
52610         $(test-program-prefix).
52611         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
52612         $(host-test-program-cmd).
52613         (tst-spawn-ARGS): Likewise.
52614         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
52615         $(test-program-prefix).
52616         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
52617         (test_via_rtld_prefix): This.
52618         (test_wrapper): Renamed to ...
52619         (test_program_prefix): This.
52620         (run_program_prefix): Replaced by test_program_prefix.
52621         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
52622         (test_program_prefix): This.
52623         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
52624         with $(host-test-program-cmd).
52625         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
52626         $(run-program-prefix) with $(test-program-prefix).
52627         ($(objpfx)tst-printf.out): Likewise.
52628         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
52629         $(test-program-cmd).
52630         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
52631         (test_program_prefix): This.
52632         * stdio-common/tst-unbputc.sh: Likewise.
52633         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
52634         $(run-program-prefix) with $(test-program-prefix).
52635         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
52636         (test_program_prefix): This.
52637         * string/Makefile ($(objpfx)tst-svc.out):  Replace
52638         $(built-program-cmd) with $(test-program-cmd).
52639
52640 2013-01-11  Andreas Jaeger  <aj@suse.de>
52641
52642         [BZ #15003]
52643         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
52644         value. Sync with Linux 3.7.
52645
52646 2013-01-10  David S. Miller  <davem@davemloft.net>
52647
52648         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
52649         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52650         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52651
52652 2013-01-10  Roland McGrath  <roland@hack.frob.com>
52653
52654         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
52655         never set.
52656         * configure: Regenerated.
52657
52658 2013-01-10  David S. Miller  <davem@davemloft.net>
52659
52660         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
52661         sparc V9 rather than using V8 code.
52662         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
52663         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
52664
52665 2013-01-10  Roland McGrath  <roland@hack.frob.com>
52666
52667         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
52668         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
52669         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
52670         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
52671         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
52672         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
52673         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
52674         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
52675         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
52676         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
52677         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
52678         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
52679         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
52680         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
52681         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
52682         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
52683         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
52684         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
52685         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
52686         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
52687         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
52688         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
52689         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
52690         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
52691         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
52692         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
52693         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
52694
52695 2013-01-10  David S. Miller  <davem@davemloft.net>
52696
52697         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52698
52699 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
52700
52701         * posix/Makefile (tests-static): New variable.
52702         (tests): Add $(tests-static).
52703         (tst-exec-static-ARGS): New variable.
52704         (tst-spawn-static-ARGS): Likewise.
52705         * posix/tst-exec-static.c: New file.
52706         * posix/tst-spawn-static.c: Likewise.
52707         * posix/tst-exec.c: Support run directly.
52708         * posix/tst-spawn.c: Likewise.
52709
52710 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
52711
52712         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
52713         long.
52714         * math/bits/mathcalls.h (llrint): Likewise.
52715         (llround): Likewise.
52716         * stdlib/stdlib.h (struct drand48_data): Likewise.
52717         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
52718         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
52719         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
52720         Likewise.
52721         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
52722         Likewise.
52723         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
52724         (elf_greg_t): Likewise.
52725         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
52726         (__jmp_buf): Likewise.
52727         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
52728         definitions.
52729         (llrint): Likewise, for all definitions.
52730         (llrintl): Likewise.
52731
52732         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
52733         Remove [__GNUC__] condition.
52734         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
52735         condition to just [__USE_ISOC99].
52736         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
52737
52738 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
52739
52740         [BZ #14200]
52741         * sysdeps/unix/sysv/linux/x86/bits/environments.h
52742         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
52743         defined.
52744         (_POSIX_V6_ILP32_OFF32): Likewise.
52745         (_XBS5_ILP32_OFF32): Likewise.
52746         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
52747         (__ILP32_OFFBIG_LDFLAGS): Likewise.
52748
52749 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
52750
52751         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
52752
52753         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
52754         doubles __mpexp_twomm1.  Adjust usage.
52755         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
52756         Remove.
52757
52758 2013-01-10  Andreas Schwab  <schwab@suse.de>
52759
52760         [BZ #14964]
52761         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
52762         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
52763
52764 2013-01-09  David S. Miller  <davem@davemloft.net>
52765
52766         [BZ #15003]
52767         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
52768         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
52769         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
52770         (TCP_FASTOPEN): Define.
52771         (tcp_repair_opt): New structure.
52772         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
52773         enum values.
52774         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
52775         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
52776         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
52777         (tcp_cookie_transactions): New structure.
52778
52779 2013-01-09  Anton Blanchard  <anton@samba.org>
52780
52781         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
52782         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
52783         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
52784         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
52785
52786 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
52787
52788         * include/features.h (__USE_ANSI): Remove.
52789
52790 2013-01-09  Roland McGrath  <roland@hack.frob.com>
52791
52792         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
52793
52794         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
52795
52796 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
52797
52798         * sysdeps/s390/fpu/libm-test-ulps: Update.
52799
52800         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52801
52802         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
52803         (__acr): Likewise.
52804         (__cpy): Likewise.
52805         (norm): Likewise.
52806         (denorm): Likewise.
52807         (__mp_dbl): Likewise.
52808         (__dbl_mp): Likewise.
52809         (add_magnitudes): Likewise.
52810         (sub_magnitudes): Likewise.
52811         (__add): Likewise.
52812         (__sub): Likewise.
52813         (__mul): Likewise.
52814         (__inv): Likewise.
52815         (__dvd): Likewise.
52816         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
52817         (__acr): Likewise.
52818         (__cpy): Likewise.
52819         (norm): Likewise.
52820         (denorm): Likewise.
52821         (__mp_dbl): Likewise.
52822         (__dbl_mp): Likewise.
52823         (add_magnitudes): Likewise.
52824         (sub_magnitudes): Likewise.
52825         (__add): Likewise.
52826         (__sub): Likewise.
52827         (__mul): Likewise.
52828         (__inv): Likewise.
52829         (__dvd): Likewise.
52830         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
52831         (__acr): Likewise.
52832         (__cpy): Likewise.
52833         (norm): Likewise.
52834         (denorm): Likewise.
52835         (__mp_dbl): Likewise.
52836         (__dbl_mp): Likewise.
52837         (add_magnitudes): Likewise.
52838         (sub_magnitudes): Likewise.
52839         (__add): Likewise.
52840         (__sub): Likewise.
52841         (__mul): Likewise.
52842         (__inv): Likewise.
52843         (__dvd): Likewise.
52844
52845 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
52846
52847         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
52848         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
52849         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
52850         2 && __USE_EXTERN_INLINES]: Likewise.
52851
52852 2013-01-08  Andreas Jaeger  <aj@suse.de>
52853
52854         [BZ# 14985]
52855         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
52856         Remove.
52857         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
52858         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
52859
52860 2013-01-07  Anton Blanchard  <anton@samba.org>
52861
52862         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
52863         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
52864         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
52865         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
52866         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
52867         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
52868         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
52869         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
52870         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
52871         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
52872         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
52873         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
52874         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
52875         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
52876         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
52877         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
52878         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
52879         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
52880         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
52881         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
52882         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
52883         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
52884         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
52885         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
52886         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
52887         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
52888         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
52889         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
52890         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
52891         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
52892         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
52893         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52894         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
52895         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
52896         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
52897         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
52898         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
52899         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
52900         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
52901         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
52902         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
52903         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
52904         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
52905
52906 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
52907
52908         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
52909         (__MALLOC_PMT): Likewise.
52910         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
52911         [__GNUC__], only on [_LIBC].
52912         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
52913         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
52914         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
52915         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
52916         forward declaration.
52917         (realloc_hook_ini): Likewise.
52918         (memalign_hook_ini): Likewise.
52919         (__libc_memalign): Do not use __MALLOC_PMT in variable
52920         declaration.
52921         (__libc_valloc): Likewise.
52922         (__libc_pvalloc): Likewise.
52923         (__libc_calloc): Likewise.
52924         (__posix_memalign): Likewise.
52925
52926         [BZ #14996]
52927         * math/s_casinh.c: Include <float.h>.
52928         (__casinh): Do not do computation with squaring and square root
52929         for large arguments.
52930         * math/s_casinhf.c: Include <float.h>.
52931         (__casinhf): Do not do computation with squaring and square root
52932         for large arguments.
52933         * math/s_casinhl.c: Include <float.h>.
52934         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
52935         (__casinhl): Do not do computation with squaring and square root
52936         for large arguments.
52937         * math/libm-test.inc (casin_test): Add more tests.
52938         (casinh_test): Likewise.
52939         * sysdeps/i386/fpu/libm-test-ulps: Update.
52940         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52941
52942 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
52943
52944         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
52945         (__x86_64_raw_data_cache_size): Likewise.
52946         (__x86_64_data_cache_size_half): Likewise.
52947         (__x86_64_raw_data_cache_size_half): Likewise.
52948         (__x86_64_shared_cache_size): Likewise.
52949         (__x86_64_raw_shared_cache_size): Likewise.
52950         (__x86_64_shared_cache_size_half): Likewise.
52951         (__x86_64_raw_shared_cache_size_half): Likewise.
52952         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
52953         to ...
52954         (__x86_data_cache_size): This.
52955         (__x86_64_raw_data_cache_size): Renamed to ...
52956         (__x86_raw_data_cache_size): This.
52957         (__x86_64_data_cache_size_half): Renamed to ...
52958         (__x86_data_cache_size_half): This.
52959         (__x86_64_raw_data_cache_size_half): Renamed to ...
52960         (__x86_raw_data_cache_size_half): This.
52961         (__x86_64_shared_cache_size): Renamed to ...
52962         (__x86_shared_cache_size): This.
52963         (__x86_64_raw_shared_cache_size): Renamed to ...
52964         (__x86_raw_shared_cache_size): This.
52965         (__x86_64_shared_cache_size_half): Renamed to ...
52966         (__x86_shared_cache_size_half): This.
52967         (__x86_64_raw_shared_cache_size_half): Renamed to ...
52968         (__x86_raw_shared_cache_size_half): This.
52969         * sysdeps/x86_64/memcpy.S: Updated.
52970         * sysdeps/x86_64/memset.S: Likewise.
52971         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
52972         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
52973         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
52974
52975 2013-01-04  David S. Miller  <davem@davemloft.net>
52976
52977         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52978
52979 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
52980
52981         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
52982         1 to avoid redefinition warning.
52983         (__USE_GNU): Don't define.
52984         (init_signaling_nan): Protoize.
52985
52986         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52987
52988 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
52989
52990         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
52991         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
52992         (__cpymn): Likewise.
52993         (norm): Remove commented code.
52994         (denorm): Likewise.
52995         (__mp_dbl): Likewise.
52996         (__inv): Likewise.
52997         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
52998         (__cpymn): Likewise.
52999         (norm): Remove commented code.
53000         (denorm): Likewise.
53001         (__mp_dbl): Likewise.
53002         (__inv): Likewise.
53003
53004         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
53005         mp_no value for 1.0 and 2.0.
53006         (norm): Use RADIXI instead of radixi.d.
53007         (denorm): Likewise.
53008         (__mul): Use 0.0 instead of zero.d.
53009         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
53010         mp_no value for 1.0 and 2.0.
53011         (norm): Use RADIXI instead of radixi.d.
53012         (denorm): Likewise.
53013         (__mul): Use 0.0 instead of zero.d.
53014
53015 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
53016
53017         [BZ #14994]
53018         * math/s_casinh.c (__casinh): Reduce finite argument to first
53019         quadrant then set signs of results at the end.
53020         * math/s_casinhf.c (__casinhf): Likewise.
53021         * math/s_casinhl.c (__casinhl): Likewise.
53022         * math/libm-test.inc (casin_test): Add more tests.
53023         (casinh_test): Likewise.
53024         * sysdeps/i386/fpu/libm-test-ulps: Update.
53025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53026
53027 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53028
53029         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
53030
53031         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
53032
53033         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
53034         declarations.
53035         (denorm): Likewise.
53036         (__mp_dbl): Likewise.
53037         (__inv): Likewise.
53038
53039         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
53040         and adjust the header comment.
53041
53042         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
53043         variable name from declaration.
53044
53045 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
53046
53047         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
53048         Initialize COMMON_CPUID_INDEX_7 element.
53049         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
53050         (CPUID_RTM): Likewise.
53051         (HAS_RTM): Likewise.
53052         (COMMON_CPUID_INDEX_7): New enum.
53053
53054 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
53055
53056         [BZ #14981]
53057         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
53058         size is zero, record memory as freed.
53059
53060 2013-01-03  Andreas Jaeger  <aj@suse.de>
53061
53062         * po/ia.po: Add new Interlingua translation.
53063
53064 2012-01-03  Allan McRae  <allan@archlinux.org>
53065
53066         * locale/programs/localedef.c: Fix description of '--posix' flag.
53067
53068 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
53069
53070         * NEWS: Update dates in second copyright notice.
53071         * README: Update copyright dates in example.
53072         * manual/libc.texinfo: Update copyright dates.
53073         * scripts/test-installation.pl: Update copyright date in --version
53074         output.
53075
53076         * hurd/ctty-input.c: Fix copyright notice formatting.
53077         * hurd/ctty-output.c: Likewise.
53078         * hurd/dtable.c: Likewise.
53079         * hurd/hurd-raise.c: Likewise.
53080         * hurd/hurdprio.c: Likewise.
53081         * hurd/msgportdemux.c: Likewise.
53082         * misc/sys/file.h: Likewise.
53083         * misc/sys/ioctl.h: Likewise.
53084         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
53085         * sysdeps/mach/hurd/chdir.c: Likewise.
53086         * sysdeps/mach/hurd/fchdir.c: Likewise.
53087         * sysdeps/mach/hurd/rename.c: Likewise.
53088         * sysdeps/mach/hurd/rmdir.c: Likewise.
53089         * sysdeps/mach/hurd/seekdir.c: Likewise.
53090         * sysdeps/mach/hurd/setsid.c: Likewise.
53091         * sysdeps/posix/wait3.c: Likewise.
53092
53093         * All files with FSF copyright notices: Update copyright dates
53094         using scripts/update-copyrights.
53095         * intl/plural.c: Regenerated.
53096         * locale/programs/charmap-kw.h: Likewise.
53097         * locale/programs/locfile-kw.h: Likewise.
53098
53099 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
53100
53101         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
53102         four values.
53103
53104         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
53105         calculation loop and add branch prediction.
53106
53107         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
53108         check access beyond bounds of m1np.
53109
53110         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53111         MPTWO.
53112         (__inv): Remove local variable MPTWO to use the global
53113         constant.
53114         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
53115         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53116         variable MPTWO.
53117         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
53118         MP3HALFS static const.
53119
53120 2013-01-01  David S. Miller  <davem@davemloft.net>
53121
53122         * po/ca.po: Update from translation team.
53123
53124 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
53125
53126         * scripts/update-copyrights: New file.
53127         * Makeconfig: Reformat copyright notice.
53128         * ctype/ctype.h: Likewise.
53129         * debug/swprintf_chk.c: Likewise.
53130         * elf/dl-cache.c: Likewise.
53131         * elf/dl-debug.c: Likewise.
53132         * elf/dl-object.c: Likewise.
53133         * grp/initgroups.c: Likewise.
53134         * hurd/Makefile: Likewise.
53135         * hurd/hurd/signal.h: Likewise.
53136         * hurd/hurdfault.c: Likewise.
53137         * hurd/hurdioctl.c: Likewise.
53138         * hurd/hurdlookup.c: Likewise.
53139         * hurd/intr-msg.c: Likewise.
53140         * iconv/gconv_open.c: Likewise.
53141         * libio/swprintf.c: Likewise.
53142         * locale/lc-ctype.c: Likewise.
53143         * locale/nl_langinfo.c: Likewise.
53144         * mach/Machrules: Likewise.
53145         * mach/Makefile: Likewise.
53146         * malloc/obstack.h: Likewise.
53147         * manual/Makefile: Likewise.
53148         * manual/tsort.awk: Likewise.
53149         * misc/bits/stab.def: Likewise.
53150         * nis/nis_print_group_entry.c: Likewise.
53151         * nis/nis_table.c: Likewise.
53152         * nis/nss_compat/compat-pwd.c: Likewise.
53153         * nis/nss_compat/compat-spwd.c: Likewise.
53154         * po/Makefile: Likewise.
53155         * posix/fnmatch.c: Likewise.
53156         * posix/regex.h: Likewise.
53157         * resolv/Makefile: Likewise.
53158         * resolv/nss_dns/dns-network.c: Likewise.
53159         * resolv/res_hconf.c: Likewise.
53160         * scripts/gen-sorted.awk: Likewise.
53161         * soft-fp/soft-fp.h: Likewise.
53162         * stdio-common/printf.h: Likewise.
53163         * stdlib/monetary.h: Likewise.
53164         * stdlib/random.c: Likewise.
53165         * stdlib/random_r.c: Likewise.
53166         * sysdeps/generic/Makefile: Likewise.
53167         * sysdeps/gnu/Makefile: Likewise.
53168         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
53169         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
53170         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
53171         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
53172         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
53173         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
53174         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
53175         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
53176         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
53177         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
53178         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
53179         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
53180         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
53181         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
53182         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
53183         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
53184         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
53185         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
53186         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
53187         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
53188         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
53189         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
53190         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
53191         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
53192         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
53193         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
53194         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
53195         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
53196         * sysdeps/mach/hurd/errnos.awk: Likewise.
53197         * sysdeps/mach/hurd/fork.c: Likewise.
53198         * sysdeps/mach/hurd/getcwd.c: Likewise.
53199         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
53200         * sysdeps/mach/hurd/mmap.c: Likewise.
53201         * sysdeps/mach/hurd/utimes.c: Likewise.
53202         * sysdeps/mach/hurd/xmknod.c: Likewise.
53203         * sysdeps/posix/profil.c: Likewise.
53204         * sysdeps/posix/readdir_r.c: Likewise.
53205         * sysdeps/powerpc/bits/mathdef.h: Likewise.
53206         * sysdeps/powerpc/bits/setjmp.h: Likewise.
53207         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
53208         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53209         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53210         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
53211         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53212         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
53213         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53214         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
53215         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53216         * sysdeps/pthread/lio_listio.c: Likewise.
53217         * sysdeps/sparc/dl-procinfo.h: Likewise.
53218         * sysdeps/unix/i386/sysdep.S: Likewise.
53219         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
53220         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
53221         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
53222         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
53223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
53224         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
53225         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
53226         * sysdeps/unix/sysv/linux/speed.c: Likewise.
53227         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
53228         * sysdeps/wordsize-32/divdi3.c: Likewise.
53229         * time/sys/time.h: Likewise.
53230         * wcsmbs/Makefile: Likewise.
53231
53232 2013-01-01  David S. Miller  <davem@davemloft.net>
53233
53234         * po/fr.po: Update from translation team.
53235
53236         * catgets/gencat.c: Update copyright year.
53237         * csu/version.c: Likewise.
53238         * debug/catchsegv.sh: Likewise.
53239         * debug/pcprofiledump.c: Likewise.
53240         * debug/xtrace.sh: Likewise.
53241         * elf/ldconfig.c: Likewise.
53242         * elf/ldd.bash.in: Likewise.
53243         * elf/pldd.c: Likewise.
53244         * elf/sotruss.ksh: Likewise.
53245         * elf/sprof.c: Likewise.
53246         * iconv/iconv_prog.c: Likewise.
53247         * iconv/iconvconfig.c: Likewise.
53248         * locale/programs/locale.c: Likewise.
53249         * locale/programs/localedef.c: Likewise.
53250         * login/programs/pt_chown.c: Likewise.
53251         * malloc/memusage.sh: Likewise.
53252         * malloc/memusagestat.c: Likewise.
53253         * malloc/mtrace.pl: Likewise.
53254         * nscd/nscd.c: Likewise.
53255         * nss/getent.c: Likewise.
53256         * nss/makedb.c: Likewise.
53257         * posix/getconf.c: Likewise.
53258
53259 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
53260
53261         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
53262         numbers.
53263
53264 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
53265
53266         * math/bits/mathcalls.h (modf): Use __nonnull.
53267
53268 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
53269
53270         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
53271         (split): Use macro CN instead of the bare value.
53272         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
53273         could be used.
53274         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
53275         instead of the bare value.
53276         (power1): Likewise.
53277
53278 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53279
53280         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
53281         __ATAN_TWOM.
53282         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53283
53284         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
53285         their values.
53286         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
53287         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
53288         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
53289         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
53290
53291 2012-12-28  Andreas Jaeger  <aj@suse.de>
53292
53293         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
53294         values are from Linux 3.7.
53295
53296         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
53297         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
53298
53299 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53300
53301         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
53302         TRUE case.
53303
53304         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
53305         (norm): Likewise.
53306         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
53307         variables with preprocessor constants.
53308         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53309         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
53310         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
53311
53312 2012-12-27  Bruno Haible  <bruno@clisp.org>
53313
53314         [BZ #14317]
53315         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
53316         only if needed.
53317
53318 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
53319
53320         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
53321         and use variable directly.
53322         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
53323
53324         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53325         MPONE.
53326         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
53327         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53328         variable MPONE.
53329         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
53330         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
53331         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
53332         include directive.  Remove local variable MPONE.
53333         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
53334         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
53335         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
53336
53337 2012-12-25  David S. Miller  <davem@davemloft.net>
53338
53339         * version.h (RELEASE): Set to "development".
53340         (VERSION): Set to "2.17.90".
53341         * NEWS: Add 2.18 section.
53342
53343 2012-12-21  David S. Miller  <davem@davemloft.net>
53344
53345         * po/hr.po: Update from translation team.
53346
53347 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
53348
53349         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
53350
53351 2012-12-19  Steve Ellcey  <sellcey@mips.com>
53352
53353         * NEWS:  Mention new memcpy for MIPS.
53354
53355 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
53356
53357         * manual/contrib.texi (Contributors): Spelling correction.
53358
53359 2012-12-15  David S. Miller  <davem@davemloft.net>
53360
53361         * po/ru.po: Update from translation team.
53362
53363 2012-12-13  David S. Miller  <davem@davemloft.net>
53364
53365         * NEWS: Mention IFUNC testsuite enhancements.
53366
53367         * po/pl.po: Update from translation team.
53368         * po/bg.po: Likewise.
53369
53370         * manual/contrib.texi (Contributors): Update entries for Hongjiu
53371         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
53372
53373 2012-12-11  David S. Miller  <davem@davemloft.net>
53374
53375         * po/sv.po: Update from translation team.
53376
53377         * po/vi.po: Update from translation team.
53378
53379         * po/cs.po: Update from translation team.
53380
53381         * po/de.po: Update from translation team.
53382         * po/eo.po: Likewise.
53383         * po/nl.po: Likewise.
53384
53385 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
53386
53387         [BZ #14246]
53388         * manual/argp.texi (Argp Helper Functions): Move node to follow
53389         Argp Parsing State.
53390
53391         [BZ #14872]
53392         * manual/conf.texi (Limits on File System Capacity): Mention if
53393         terminating null is included in the max size.
53394
53395 2012-12-10  Andreas Jaeger  <aj@suse.de>
53396
53397         * po/cs.po: Update from translation team.
53398
53399 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
53400
53401         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
53402         void pointer and cast to uintptr_t.
53403         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
53404         path.
53405         * sysdeps/s390/s390-64/memcpy.S: Likewise.
53406         * sysdeps/s390/s390-64/memset.S: Likewise.
53407
53408 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
53409
53410         [BZ #14833]
53411         * menual/message.texi (Message Translation): Fix typos.
53412         (Helper programs for gettext): Likewise.
53413
53414 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
53415
53416         [BZ #14898]
53417         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
53418         Change to -1.
53419
53420 2012-12-07  David S. Miller  <davem@davemloft.net>
53421
53422         * po/libc.pot: Update.
53423
53424 2012-12-07  Richard Henderson  <rth@redhat.com>
53425
53426         [BZ #10114]
53427         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
53428         normal/normal case to before the switch.
53429         (_FP_DIV): Likewise.
53430
53431 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
53432             Mike Frysinger  <vapier@gentoo.org>
53433
53434         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
53435         check for __NR_fadvise64_64.
53436
53437 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
53438
53439         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
53440         0, not just to plain "0" as a statement.
53441         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
53442         with cw.
53443
53444 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
53445
53446         * NEWS: Use sourceware.org in Bugzilla URL.
53447
53448 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
53449
53450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
53451         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
53452
53453         * stdio-common/tst-put-error.c (do_test): Add newline to the
53454         padded test to ensure flush.
53455
53456 2012-12-05  Jeff Law  <law@redhat.com>
53457
53458         * sunrpc/etc.rpc (fedfs_admin): Add entry.
53459
53460 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
53461
53462         * README: Don't refer to ports add-on as distributed separately.
53463         Mention AArch64 in list of systems supported in the ports add-on.
53464
53465         * LICENSES: Add more non-FSF copyright and license notices.
53466
53467         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
53468         ((unused)).
53469
53470         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
53471
53472         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
53473         10000 as width of padded output.
53474
53475 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
53476
53477         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
53478
53479         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
53480         variable LX with __attribute__ ((unused)).
53481         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
53482         Likewise.
53483         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
53484         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
53485         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
53486         with __attribute__ ((unused)).
53487
53488 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
53489
53490         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
53491
53492 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
53493
53494         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
53495         (CFLAGS-nldbl-acos.c): New variable.
53496         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
53497         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
53498         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
53499         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
53500         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
53501         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
53502         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
53503         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
53504         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
53505         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
53506         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
53507         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
53508         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
53509         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
53510         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
53511         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
53512         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
53513         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
53514         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
53515         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
53516         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
53517         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
53518         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
53519         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
53520         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
53521         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
53522         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
53523         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
53524         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
53525         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
53526         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
53527         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
53528         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
53529         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
53530         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
53531         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
53532         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
53533         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
53534         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
53535         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
53536         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
53537         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
53538         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
53539         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
53540         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
53541         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
53542         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
53543         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
53544         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
53545         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
53546         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
53547         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
53548         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
53549         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
53550         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
53551         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
53552         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
53553         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
53554         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
53555         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
53556         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
53557         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
53558         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
53559         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
53560         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
53561         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
53562         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
53563         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
53564         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
53565         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
53566         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
53567         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
53568         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
53569         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
53570         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
53571         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
53572         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
53573         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
53574         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
53575         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
53576         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
53577         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
53578         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
53579         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
53580         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
53581         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
53582         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
53583         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
53584         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
53585         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
53586         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
53587         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
53588         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
53589         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
53590         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
53591         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
53592         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
53593
53594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
53595         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
53596
53597         [BZ #14914]
53598         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
53599         whole low double instead of just low 47 bits when splitting values
53600         into two parts.
53601
53602 2012-12-03  Allan McRae  <allan@archlinux.org>
53603
53604         * manual/stdio.texi (Predefined Printf Handlers): Remove
53605         @hsep and @vsep usage.
53606
53607 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
53608
53609         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
53610         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
53611
53612 2012-12-03  Jeff Law  <law@redhat.com>
53613
53614         * time/sys/time.h (settimeofday): Do not mark TV argument
53615         as __nonnull.
53616
53617 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
53618
53619         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
53620         when currently writing and seek to current position when not.
53621         * libio/Makefile (tests): Remove bug-fclose1.
53622         * libio/bug-fclose1.c: Delete.
53623
53624 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
53625
53626         * manual/arith.texi (feenableexcept): Fix typo.
53627         (fedisableexcept): Likewise.
53628
53629 2012-11-30  Roland McGrath  <roland@hack.frob.com>
53630
53631         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
53632         second, differently-typed declaration, rather than a cast.
53633
53634 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
53635
53636         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
53637         * include/rpc/svc.h: ... here.
53638
53639 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
53640
53641         [BZ #13013]
53642         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
53643         depending n and resplen2 to catch cases where answer
53644         equals answerp2.
53645
53646 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
53647
53648         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
53649         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
53650
53651 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
53652
53653         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
53654
53655 2012-11-29  Roland McGrath  <roland@hack.frob.com>
53656
53657         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
53658
53659 2012-11-28  Jeff Law  <law@redhat.com>
53660
53661         [BZ #13761]
53662         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
53663         dataset_temporary.  Track alloca usage into alloca_used.
53664         If dataset is large allocate and release it via malloc/free.
53665
53666 2012-06-04  Florian Weimer  <fweimer@redhat.com>
53667
53668         [BZ #14197]
53669         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
53670
53671 2012-11-28  David S. Miller  <davem@davemloft.net>
53672
53673         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53674
53675 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
53676
53677         [BZ #14803]
53678         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
53679         of pi/2 rounded to nearest to 64 bits.
53680         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
53681         nearest to 64 bits.
53682         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
53683         bits.
53684
53685 2012-11-28  Jeff Law <law@redhat.com>
53686             Martin Osvald <mosvald@redhat.com>
53687
53688         [BZ #14889]
53689         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
53690         * sunrpc/svc.c: Include time.h.
53691         (__svc_accept_failed): New function.
53692         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
53693         any reason other than EINTR, call __svc_accept_failed.
53694         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
53695         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
53696
53697 2012-11-28  Andreas Schwab  <schwab@suse.de>
53698
53699         * scripts/abilist.awk: Also handle indirect functions in .opd
53700         section.
53701
53702 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
53703
53704         [BZ #13881]
53705         * sysdeps/x86/fpu/powl_helper.c: New file.
53706         * sysdeps/x86/fpu/Makefile: Likewise.
53707         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
53708         (p3): New object.
53709         (__ieee754_powl): Use __powl_helper for finite arguments except
53710         integer exponents below 8.
53711         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
53712         (p3): New object.
53713         (__ieee754_powl): Use __powl_helper for finite arguments except
53714         integer exponents below 8.
53715         * math/libm-test.inc (pow_test): Add more tests and enable some
53716         previously disabled tests.
53717         * sysdeps/i386/fpu/libm-test-ulps: Update.
53718         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53719
53720 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53721             Carlos O'Donell  <carlos_odonell@mentor.com>
53722
53723         * nss/makedb.c (is_prime): Assert that input is odd and greater
53724         than 4.  Note that fact in a comment too.
53725         (next_prime): Add 4 to input.
53726
53727 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
53728
53729         [BZ #11741]
53730         * libio/Makefile (tests): Add test case tst-fwrite-error.
53731         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
53732         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
53733         * libio/tst-fwrite-error.c: New test case.
53734
53735 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
53736
53737         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
53738         before casting to void *.
53739         * include/libc-internal.h (__pointer_type): New macro.
53740         (__integer_if_pointer_type_sub): Likewise.
53741         (__integer_if_pointer_type): Likewise.
53742         (cast_to_integer): Likewise.
53743         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
53744         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
53745         before casting to atomic64_t.
53746         (atomic_exchange_acq): Likewise.
53747         (__arch_exchange_and_add_body): Likewise.
53748         (__arch_add_body): Likewise.
53749         (atomic_add_negative): Likewise.
53750         (atomic_add_zero): Likewise.
53751
53752 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
53753
53754         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
53755         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
53756         (add_fdes): Likewise.
53757         (linear_search_fdes): Likewise.
53758         (binary_search_unencoded_fdes): Likewise.
53759
53760 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
53761
53762         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
53763
53764 2012-11-24  Adam Conrad  <adconrad@0c3.net>
53765
53766         * configure.in: Autodetect C++ header directories.
53767         * configure: Regenerated.
53768
53769 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
53770
53771         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
53772
53773 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
53774
53775         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53776
53777 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
53778
53779         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
53780         LDBL_MANT_DIG == 106]: Disable some tests.
53781         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
53782         Likewise.
53783         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
53784         Likewise.
53785
53786         [BZ #14871]
53787         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
53788         input for small inputs.  Return +/- pi/2 for large inputs.
53789         * math/libm-test.inc (atan_test): Add more tests.
53790
53791         * sysdeps/generic/unwind-dw2-fde-glibc.c
53792         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
53793         __attribute__ ((unused)).
53794
53795         [BZ #14645]
53796         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
53797         x * y if x and y are nonzero and z is zero.
53798
53799         [BZ #14811]
53800         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
53801         nonzero exponents with absolute value below 0x1p-117 to +/-
53802         0x1p-117.
53803
53804         [BZ #14869]
53805         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
53806         up arguments below 2**-450, not just those below 2**-500.
53807         * math/libm-test.inc (hypot_test): Add another test.
53808
53809         [BZ #14868]
53810         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
53811         Return a+b for ratio over 2**120, not 2**60.
53812         * math/libm-test.inc (hypot_test): Add another test.
53813
53814         * math/libm-test.inc (clog_test): Use
53815         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
53816         (clog10_test): Likewise.
53817
53818         [BZ #6778]
53819         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
53820
53821 2012-11-22  Andreas Schwab  <schwab@suse.de>
53822
53823         * sysdeps/i386/fpu/libm-test-ulps: Update.
53824
53825 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
53826
53827         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
53828         printf output with newline.
53829
53830 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
53831
53832         [BZ #14865]
53833         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
53834         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
53835         -z nodlopen, -z initfirst and -z execstack support.
53836         * configure: Regenerated.
53837
53838         * elf/elf.h (DF_1_NODIRECT): New macro.
53839         (DF_1_IGNMULDEF): Likewise.
53840         (DF_1_NOKSYMS): Likewise.
53841         (DF_1_NOHDR): Likewise.
53842         (DF_1_EDITED): Likewise.
53843         (DF_1_NORELOC): Likewise.
53844         (DF_1_SYMINTPOSE): Likewise.
53845         (DF_1_GLOBAUDIT): Likewise.
53846         (DF_1_SINGLETON): Likewise.
53847         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
53848         DT_1_SUPPORTED_MASK bits.
53849         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
53850
53851 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
53852
53853         * sysdeps/unix/make-syscalls.sh: Document prefixes.
53854
53855 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
53856
53857         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
53858         macro.
53859
53860         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
53861         (sendmmsg): Move declarations...
53862         * socket/sys/socket.h: ... here.
53863         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
53864         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
53865         include it from...
53866         * socket/recvmmsg.c: ... this new file.
53867         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
53868         (sendmmsg): Rename to __sendmmsg, create weak alias and make
53869         definition of __sendmmsg hidden.
53870         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
53871         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
53872         Move ENOSYS stub into and include it from...
53873         * socket/sendmmsg.c: ... this new file.
53874         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
53875         (sysdep_routines): Move recvmmsg and sendmmsg...
53876         * socket/Makefile (routines): ... here.
53877         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
53878         (GLIBC_PRIVATE): Add __sendmmsg.
53879         * include/sys/socket.h (__sendmmsg): Add declarations.
53880         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
53881         sendmmsg.
53882
53883 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
53884
53885         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
53886         variable I1 with __attribute__ ((unused)).
53887         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
53888
53889 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
53890
53891         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
53892         DUMMY variables with __attribute__ ((unused)).
53893
53894         * bits/byteswap.h: Include <bits/types.h>.
53895         (__bswap_64): Use __uint64_t instead of unsigned long long int.
53896
53897 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
53898
53899         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
53900         string_t.  Do not manually set errno.
53901         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
53902         length with __strnlen.  Make sure to both set errno and return it on
53903         failure.
53904
53905 2012-11-19  David S. Miller  <davem@davemloft.net>
53906
53907         With help from Joseph Myers.
53908         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
53909         very large arguments properly.
53910         * math/libm-test.inc (atan_test): New tests.
53911         (atan2_test): New tests.
53912         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53913         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
53914
53915 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
53916
53917         [BZ #14856]
53918         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
53919         Define to 3.
53920
53921         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
53922         [POSIX] (EADDRNOTAVAIL): Likewise.
53923         [POSIX] (EAFNOSUPPORT): Likewise.
53924         [POSIX] (EALREADY): Likewise.
53925         [POSIX] (ECONNABORTED): Likewise.
53926         [POSIX] (ECONNREFUSED): Likewise.
53927         [POSIX] (ECONNRESET): Likewise.
53928         [POSIX] (EDESTADDRREQ): Likewise.
53929         [POSIX] (EDQUOT): Likewise.
53930         [POSIX] (EHOSTUNREACH): Likewise.
53931         [POSIX] (EIDRM): Likewise.
53932         [POSIX] (EISCONN): Likewise.
53933         [POSIX] (ELOOP): Likewise.
53934         [POSIX] (EMULTIHOP): Likewise.
53935         [POSIX] (ENETDOWN): Likewise.
53936         [POSIX] (ENETUNREACH): Likewise.
53937         [POSIX] (ENOBUFS): Likewise.
53938         [POSIX] (ENODATA): Likewise.
53939         [POSIX] (ENOLINK): Likewise.
53940         [POSIX] (ENOMSG): Likewise.
53941         [POSIX] (ENOPROTOOPT): Likewise.
53942         [POSIX] (ENOSR): Likewise.
53943         [POSIX] (ENOSTR): Likewise.
53944         [POSIX] (ENOTCONN): Likewise.
53945         [POSIX] (ENOTSOCK): Likewise.
53946         [POSIX] (EOPNOTSUPP): Likewise.
53947         [POSIX] (EOVERFLOW): Likewise.
53948         [POSIX] (EPROTO): Likewise.
53949         [POSIX] (EPROTONOSUPPORT): Likewise.
53950         [POSIX] (EPROTOTYPE): Likewise.
53951         [POSIX] (ESTALE): Likewise.
53952         [POSIX] (ETIME): Likewise.
53953         [POSIX] (ETXTBSY): Likewise.
53954         [POSIX] (EWOULDBLOCK): Likewise.
53955         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
53956         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
53957         [POSIX] (SEEK_CUR): Likewise.
53958         [POSIX] (SEEK_END): Likewise.
53959         [POSIX || UNIX98] (mode_t): Do not require.
53960         [POSIX] (off_t): Likewise.
53961         [POSIX] (pid_t): Likewise.
53962         [POSIX] (sys/stat.h): Do not allow header.
53963         [POSIX] (unistd.h): Likewise.
53964         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
53965         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
53966         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
53967         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
53968         require.
53969         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
53970         sigevent): Specify elements.
53971         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
53972         entry.
53973         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
53974         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
53975
53976         * conform/data/cpio.h-data [POSIX]: Disable whole file.
53977         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
53978         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
53979         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
53980         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
53981         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
53982         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
53983         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
53984         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
53985         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
53986         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
53987         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
53988         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
53989         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
53990         Likewise.
53991         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
53992         Likewise.
53993         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
53994         Likewise.
53995         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
53996         Likewise.
53997         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
53998         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
53999         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
54000         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
54001         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
54002         Specify lower bound on value.
54003         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
54004         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
54005         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
54006         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
54007         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
54008         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
54009         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
54010         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
54011         value.
54012         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
54013         as optional.
54014         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
54015         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
54016         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
54017         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
54018         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
54019         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
54020         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
54021         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
54022         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
54023         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
54024         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
54025         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
54026         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
54027         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
54028         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
54029         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
54030         entry.
54031         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
54032         optional.
54033         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
54034         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
54035         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
54036         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
54037         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
54038         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
54039         Likewise.
54040         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
54041         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
54042         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
54043         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
54044         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
54045         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
54046         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
54047         as optional.
54048         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
54049         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
54050         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
54051         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
54052         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
54053         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
54054         specify as optional.
54055         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
54056         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
54057         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
54058         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
54059         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
54060         [XPG3] (NL_LANGMAX): Likewise.
54061         [POSIX || XPG3] (NL_MSGMAX): Likewise.
54062         [POSIX || XPG3] (NL_NMAX): Likewise.
54063         [POSIX || XPG3] (NL_SETMAX): Likewise.
54064         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
54065         [XPG3] (NZERO): Likewise.
54066         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
54067         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
54068         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
54069         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
54070         (REG_ERANGE): Expect.
54071         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
54072         optional-constant.
54073         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
54074         Use (void) in prototype.
54075         [POSIX] (*_t): Allow.
54076         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
54077         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
54078         (WRDE_BADVAL): Expect.
54079
54080         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
54081         expect.
54082         [XPG3 || XPG4] (O_RSYNC): Likewise.
54083         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
54084         Likewise.
54085         [XPG3 || XPG4] (pthread_sigmask): Likewise.
54086         [XPG3 || XPG4] (sigqueue): Likewise.
54087         [XPG3 || XPG4] (sigtimedwait): Likewise.
54088         [XPG3 || XPG4] (sigwaitinfo): Likewise.
54089         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
54090         [XPG3 || XPG4] (vsnprintf): Likewise.
54091         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
54092         Likewise.
54093         [XPG3 || XPG4] (blksize_t): Likewise.
54094         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
54095         Likewise.
54096         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
54097         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
54098         [XPG3 || XPG4] (struct itimerspec): Likewise.
54099         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
54100         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
54101         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
54102         [XPG3 || XPG4] (clockid_t): Likewise.
54103         [XPG3 || XPG4] (timer_t): Likewise.
54104         [XPG3 || XPG4] (clock_getres): Likewise.
54105         [XPG3 || XPG4] (clock_gettime): Likewise.
54106         [XPG3 || XPG4] (clock_settime): Likewise.
54107         [XPG3 || XPG4] (nanosleep): Likewise.
54108         [XPG3 || XPG4] (timer_create): Likewise.
54109         [XPG3 || XPG4] (timer_delete): Likewise.
54110         [XPG3 || XPG4] (timer_gettime): Likewise.
54111         [XPG3 || XPG4] (timer_getoverrun): Likewise.
54112         [XPG3 || XPG4] (timer_settime): Likewise.
54113         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
54114         [XPG3 || XPG4] (getlogin_r): Likewise.
54115         [XPG3 || XPG4] (pread): Likewise.
54116         [XPG3 || XPG4] (pthread_atfork): Likewise.
54117         [XPG3 || XPG4] (pwrite): Likewise.
54118
54119         [BZ #14835]
54120         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
54121         <bits/siginfo.h>.
54122
54123 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54124
54125         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
54126         finalizing MALLSTREAM.
54127
54128         * sysdeps/mach/hurd/syncfs.c: New file.
54129
54130 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
54131
54132         [BZ #14719]
54133         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
54134         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
54135         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
54136         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
54137         (_nss_dns_gethostbyname4_r): Likewise.
54138         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
54139         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
54140
54141 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
54142
54143         [BZ #13763]
54144         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
54145
54146 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
54147
54148         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
54149         * elf/cache.c (print_entry): Print ",AArch64" for
54150         FLAG_AARCH64_LIB64
54151
54152         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
54153         * elf/cache.c (print_entry): Print ",hard-float" for
54154         FLAG_ARM_LIBHF.
54155
54156 2012-11-18  David S. Miller  <davem@davemloft.net>
54157
54158         With help from Joseph Myers.
54159         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
54160         cutoff to 2**-13.
54161         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
54162         cutoff to 2**-25.
54163         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
54164         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
54165         small.
54166         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
54167         * math/libm-test.inc (y0_test): New tests.
54168         (y1_test): New tests.
54169         * sysdeps/i386/fpu/libm-test-ulps: Update.
54170         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54171         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54172
54173 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
54174
54175         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
54176         64-bit targets.
54177         * configure: Regenerated.
54178
54179 2012-11-17  David S. Miller  <davem@davemloft.net>
54180
54181         [BZ #14811]
54182         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
54183         nonzero exponents with absolute value below 0x1p-128 to +/-
54184         0x1p-128.
54185
54186 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
54187
54188         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
54189
54190         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
54191
54192         * posix/getconf-speclist.c: New file.
54193         * posix/posix-envs.def: Likewise.
54194         * posix/confstr.c (START_ENV_GROUP): New macro.
54195         (END_ENV_GROUP): Likewise.
54196         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54197         (KNOWN_PRESENT_ENV_STRING): Likewise.
54198         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54199         (UNKNOWN_ENVIRONMENT): Likewise.
54200         (confstr): Include posix-envs.def instead of handling
54201         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
54202         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
54203         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
54204         (END_ENV_GROUP): Likewise.
54205         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54206         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54207         (UNKNOWN_ENVIRONMENT): Likewise.
54208         (__sysconf): Include posix-envs.def instead of handling associated
54209         cases directly here.
54210         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
54211         preprocessing getconf-speclist.c rather than running getconf or
54212         generating empty file.
54213
54214 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
54215
54216         * scripts/check-local-headers.sh: Ignore 'mach' headers.
54217
54218 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
54219
54220         [BZ #14672]
54221         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
54222
54223 2012-11-16  David S. Miller  <davem@davemloft.net>
54224
54225         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
54226         smaller than LDBL_EPSILON/2.0L, just return xm1.
54227
54228 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
54229
54230         * elf/tst-array1.c (init): Set constructor priority to 1000.
54231         (fini): Set destructor priority to 1000.
54232         * elf/tst-array2dep.c: Likewise.
54233
54234 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54235
54236         [BZ #11741]
54237         * libio/fileops.c (_IO_new_file_write): Correctly return error.
54238         (_IO_new_file_xsputn): Also return EOF if none of the input
54239         data was written when overflow failed.
54240         * libio/iopadn.c (_IO_padn): Likewise.
54241         * libio/iowpadn.c (_IO_wpadn): Likewise.
54242         * stdio-common/tst-put-error.c: Add copyright notice.
54243         (do_test): Add case for printing padded string.
54244         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
54245         _IO_padn returned error.
54246         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
54247         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
54248         return EOF.
54249
54250 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54251
54252         * libio/libioP.h: Add comment note that the references to C++
54253         bits are now obsolete.
54254
54255 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54256
54257         * math/libm-test.inc (check_complex): Use asprintf.
54258
54259 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
54260
54261         * debug/pcprofiledump.c (print_version): Update copyright year.
54262         * malloc/memusagestat.c (print_version): Likewise.
54263
54264 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
54265
54266         [BZ #14831]
54267         * elf/Makefile (tests): Add tst-audit8.
54268         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
54269         ($(objpfx)tst-audit8.out): New target.
54270         (tst-audit8-ENV): New variable.
54271         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
54272         audit if l_reloc_result is NULL.
54273         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
54274         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
54275         * elf/tst-audit8.c: New file.
54276
54277 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54278
54279         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
54280         * misc/Makefile (CFLAGS-select.c): Define.
54281         * posix/Makefile (CFLAGS-pause.c): Define.
54282
54283 2012-11-13  David S. Miller  <davem@davemloft.net>
54284
54285         * crypt/Makefile: Move test targets after toplevel Rules
54286         inclusion.  Grab any necessary sysdep routines when linking.
54287         * crypt/md5.c (md5_process_block): Remove define, we will always
54288         name it __md5_process_block.
54289         (md5_finish_ctx): Update md5_process_block call.
54290         (md5_stream): Likewise.
54291         (md5_process_bytes): Likewise.
54292         (md5_process_block): Rename to __md5_process_block and move to ...
54293         * crypt/md5-block.c: ... here.
54294         * crypt/sha256.c (sha256_process_block): Move to ...
54295         * crypt/sha256-block.c: ... here.
54296         * crypt/sha512.c (sha512_process_block): Move to ...
54297         * crypt/sha512-block.c: ... here.
54298         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
54299         path.
54300         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
54301         * sysdeps/sparc/sparc64/multiarch/Makefile
54302         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
54303         crypt subdir.
54304         (localedef-aux): Add md5 crypto assembler when in locale subdir.
54305         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
54306         multiarch changes.
54307         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
54308         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
54309         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
54310         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
54311         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
54312         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
54313         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
54314         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
54315         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
54316         file.
54317         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
54318         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
54319         file.
54320         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
54321
54322 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
54323
54324         * timezone/tzselect.ksh: Update from tzcode git revision
54325         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
54326         * timezone/zdump.c: Likewise.
54327         * timezone/zic.c: Likewise.
54328         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
54329         in TZVERSION setting, not $(PKGVERSION).
54330         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
54331         REPORT_BUGS_TO settings.
54332
54333         [BZ #14838]
54334         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
54335         macro.
54336
54337 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54338
54339         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
54340         detection to immediately after _FP_ROUND().
54341         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
54342         bits are 0.
54343
54344 2012-11-11  David S. Miller  <davem@davemloft.net>
54345
54346         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
54347         inttypes.h
54348         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
54349         __close rather than their public counterparts.
54350
54351 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
54352
54353         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
54354         file.
54355         [UNIX98] (sem_timedwait): Do not expect.
54356         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
54357         [XPG4 || UNIX98] (sockatmark): Do not expect.
54358         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
54359         (clock_getcpuclockid): Do not expect.
54360         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
54361         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
54362         Do not expect.
54363         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
54364         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
54365         [UNIX98] (vwscanf): Likewise.
54366         [UNIX98] (vswscanf): Likewise.
54367
54368 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
54369
54370         * timezone/version.h: Remove file.
54371         * timezone/README: Do not refer to version.h.
54372         * timezone/Makefile ($(objpfx)zic.o): New dependency on
54373         $(objpfx)version.h.
54374         ($(objpfx)zdump.o): Likewise.
54375         ($(objpfx)version.h): New target.
54376
54377         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
54378         2012i.
54379         * timezone/README: Don't mention modification to tzselect.ksh.
54380         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
54381         work on unmodified tzselect.ksh.  Substitute version numbers in
54382         tzselect.ksh.
54383
54384         * Makefile (format-me): Remove.
54385         (INSTALL): Adjust indentation.  Use commands directly instead of
54386         using $(format-me).
54387
54388         * aclocal.m4 (ACX_PKGVERSION): New macro.
54389         (ACX_BUGURL): Likewise.
54390         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
54391         (PKGVERSION): New AC_DEFINE_UNQUOTED.
54392         (REPORT_BUGS_TO): Likewise.
54393         * configure: Regenerated.
54394         * config.h.in (PKGVERSION): New macro.
54395         (REPORT_BUGS_TO): Likewise.
54396         * config.make.in (PKGVERSION): New variable.
54397         (PKGVERSION_TEXI): Likewise.
54398         (REPORT_BUGS_TO): Likewise.
54399         (REPORT_BUGS_TEXI): Likewise.
54400         * Makefile (format-me): Use -I$(common-objpfx)manual.
54401         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
54402         ($(common-objpfx)manual/%): New target.
54403         (manual/%): Remove target.
54404         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
54405         (print_version): Use PKGVERSION.
54406         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
54407         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
54408         and REPORT_BUGS_TO.
54409         ($(objpfx)xtrace): Likewise.
54410         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
54411         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
54412         (print_version): Use PKGVERSION.
54413         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
54414         (do_version): Use PKGVERSION.
54415         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
54416         REPORT_BUGS_TO.
54417         (common-ldd-rewrite): Likewise.
54418         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
54419         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
54420         (print_version): Use PKGVERSION.
54421         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
54422         * elf/pldd.c (argp_program_bug_address): Remove variable.
54423         (more_help): New function.
54424         (argp): Use more_help.
54425         (print_version): Use PKGVERSION.
54426         * elf/sln.c (main): Use PKGVERSION.
54427         (usage): Use REPORT_BUGS_TO.
54428         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
54429         (top level): Use PKGVERSION.
54430         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
54431         (print_version): Use PKGVERSION.
54432         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
54433         (print_version): Use PKGVERSION.
54434         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
54435         (print_version): Use PKGVERSION.
54436         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
54437         (print_version): Use PKGVERSION.
54438         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
54439         (print_version): Use PKGVERSION.
54440         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
54441         (print_version): Use PKGVERSION.
54442         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
54443         and BUGURL.
54444         ($(objpfx)memusage): Likewise.
54445         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
54446         (do_version): Use PKGVERSION.
54447         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
54448         (print_version): Use PKGVERSION.
54449         * malloc/mtrace.pl ($PACKAGE): Remove variable.
54450         ($PKGVERSION): New variable.
54451         ($REPORT_BUGS_TO): Likewise.
54452         (usage): Use $REPORT_BUGS_TO.
54453         (top level): Use $PKGVERSION.
54454         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
54455         ($(objpfx)pkgvers.texi): New rule.
54456         ($(objpfx)stamp-pkgvers): Likewise.
54457         * manual/install.texi: Include pkgvers.texi.
54458         (--with-pkgversion): Document new configure option.
54459         (--with-bugurl): Likewise.
54460         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
54461         than necessarily for this particular distribution.  Use
54462         REPORT_BUGS_TO for where to report bugs.
54463         * INSTALL: Regenerated.
54464         * manual/libc.texinfo: Include pkgvers.texi.
54465         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
54466         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
54467         (print_version): Use PKGVERSION.
54468         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
54469         (print_version): Use PKGVERSION.
54470         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
54471         (print_version): Use PKGVERSION.
54472         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
54473         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
54474         macro.
54475         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
54476         (print_version): Use PKGVERSION.
54477         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
54478         (print_version): Use PKGVERSION.
54479         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
54480         and PKGVERSION.
54481
54482         * timezone/checktab.awk: Update from tzcode 2012i.
54483         * timezone/ialloc.c: Likewise.
54484         * timezone/private.h: Likewise.
54485         * timezone/scheck.c: Likewise.
54486         * timezone/tzfile.h: Likewise.
54487         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
54488         (TZVERSION): Hardcode tzcode version number.
54489         * timezone/zdump.c: Update from tzcode 2012i.
54490         * timezone/zic.c: Likewise.
54491         * timezone/version.h: New file.
54492         * timezone/README: Describe version.h.  Update upstream location.
54493
54494         [BZ #14824]
54495         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
54496         (mktemp): Enable declaration.
54497         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
54498         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
54499         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
54500         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
54501         Likewise.
54502         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
54503         Likewise.
54504         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
54505         Likewise.
54506         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
54507         Likewise.
54508         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
54509         Likewise.
54510         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
54511         Likewise.
54512
54513         [BZ #14821]
54514         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
54515         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
54516         for copies of such integer values.
54517         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
54518         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
54519
54520 2012-11-09  Andreas Jaeger  <aj@suse.de>
54521
54522         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
54523         definitions and declarations that are provided by
54524         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
54525
54526 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54527
54528         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
54529         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
54530         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
54531         definition.
54532
54533 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54534
54535         * elf/elf.h: Update comment before AArch64 relocations.
54536
54537 2012-11-07  David S. Miller  <davem@davemloft.net>
54538
54539         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
54540         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
54541         (__start_context): Declare.
54542         (__makecontext_ret): Delete.
54543         (__makecontext): Hook up __start_context instead of
54544         __makecontext_ret.
54545         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
54546         (sysdep_routines): Add __start_context when in stdlib.
54547
54548 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54549
54550         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
54551         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
54552         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
54553         hardcoded "nm".
54554         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
54555         (READELF): New variable.  Use it instead of hardcoded "readelf".
54556
54557 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
54558
54559         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
54560         * sysdeps/x86/Makefile: Here.
54561         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
54562         * sysdeps/x86/tst-xmmymm.sh: This.
54563
54564 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54565
54566         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
54567         expectations.
54568         [UNIX98] (pthread_barrier_t): Do not expect.
54569         [UNIX98] (pthread_barrierattr_t): Likewise.
54570         [UNIX98] (pthread_spinlock_t): Likewise.
54571         [UNIX98] (pthread_barrier_destroy): Likewise.
54572         [UNIX98] (pthread_barrier_init): Likewise.
54573         [UNIX98] (pthread_barrier_wait): Likewise.
54574         [UNIX98] (pthread_barrierattr_destroy): Likewise.
54575         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
54576         [UNIX98] (pthread_barrierattr_init): Likewise.
54577         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
54578         [UNIX98] (pthread_getcpuclockid): Likewise.
54579         [UNIX98] (pthread_mutex_timedlock): Likewise.
54580         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
54581         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
54582         [UNIX98] (pthread_sigmask): Likewise.
54583         [UNIX98] (pthread_spin_destroy): Likewise.
54584         [UNIX98] (pthread_spin_init): Likewise.
54585         [UNIX98] (pthread_spin_lock): Likewise.
54586         [UNIX98] (pthread_spin_trylock): Likewise.
54587         [UNIX98] (pthread_spin_unlock): Likewise.
54588         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
54589         Do not expect.
54590         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
54591         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
54592         [XPG3 || XPG4] (pthread_cond_t): Likewise.
54593         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
54594         [XPG3 || XPG4] (pthread_key_t): Likewise.
54595         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
54596         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
54597         [XPG3 || XPG4] (pthread_once_t): Likewise.
54598         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
54599         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
54600         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
54601         [XPG3 || XPG4] (pthread_t): Likewise.
54602
54603         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
54604         not expect.
54605         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
54606
54607         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
54608         Change function return type to int.
54609
54610         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
54611         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
54612         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
54613         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
54614         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
54615         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
54616         [!POSIX] (posix_madvise): Likewise.
54617         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
54618         && !UNIX98].
54619         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
54620         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
54621         (mode_t): Likewise.
54622         (posix_mem_offset): Likewise.
54623         (posix_typed_mem_get_info): Likewise.
54624         (posix_typed_mem_open): Likewise.
54625
54626         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
54627         Change condition to [XOPEN2K8].
54628
54629         * conform/conformtest.pl: Preprocess allow-header data with -x c
54630         instead of from stdin.
54631         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
54632         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
54633         [C99-based standards] (cerfc): Likewise.
54634         [C99-based standards] (cexp2): Likewise.
54635         [C99-based standards] (cexpm1): Likewise.
54636         [C99-based standards] (clog10): Likewise.
54637         [C99-based standards] (clog1p): Likewise.
54638         [C99-based standards] (clog2): Likewise.
54639         [C99-based standards] (clgamma): Likewise.
54640         [C99-based standards] (ctgamma): Likewise.
54641         [C99-based standards] (cerff): Likewise.
54642         [C99-based standards] (cerfcf): Likewise.
54643         [C99-based standards] (cexp2f): Likewise.
54644         [C99-based standards] (cexpm1f): Likewise.
54645         [C99-based standards] (clog10f): Likewise.
54646         [C99-based standards] (clog1pf): Likewise.
54647         [C99-based standards] (clog2f): Likewise.
54648         [C99-based standards] (clgammaf): Likewise.
54649         [C99-based standards] (ctgammaf): Likewise.
54650         [C99-based standards] (cerfl): Likewise.
54651         [C99-based standards] (cerfcl): Likewise.
54652         [C99-based standards] (cexp2l): Likewise.
54653         [C99-based standards] (cexpm1l): Likewise.
54654         [C99-based standards] (clog10l): Likewise.
54655         [C99-based standards] (clog1pl): Likewise.
54656         [C99-based standards] (clog2l): Likewise.
54657         [C99-based standards] (clgammal): Likewise.
54658         [C99-based standards] (ctgammal): Likewise.
54659         * conform/data/inttypes.h-data [C99-based standards]: Include
54660         stdint.h-data.  Remove all expectations for stdint.h contents.
54661         [C99-based standards] (PRI*): Do not allow.
54662         [C99-based standards] (SCN*): Likewise.
54663         [C99-based standards] (*_t): Likewise.
54664         [C99-based-standards] (PRId8): Expect macro.
54665         [C99-based-standards] (PRIi8): Likewise.
54666         [C99-based-standards] (PRIo8): Likewise.
54667         [C99-based-standards] (PRIu8): Likewise.
54668         [C99-based-standards] (PRIx8): Likewise.
54669         [C99-based-standards] (PRIX8): Likewise.
54670         [C99-based-standards] (SCNd8): Likewise.
54671         [C99-based-standards] (SCNi8): Likewise.
54672         [C99-based-standards] (SCNo8): Likewise.
54673         [C99-based-standards] (SCNu8): Likewise.
54674         [C99-based-standards] (SCNx8): Likewise.
54675         [C99-based-standards] (PRIdLEAST8): Likewise.
54676         [C99-based-standards] (PRIiLEAST8): Likewise.
54677         [C99-based-standards] (PRIoLEAST8): Likewise.
54678         [C99-based-standards] (PRIuLEAST8): Likewise.
54679         [C99-based-standards] (PRIxLEAST8): Likewise.
54680         [C99-based-standards] (PRIXLEAST8): Likewise.
54681         [C99-based-standards] (SCNdLEAST8): Likewise.
54682         [C99-based-standards] (SCNiLEAST8): Likewise.
54683         [C99-based-standards] (SCNoLEAST8): Likewise.
54684         [C99-based-standards] (SCNuLEAST8): Likewise.
54685         [C99-based-standards] (SCNxLEAST8): Likewise.
54686         [C99-based-standards] (PRIdFAST8): Likewise.
54687         [C99-based-standards] (PRIiFAST8): Likewise.
54688         [C99-based-standards] (PRIoFAST8): Likewise.
54689         [C99-based-standards] (PRIuFAST8): Likewise.
54690         [C99-based-standards] (PRIxFAST8): Likewise.
54691         [C99-based-standards] (PRIXFAST8): Likewise.
54692         [C99-based-standards] (SCNdFAST8): Likewise.
54693         [C99-based-standards] (SCNiFAST8): Likewise.
54694         [C99-based-standards] (SCNoFAST8): Likewise.
54695         [C99-based-standards] (SCNuFAST8): Likewise.
54696         [C99-based-standards] (SCNxFAST8): Likewise.
54697         [C99-based-standards] (PRId16): Likewise.
54698         [C99-based-standards] (PRIi16): Likewise.
54699         [C99-based-standards] (PRIo16): Likewise.
54700         [C99-based-standards] (PRIu16): Likewise.
54701         [C99-based-standards] (PRIx16): Likewise.
54702         [C99-based-standards] (PRIX16): Likewise.
54703         [C99-based-standards] (SCNd16): Likewise.
54704         [C99-based-standards] (SCNi16): Likewise.
54705         [C99-based-standards] (SCNo16): Likewise.
54706         [C99-based-standards] (SCNu16): Likewise.
54707         [C99-based-standards] (SCNx16): Likewise.
54708         [C99-based-standards] (PRIdLEAST16): Likewise.
54709         [C99-based-standards] (PRIiLEAST16): Likewise.
54710         [C99-based-standards] (PRIoLEAST16): Likewise.
54711         [C99-based-standards] (PRIuLEAST16): Likewise.
54712         [C99-based-standards] (PRIxLEAST16): Likewise.
54713         [C99-based-standards] (PRIXLEAST16): Likewise.
54714         [C99-based-standards] (SCNdLEAST16): Likewise.
54715         [C99-based-standards] (SCNiLEAST16): Likewise.
54716         [C99-based-standards] (SCNoLEAST16): Likewise.
54717         [C99-based-standards] (SCNuLEAST16): Likewise.
54718         [C99-based-standards] (SCNxLEAST16): Likewise.
54719         [C99-based-standards] (PRIdFAST16): Likewise.
54720         [C99-based-standards] (PRIiFAST16): Likewise.
54721         [C99-based-standards] (PRIoFAST16): Likewise.
54722         [C99-based-standards] (PRIuFAST16): Likewise.
54723         [C99-based-standards] (PRIxFAST16): Likewise.
54724         [C99-based-standards] (PRIXFAST16): Likewise.
54725         [C99-based-standards] (SCNdFAST16): Likewise.
54726         [C99-based-standards] (SCNiFAST16): Likewise.
54727         [C99-based-standards] (SCNoFAST16): Likewise.
54728         [C99-based-standards] (SCNuFAST16): Likewise.
54729         [C99-based-standards] (SCNxFAST16): Likewise.
54730         [C99-based-standards] (PRId32): Likewise.
54731         [C99-based-standards] (PRIi32): Likewise.
54732         [C99-based-standards] (PRIo32): Likewise.
54733         [C99-based-standards] (PRIu32): Likewise.
54734         [C99-based-standards] (PRIx32): Likewise.
54735         [C99-based-standards] (PRIX32): Likewise.
54736         [C99-based-standards] (SCNd32): Likewise.
54737         [C99-based-standards] (SCNi32): Likewise.
54738         [C99-based-standards] (SCNo32): Likewise.
54739         [C99-based-standards] (SCNu32): Likewise.
54740         [C99-based-standards] (SCNx32): Likewise.
54741         [C99-based-standards] (PRIdLEAST32): Likewise.
54742         [C99-based-standards] (PRIiLEAST32): Likewise.
54743         [C99-based-standards] (PRIoLEAST32): Likewise.
54744         [C99-based-standards] (PRIuLEAST32): Likewise.
54745         [C99-based-standards] (PRIxLEAST32): Likewise.
54746         [C99-based-standards] (PRIXLEAST32): Likewise.
54747         [C99-based-standards] (SCNdLEAST32): Likewise.
54748         [C99-based-standards] (SCNiLEAST32): Likewise.
54749         [C99-based-standards] (SCNoLEAST32): Likewise.
54750         [C99-based-standards] (SCNuLEAST32): Likewise.
54751         [C99-based-standards] (SCNxLEAST32): Likewise.
54752         [C99-based-standards] (PRIdFAST32): Likewise.
54753         [C99-based-standards] (PRIiFAST32): Likewise.
54754         [C99-based-standards] (PRIoFAST32): Likewise.
54755         [C99-based-standards] (PRIuFAST32): Likewise.
54756         [C99-based-standards] (PRIxFAST32): Likewise.
54757         [C99-based-standards] (PRIXFAST32): Likewise.
54758         [C99-based-standards] (SCNdFAST32): Likewise.
54759         [C99-based-standards] (SCNiFAST32): Likewise.
54760         [C99-based-standards] (SCNoFAST32): Likewise.
54761         [C99-based-standards] (SCNuFAST32): Likewise.
54762         [C99-based-standards] (SCNxFAST32): Likewise.
54763         [C99-based-standards] (PRId64): Likewise.
54764         [C99-based-standards] (PRIi64): Likewise.
54765         [C99-based-standards] (PRIo64): Likewise.
54766         [C99-based-standards] (PRIu64): Likewise.
54767         [C99-based-standards] (PRIx64): Likewise.
54768         [C99-based-standards] (PRIX64): Likewise.
54769         [C99-based-standards] (SCNd64): Likewise.
54770         [C99-based-standards] (SCNi64): Likewise.
54771         [C99-based-standards] (SCNo64): Likewise.
54772         [C99-based-standards] (SCNu64): Likewise.
54773         [C99-based-standards] (SCNx64): Likewise.
54774         [C99-based-standards] (PRIdLEAST64): Likewise.
54775         [C99-based-standards] (PRIiLEAST64): Likewise.
54776         [C99-based-standards] (PRIoLEAST64): Likewise.
54777         [C99-based-standards] (PRIuLEAST64): Likewise.
54778         [C99-based-standards] (PRIxLEAST64): Likewise.
54779         [C99-based-standards] (PRIXLEAST64): Likewise.
54780         [C99-based-standards] (SCNdLEAST64): Likewise.
54781         [C99-based-standards] (SCNiLEAST64): Likewise.
54782         [C99-based-standards] (SCNoLEAST64): Likewise.
54783         [C99-based-standards] (SCNuLEAST64): Likewise.
54784         [C99-based-standards] (SCNxLEAST64): Likewise.
54785         [C99-based-standards] (PRIdFAST64): Likewise.
54786         [C99-based-standards] (PRIiFAST64): Likewise.
54787         [C99-based-standards] (PRIoFAST64): Likewise.
54788         [C99-based-standards] (PRIuFAST64): Likewise.
54789         [C99-based-standards] (PRIxFAST64): Likewise.
54790         [C99-based-standards] (PRIXFAST64): Likewise.
54791         [C99-based-standards] (SCNdFAST64): Likewise.
54792         [C99-based-standards] (SCNiFAST64): Likewise.
54793         [C99-based-standards] (SCNoFAST64): Likewise.
54794         [C99-based-standards] (SCNuFAST64): Likewise.
54795         [C99-based-standards] (SCNxFAST64): Likewise.
54796         [C99-based-standards] (PRIdMAX): Likewise.
54797         [C99-based-standards] (PRIiMAX): Likewise.
54798         [C99-based-standards] (PRIoMAX): Likewise.
54799         [C99-based-standards] (PRIuMAX): Likewise.
54800         [C99-based-standards] (PRIxMAX): Likewise.
54801         [C99-based-standards] (PRIXMAX): Likewise.
54802         [C99-based-standards] (SCNdMAX): Likewise.
54803         [C99-based-standards] (SCNiMAX): Likewise.
54804         [C99-based-standards] (SCNoMAX): Likewise.
54805         [C99-based-standards] (SCNuMAX): Likewise.
54806         [C99-based-standards] (SCNxMAX): Likewise.
54807         [C99-based-standards] (PRIdPTR): Likewise.
54808         [C99-based-standards] (PRIiPTR): Likewise.
54809         [C99-based-standards] (PRIoPTR): Likewise.
54810         [C99-based-standards] (PRIuPTR): Likewise.
54811         [C99-based-standards] (PRIxPTR): Likewise.
54812         [C99-based-standards] (PRIXPTR): Likewise.
54813         [C99-based-standards] (SCNdPTR): Likewise.
54814         [C99-based-standards] (SCNiPTR): Likewise.
54815         [C99-based-standards] (SCNoPTR): Likewise.
54816         [C99-based-standards] (SCNuPTR): Likewise.
54817         [C99-based-standards] (SCNxPTR): Likewise.
54818         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
54819         allow.
54820         * conform/data/stdint.h-data: Update comments to clarify
54821         requirements.
54822         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
54823         type.
54824         [C99-based standards] (INT8_MAX): Likewise.
54825         [C99-based standards] (INT16_MIN): Likewise.
54826         [C99-based standards] (INT16_MAX): Likewise.
54827         [C99-based standards] (INT32_MIN): Likewise.
54828         [C99-based standards] (INT32_MAX): Likewise.
54829         [C99-based standards] (INT64_MIN): Likewise.
54830         [C99-based standards] (INT64_MAX): Likewise.
54831         [C99-based standards] (UINT8_MAX): Likewise.
54832         [C99-based standards] (UINT16_MAX): Likewise.
54833         [C99-based standards] (UINT32_MAX): Likewise.
54834         [C99-based standards] (UINT64_MAX): Likewise.
54835         [C99-based standards] (INT_LEAST8_MIN): Likewise.
54836         [C99-based standards] (INT_LEAST8_MAX): Likewise.
54837         [C99-based standards] (INT_LEAST16_MIN): Likewise.
54838         [C99-based standards] (INT_LEAST16_MAX): Likewise.
54839         [C99-based standards] (INT_LEAST32_MIN): Likewise.
54840         [C99-based standards] (INT_LEAST32_MAX): Likewise.
54841         [C99-based standards] (INT_LEAST64_MIN): Likewise.
54842         [C99-based standards] (INT_LEAST64_MAX): Likewise.
54843         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
54844         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
54845         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
54846         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
54847         [C99-based standards] (INT_FAST8_MIN): Likewise.
54848         [C99-based standards] (INT_FAST8_MAX): Likewise.
54849         [C99-based standards] (INT_FAST16_MIN): Likewise.
54850         [C99-based standards] (INT_FAST16_MAX): Likewise.
54851         [C99-based standards] (INT_FAST32_MIN): Likewise.
54852         [C99-based standards] (INT_FAST32_MAX): Likewise.
54853         [C99-based standards] (INT_FAST64_MIN): Likewise.
54854         [C99-based standards] (INT_FAST64_MAX): Likewise.
54855         [C99-based standards] (UINT_FAST8_MAX): Likewise.
54856         [C99-based standards] (UINT_FAST16_MAX): Likewise.
54857         [C99-based standards] (UINT_FAST32_MAX): Likewise.
54858         [C99-based standards] (UINT_FAST64_MAX): Likewise.
54859         [C99-based standards] (INTPTR_MIN): Likewise.
54860         [C99-based standards] (INTPTR_MAX): Likewise.
54861         [C99-based standards] (UINTPTR_MAX): Likewise.
54862         [C99-based standards] (INTMAX_MIN): Likewise.
54863         [C99-based standards] (INTMAX_MAX): Likewise.
54864         [C99-based standards] (UINTMAX_MAX): Likewise.
54865         [C99-based standards] (PTRDIFF_MIN): Likewise.
54866         [C99-based standards] (PTRDIFF_MAX): Likewise.
54867         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
54868         [C99-based standards] (SIZE_MAX): Likewise.
54869         [C99-based standards] (WCHAR_MAX): Likewise.
54870         [C99-based standards] (WINT_MAX): Likewise.
54871         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
54872         constraint on value.
54873         [C99-based standards] (WCHAR_MIN): Likewise.
54874         [C99-based standards] (WINT_MIN): Likewise.
54875         [C99-based standards] (*_t): Allow.
54876         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
54877         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
54878         Include math.h-data and complex.h-data.  Remove all expectations
54879         of math.h and complex.h contents.
54880         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
54881         at end of line.
54882         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
54883         (struct tm): Expect tag.
54884         [C99-based-standards] (wcstof): Expect function.
54885         [C99-based-standards] (wcstold): Likewise.
54886         [C99-based-standards] (wcstoll): Likewise.
54887         [C99-based-standards] (wcstoull): Likewise.
54888         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
54889         macro-int-constant.  Specify type.
54890         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
54891         constraint on value.
54892         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
54893         Specify type.
54894         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
54895         Specify value.
54896         [ISO C standards]: Do not allow headers.
54897         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
54898         wcs[abcdefghijklmnopqrstuvwxyz]*.
54899         [ISO C standards] (*_t): Do not allow.
54900         * conform/data/wctype.h-data [C99-based standards] (iswblank):
54901         Expect function.
54902         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
54903         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
54904         Specify type.
54905         [ISO C standards]: Do not allow headers.
54906         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
54907         is[abcdefghijklmnopqrstuvwxyz]*.
54908         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
54909         to[abcdefghijklmnopqrstuvwxyz]*.
54910         [ISO C standards] (*_t): Do not allow.
54911         * conform/data/stdalign.h-data: New file.
54912         * conform/data/stdbool.h-data: Likewise.
54913         * conform/data/stdnoreturn.h-data: Likewise.
54914
54915 2012-11-07  Roland McGrath  <roland@hack.frob.com>
54916
54917         [BZ #14815]
54918         * manual/filesys.texi (Directory Entries): Typo fix.
54919         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
54920
54921 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54922
54923         * elf/elf.h (EM_AARCH64): New macro.
54924         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
54925         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
54926         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
54927         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
54928         (R_AARCH64_TLSDESC): Likewise.
54929         (NT_ARM_TLS): Likewise.
54930         (NT_ARM_HW_BREAK): Likewise.
54931         (NT_ARM_HW_WATCH): Likewise.
54932
54933 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54934
54935         [BZ #14811]
54936         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
54937         (__ieee754_powl): Saturate nonzero exponents with absolute value
54938         below 0x1p-79 to +/- 0x1p-79.
54939         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
54940         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
54941         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
54942         nonzero exponents with absolute value below 0x1p-32 to +/-
54943         0x1p-32.
54944         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
54945         (__ieee754_powl): Saturate nonzero exponents with absolute value
54946         below 0x1p-79 to +/- 0x1p-79.
54947         * math/libm-test.inc (pow_test): Add more tests.
54948
54949 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
54950
54951         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
54952         _dl_s390_cap_flags with kernel. Increase string length.
54953         (_dl_s390_platforms): Add z196 and zEC12.
54954
54955 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
54956
54957         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
54958         Change XOPEN21K to XOPEN2K.
54959
54960 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
54961
54962         * string/memmove.c: Use memcpy when possible.
54963
54964 2012-11-06  Andreas Jaeger  <aj@suse.de>
54965
54966         * po/eo.po: Update from translation team.
54967
54968 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
54969
54970         [BZ #14793]
54971         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
54972         exponent and small x and y exponents, scale x or y up.  Increase
54973         by 2 the exponent used in scaling up.
54974         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
54975         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
54976         * math/libm-test.inc (fma_test): Add more tests.
54977         (fma_test_towardzero): Likewise.
54978         (fma_test_downward): Likewise.
54979         (fma_test_upward): Likewise.
54980
54981 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
54982
54983         [BZ #14805]
54984         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
54985         fenv_t *.
54986
54987         [BZ #14801]
54988         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
54989         namespace for names of struct fields.
54990         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
54991         fenv_t fields.
54992         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
54993         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
54994
54995 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
54996
54997         [BZ #3665]
54998         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
54999
55000 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55001
55002         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
55003         PTR_DEMANGLE.
55004
55005         [BZ #5246]
55006         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
55007         PTR_DEMANGLE.
55008
55009 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
55010
55011         [BZ #14797]
55012         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
55013         definitely overflow as x * y not x * y + z.
55014         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55015         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55016         * math/libm-test.inc (fma_test): Add more tests.
55017         (fma_test_towardzero): Likewise.
55018         (fma_test_downward): Likewise.
55019         (fma_test_upward): Likewise.
55020
55021 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55022
55023         [BZ #157]
55024
55025         * include/stub-tag.h: Remove file.
55026         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
55027         '#include' of it.
55028         * manual/maint.texi (Porting): Don't reference it.
55029         * Makerules ($(objpfx)stubs): Likewise.
55030         * dirent/closedir.c: Don't include <stub-tag.h>.
55031         * dirent/dirfd.c: Likewise.
55032         * dirent/fdopendir.c: Likewise.
55033         * dirent/getdents.c: Likewise.
55034         * dirent/getdents64.c: Likewise.
55035         * dirent/opendir.c: Likewise.
55036         * dirent/readdir.c: Likewise.
55037         * dirent/readdir64.c: Likewise.
55038         * dirent/readdir64_r.c: Likewise.
55039         * dirent/readdir_r.c: Likewise.
55040         * dirent/rewinddir.c: Likewise.
55041         * dirent/seekdir.c: Likewise.
55042         * dirent/telldir.c: Likewise.
55043         * gmon/profil.c: Likewise.
55044         * grp/setgroups.c: Likewise.
55045         * inet/if_index.c: Likewise.
55046         * io/access.c: Likewise.
55047         * io/chdir.c: Likewise.
55048         * io/chmod.c: Likewise.
55049         * io/chown.c: Likewise.
55050         * io/close.c: Likewise.
55051         * io/dup.c: Likewise.
55052         * io/dup2.c: Likewise.
55053         * io/dup3.c: Likewise.
55054         * io/euidaccess.c: Likewise.
55055         * io/faccessat.c: Likewise.
55056         * io/fchdir.c: Likewise.
55057         * io/fchmod.c: Likewise.
55058         * io/fchmodat.c: Likewise.
55059         * io/fchown.c: Likewise.
55060         * io/fchownat.c: Likewise.
55061         * io/fcntl.c: Likewise.
55062         * io/flock.c: Likewise.
55063         * io/fstatfs.c: Likewise.
55064         * io/fstatfs64.c: Likewise.
55065         * io/fstatvfs.c: Likewise.
55066         * io/fstatvfs64.c: Likewise.
55067         * io/futimens.c: Likewise.
55068         * io/fxstat.c: Likewise.
55069         * io/fxstat64.c: Likewise.
55070         * io/fxstatat.c: Likewise.
55071         * io/fxstatat64.c: Likewise.
55072         * io/getcwd.c: Likewise.
55073         * io/isatty.c: Likewise.
55074         * io/lchmod.c: Likewise.
55075         * io/lchown.c: Likewise.
55076         * io/link.c: Likewise.
55077         * io/linkat.c: Likewise.
55078         * io/lseek.c: Likewise.
55079         * io/lseek64.c: Likewise.
55080         * io/lxstat64.c: Likewise.
55081         * io/mkdir.c: Likewise.
55082         * io/mkdirat.c: Likewise.
55083         * io/mkfifo.c: Likewise.
55084         * io/mkfifoat.c: Likewise.
55085         * io/open.c: Likewise.
55086         * io/open64.c: Likewise.
55087         * io/openat.c: Likewise.
55088         * io/openat64.c: Likewise.
55089         * io/pipe.c: Likewise.
55090         * io/pipe2.c: Likewise.
55091         * io/poll.c: Likewise.
55092         * io/posix_fadvise.c: Likewise.
55093         * io/posix_fadvise64.c: Likewise.
55094         * io/posix_fallocate.c: Likewise.
55095         * io/posix_fallocate64.c: Likewise.
55096         * io/read.c: Likewise.
55097         * io/readlink.c: Likewise.
55098         * io/readlinkat.c: Likewise.
55099         * io/rmdir.c: Likewise.
55100         * io/sendfile.c: Likewise.
55101         * io/sendfile64.c: Likewise.
55102         * io/statfs.c: Likewise.
55103         * io/statfs64.c: Likewise.
55104         * io/statvfs.c: Likewise.
55105         * io/statvfs64.c: Likewise.
55106         * io/symlink.c: Likewise.
55107         * io/symlinkat.c: Likewise.
55108         * io/ttyname.c: Likewise.
55109         * io/ttyname_r.c: Likewise.
55110         * io/umask.c: Likewise.
55111         * io/unlink.c: Likewise.
55112         * io/unlinkat.c: Likewise.
55113         * io/utime.c: Likewise.
55114         * io/utimensat.c: Likewise.
55115         * io/write.c: Likewise.
55116         * io/xmknod.c: Likewise.
55117         * io/xmknodat.c: Likewise.
55118         * io/xstat.c: Likewise.
55119         * io/xstat64.c: Likewise.
55120         * login/getpt.c: Likewise.
55121         * login/grantpt.c: Likewise.
55122         * login/unlockpt.c: Likewise.
55123         * math/e_acoshl.c: Likewise.
55124         * math/e_acosl.c: Likewise.
55125         * math/e_asinl.c: Likewise.
55126         * math/e_atan2l.c: Likewise.
55127         * math/e_atanhl.c: Likewise.
55128         * math/e_coshl.c: Likewise.
55129         * math/e_expl.c: Likewise.
55130         * math/e_fmodl.c: Likewise.
55131         * math/e_gammal_r.c: Likewise.
55132         * math/e_hypotl.c: Likewise.
55133         * math/e_j0l.c: Likewise.
55134         * math/e_j1l.c: Likewise.
55135         * math/e_jnl.c: Likewise.
55136         * math/e_lgammal_r.c: Likewise.
55137         * math/e_log10l.c: Likewise.
55138         * math/e_log2l.c: Likewise.
55139         * math/e_logl.c: Likewise.
55140         * math/e_powl.c: Likewise.
55141         * math/e_rem_pio2l.c: Likewise.
55142         * math/e_sinhl.c: Likewise.
55143         * math/e_sqrtl.c: Likewise.
55144         * math/fclrexcpt.c: Likewise.
55145         * math/fedisblxcpt.c: Likewise.
55146         * math/feenablxcpt.c: Likewise.
55147         * math/fegetenv.c: Likewise.
55148         * math/fegetexcept.c: Likewise.
55149         * math/fegetround.c: Likewise.
55150         * math/feholdexcpt.c: Likewise.
55151         * math/fesetenv.c: Likewise.
55152         * math/fesetround.c: Likewise.
55153         * math/feupdateenv.c: Likewise.
55154         * math/fgetexcptflg.c: Likewise.
55155         * math/fraiseexcpt.c: Likewise.
55156         * math/fsetexcptflg.c: Likewise.
55157         * math/ftestexcept.c: Likewise.
55158         * math/k_cosl.c: Likewise.
55159         * math/k_rem_pio2l.c: Likewise.
55160         * math/k_sinl.c: Likewise.
55161         * math/k_tanl.c: Likewise.
55162         * math/s_asinhl.c: Likewise.
55163         * math/s_atanl.c: Likewise.
55164         * math/s_cbrtl.c: Likewise.
55165         * math/s_erfl.c: Likewise.
55166         * math/s_expm1l.c: Likewise.
55167         * math/s_log1pl.c: Likewise.
55168         * math/s_tanhl.c: Likewise.
55169         * misc/acct.c: Likewise.
55170         * misc/brk.c: Likewise.
55171         * misc/chflags.c: Likewise.
55172         * misc/chroot.c: Likewise.
55173         * misc/fchflags.c: Likewise.
55174         * misc/fgetxattr.c: Likewise.
55175         * misc/flistxattr.c: Likewise.
55176         * misc/fremovexattr.c: Likewise.
55177         * misc/fsetxattr.c: Likewise.
55178         * misc/fsync.c: Likewise.
55179         * misc/ftruncate.c: Likewise.
55180         * misc/futimes.c: Likewise.
55181         * misc/futimesat.c: Likewise.
55182         * misc/getdomain.c: Likewise.
55183         * misc/getdtsz.c: Likewise.
55184         * misc/gethostid.c: Likewise.
55185         * misc/gethostname.c: Likewise.
55186         * misc/getloadavg.c: Likewise.
55187         * misc/getpagesize.c: Likewise.
55188         * misc/getsysstats.c: Likewise.
55189         * misc/getxattr.c: Likewise.
55190         * misc/gtty.c: Likewise.
55191         * misc/ioctl.c: Likewise.
55192         * misc/lgetxattr.c: Likewise.
55193         * misc/listxattr.c: Likewise.
55194         * misc/llistxattr.c: Likewise.
55195         * misc/lremovexattr.c: Likewise.
55196         * misc/lsetxattr.c: Likewise.
55197         * misc/lutimes.c: Likewise.
55198         * misc/madvise.c: Likewise.
55199         * misc/mincore.c: Likewise.
55200         * misc/mlock.c: Likewise.
55201         * misc/mlockall.c: Likewise.
55202         * misc/mmap.c: Likewise.
55203         * misc/mprotect.c: Likewise.
55204         * misc/msync.c: Likewise.
55205         * misc/munlock.c: Likewise.
55206         * misc/munlockall.c: Likewise.
55207         * misc/munmap.c: Likewise.
55208         * misc/preadv.c: Likewise.
55209         * misc/preadv64.c: Likewise.
55210         * misc/ptrace.c: Likewise.
55211         * misc/pwritev.c: Likewise.
55212         * misc/pwritev64.c: Likewise.
55213         * misc/readv.c: Likewise.
55214         * misc/reboot.c: Likewise.
55215         * misc/remap_file_pages.c: Likewise.
55216         * misc/removexattr.c: Likewise.
55217         * misc/revoke.c: Likewise.
55218         * misc/select.c: Likewise.
55219         * misc/setdomain.c: Likewise.
55220         * misc/setegid.c: Likewise.
55221         * misc/seteuid.c: Likewise.
55222         * misc/sethostid.c: Likewise.
55223         * misc/sethostname.c: Likewise.
55224         * misc/setregid.c: Likewise.
55225         * misc/setreuid.c: Likewise.
55226         * misc/setxattr.c: Likewise.
55227         * misc/sstk.c: Likewise.
55228         * misc/stty.c: Likewise.
55229         * misc/swapoff.c: Likewise.
55230         * misc/swapon.c: Likewise.
55231         * misc/sync.c: Likewise.
55232         * misc/syncfs.c: Likewise.
55233         * misc/syscall.c: Likewise.
55234         * misc/truncate.c: Likewise.
55235         * misc/ualarm.c: Likewise.
55236         * misc/usleep.c: Likewise.
55237         * misc/ustat.c: Likewise.
55238         * misc/utimes.c: Likewise.
55239         * misc/vhangup.c: Likewise.
55240         * misc/writev.c: Likewise.
55241         * posix/_exit.c: Likewise.
55242         * posix/alarm.c: Likewise.
55243         * posix/execve.c: Likewise.
55244         * posix/fexecve.c: Likewise.
55245         * posix/fork.c: Likewise.
55246         * posix/fpathconf.c: Likewise.
55247         * posix/getaddrinfo.c: Likewise.
55248         * posix/getegid.c: Likewise.
55249         * posix/geteuid.c: Likewise.
55250         * posix/getgid.c: Likewise.
55251         * posix/getgroups.c: Likewise.
55252         * posix/getlogin.c: Likewise.
55253         * posix/getlogin_r.c: Likewise.
55254         * posix/getpgid.c: Likewise.
55255         * posix/getpid.c: Likewise.
55256         * posix/getppid.c: Likewise.
55257         * posix/getresgid.c: Likewise.
55258         * posix/getresuid.c: Likewise.
55259         * posix/getsid.c: Likewise.
55260         * posix/getuid.c: Likewise.
55261         * posix/glob64.c: Likewise.
55262         * posix/nanosleep.c: Likewise.
55263         * posix/pathconf.c: Likewise.
55264         * posix/pause.c: Likewise.
55265         * posix/posix_madvise.c: Likewise.
55266         * posix/pread.c: Likewise.
55267         * posix/pread64.c: Likewise.
55268         * posix/pwrite.c: Likewise.
55269         * posix/pwrite64.c: Likewise.
55270         * posix/sched_getaffinity.c: Likewise.
55271         * posix/sched_getp.c: Likewise.
55272         * posix/sched_gets.c: Likewise.
55273         * posix/sched_primax.c: Likewise.
55274         * posix/sched_primin.c: Likewise.
55275         * posix/sched_rr_gi.c: Likewise.
55276         * posix/sched_setaffinity.c: Likewise.
55277         * posix/sched_setp.c: Likewise.
55278         * posix/sched_sets.c: Likewise.
55279         * posix/sched_yield.c: Likewise.
55280         * posix/setgid.c: Likewise.
55281         * posix/setlogin.c: Likewise.
55282         * posix/setpgid.c: Likewise.
55283         * posix/setresgid.c: Likewise.
55284         * posix/setresuid.c: Likewise.
55285         * posix/setsid.c: Likewise.
55286         * posix/setuid.c: Likewise.
55287         * posix/sleep.c: Likewise.
55288         * posix/spawni.c: Likewise.
55289         * posix/sysconf.c: Likewise.
55290         * posix/times.c: Likewise.
55291         * posix/wait.c: Likewise.
55292         * posix/wait3.c: Likewise.
55293         * posix/wait4.c: Likewise.
55294         * posix/waitpid.c: Likewise.
55295         * resolv/gai_sigqueue.c: Likewise.
55296         * resource/getpriority.c: Likewise.
55297         * resource/getrlimit.c: Likewise.
55298         * resource/getrusage.c: Likewise.
55299         * resource/nice.c: Likewise.
55300         * resource/setpriority.c: Likewise.
55301         * resource/setrlimit.c: Likewise.
55302         * resource/ulimit.c: Likewise.
55303         * rt/aio_cancel.c: Likewise.
55304         * rt/aio_fsync.c: Likewise.
55305         * rt/aio_read.c: Likewise.
55306         * rt/aio_sigqueue.c: Likewise.
55307         * rt/aio_suspend.c: Likewise.
55308         * rt/aio_write.c: Likewise.
55309         * rt/clock_getres.c: Likewise.
55310         * rt/clock_gettime.c: Likewise.
55311         * rt/clock_nanosleep.c: Likewise.
55312         * rt/clock_settime.c: Likewise.
55313         * rt/lio_listio.c: Likewise.
55314         * rt/mq_close.c: Likewise.
55315         * rt/mq_getattr.c: Likewise.
55316         * rt/mq_notify.c: Likewise.
55317         * rt/mq_open.c: Likewise.
55318         * rt/mq_receive.c: Likewise.
55319         * rt/mq_send.c: Likewise.
55320         * rt/mq_setattr.c: Likewise.
55321         * rt/mq_timedreceive.c: Likewise.
55322         * rt/mq_timedsend.c: Likewise.
55323         * rt/mq_unlink.c: Likewise.
55324         * rt/shm_open.c: Likewise.
55325         * rt/shm_unlink.c: Likewise.
55326         * rt/timer_create.c: Likewise.
55327         * rt/timer_delete.c: Likewise.
55328         * rt/timer_getoverr.c: Likewise.
55329         * rt/timer_gettime.c: Likewise.
55330         * rt/timer_settime.c: Likewise.
55331         * setjmp/__longjmp.c: Likewise.
55332         * setjmp/setjmp.c: Likewise.
55333         * signal/kill.c: Likewise.
55334         * signal/killpg.c: Likewise.
55335         * signal/raise.c: Likewise.
55336         * signal/sigaction.c: Likewise.
55337         * signal/sigaltstack.c: Likewise.
55338         * signal/sigblock.c: Likewise.
55339         * signal/sigignore.c: Likewise.
55340         * signal/sigintr.c: Likewise.
55341         * signal/signal.c: Likewise.
55342         * signal/sigpause.c: Likewise.
55343         * signal/sigpending.c: Likewise.
55344         * signal/sigqueue.c: Likewise.
55345         * signal/sigreturn.c: Likewise.
55346         * signal/sigset.c: Likewise.
55347         * signal/sigsetmask.c: Likewise.
55348         * signal/sigstack.c: Likewise.
55349         * signal/sigsuspend.c: Likewise.
55350         * signal/sigtimedwait.c: Likewise.
55351         * signal/sigvec.c: Likewise.
55352         * signal/sigwait.c: Likewise.
55353         * signal/sigwaitinfo.c: Likewise.
55354         * signal/sysv_signal.c: Likewise.
55355         * socket/accept.c: Likewise.
55356         * socket/accept4.c: Likewise.
55357         * socket/bind.c: Likewise.
55358         * socket/connect.c: Likewise.
55359         * socket/getpeername.c: Likewise.
55360         * socket/getsockname.c: Likewise.
55361         * socket/getsockopt.c: Likewise.
55362         * socket/isfdtype.c: Likewise.
55363         * socket/listen.c: Likewise.
55364         * socket/recv.c: Likewise.
55365         * socket/recvfrom.c: Likewise.
55366         * socket/recvmsg.c: Likewise.
55367         * socket/send.c: Likewise.
55368         * socket/sendmsg.c: Likewise.
55369         * socket/sendto.c: Likewise.
55370         * socket/setsockopt.c: Likewise.
55371         * socket/shutdown.c: Likewise.
55372         * socket/sockatmark.c: Likewise.
55373         * socket/socket.c: Likewise.
55374         * socket/socketpair.c: Likewise.
55375         * stdio-common/ctermid.c: Likewise.
55376         * stdio-common/cuserid.c: Likewise.
55377         * stdio-common/remove.c: Likewise.
55378         * stdio-common/rename.c: Likewise.
55379         * stdio-common/renameat.c: Likewise.
55380         * stdio-common/tempname.c: Likewise.
55381         * stdlib/getcontext.c: Likewise.
55382         * stdlib/makecontext.c: Likewise.
55383         * stdlib/setcontext.c: Likewise.
55384         * stdlib/swapcontext.c: Likewise.
55385         * stdlib/system.c: Likewise.
55386         * streams/fattach.c: Likewise.
55387         * streams/fdetach.c: Likewise.
55388         * streams/getmsg.c: Likewise.
55389         * streams/getpmsg.c: Likewise.
55390         * streams/putmsg.c: Likewise.
55391         * streams/putpmsg.c: Likewise.
55392         * sysdeps/unix/bsd/getpt.c: Likewise.
55393         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
55394         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
55395         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
55396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
55397         Likewise.
55398         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
55399         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
55400         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
55401         * sysvipc/msgctl.c: Likewise.
55402         * sysvipc/msgget.c: Likewise.
55403         * sysvipc/msgrcv.c: Likewise.
55404         * sysvipc/msgsnd.c: Likewise.
55405         * sysvipc/semctl.c: Likewise.
55406         * sysvipc/semget.c: Likewise.
55407         * sysvipc/semop.c: Likewise.
55408         * sysvipc/semtimedop.c: Likewise.
55409         * sysvipc/shmat.c: Likewise.
55410         * sysvipc/shmctl.c: Likewise.
55411         * sysvipc/shmdt.c: Likewise.
55412         * sysvipc/shmget.c: Likewise.
55413         * termios/tcdrain.c: Likewise.
55414         * termios/tcflow.c: Likewise.
55415         * termios/tcflush.c: Likewise.
55416         * termios/tcgetattr.c: Likewise.
55417         * termios/tcgetpgrp.c: Likewise.
55418         * termios/tcsendbrk.c: Likewise.
55419         * termios/tcsetattr.c: Likewise.
55420         * termios/tcsetpgrp.c: Likewise.
55421         * time/adjtime.c: Likewise.
55422         * time/clock.c: Likewise.
55423         * time/getitimer.c: Likewise.
55424         * time/gettimeofday.c: Likewise.
55425         * time/setitimer.c: Likewise.
55426         * time/settimeofday.c: Likewise.
55427         * time/stime.c: Likewise.
55428         * time/time.c: Likewise.
55429
55430 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
55431
55432         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
55433         /usr/old/bin.
55434
55435         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
55436         instead of spaces.
55437         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
55438
55439 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
55440
55441         [BZ #14796]
55442         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
55443         FE_TONEAREST before applying Dekker multiplication and Knuth
55444         addition.  Clear inexact exceptions and check for exact zero
55445         results afterwards.
55446         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55447         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
55448         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55449         * math/libm-test.inc (fma_test): Add more tests.
55450         (fma_test_towardzero): Likewise.
55451         (fma_test_downward): Likewise.
55452         (fma_test_upward): Likewise.
55453         * sysdeps/generic/math_private.h (default_libc_fesetround): New
55454         function.
55455         (libc_fesetround): New macro.
55456         (libc_fesetroundf): Likewise.
55457         (libc_fesetroundl): Likewise.
55458         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
55459         function.
55460         (libc_fesetround_387): Likewise.
55461         (libc_fesetroundf): New macro.
55462         (libc_fesetround): Likewise.
55463         (libc_fesetroundl): Likewise.
55464         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
55465         function.
55466         (libc_fesetroundf): New macro.
55467         (libc_fesetround): Likewise.
55468         (libc_fesetroundl): Likewise.
55469         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
55470         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
55471         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
55472         libm_hidden_ver.
55473         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
55474         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
55475         libm_hidden_def.
55476         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
55477         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
55478         libm_hidden_ver.
55479         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
55480         libm_hidden_def.
55481
55482         [BZ #3439]
55483         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
55484         integer constant usable in #if and use that to give value to enum
55485         constant.
55486         (FE_DIVBYZERO): Likewise.
55487         (FE_UNDERFLOW): Likewise.
55488         (FE_OVERFLOW): Likewise.
55489         (FE_INVALID): Likewise.
55490         (FE_INVALID_SNAN): Likewise.
55491         (FE_INVALID_ISI): Likewise.
55492         (FE_INVALID_IDI): Likewise.
55493         (FE_INVALID_ZDZ): Likewise.
55494         (FE_INVALID_IMZ): Likewise.
55495         (FE_INVALID_COMPARE): Likewise.
55496         (FE_INVALID_SOFTWARE): Likewise.
55497         (FE_INVALID_SQRT): Likewise.
55498         (FE_INVALID_INTEGER_CONVERSION): Likewise.
55499         (FE_TONEAREST): Likewise.
55500         (FE_TOWARDZERO): Likewise.
55501         (FE_UPWARD): Likewise.
55502         (FE_DOWNWARD): Likewise.
55503         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
55504         (FE_DIVBYZERO): Likewise.
55505         (FE_OVERFLOW): Likewise.
55506         (FE_UNDERFLOW): Likewise.
55507         (FE_INEXACT): Likewise.
55508         (FE_TONEAREST): Likewise.
55509         (FE_DOWNWARD): Likewise.
55510         (FE_UPWARD): Likewise.
55511         (FE_TOWARDZERO): Likewise.
55512         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
55513         (FE_UNDERFLOW): Likewise.
55514         (FE_OVERFLOW): Likewise.
55515         (FE_DIVBYZERO): Likewise.
55516         (FE_INVALID): Likewise.
55517         (FE_TONEAREST): Likewise.
55518         (FE_TOWARDZERO): Likewise.
55519         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
55520         (FE_OVERFLOW): Likewise.
55521         (FE_UNDERFLOW): Likewise.
55522         (FE_DIVBYZERO): Likewise.
55523         (FE_INEXACT): Likewise.
55524         (FE_TONEAREST): Likewise.
55525         (FE_TOWARDZERO): Likewise.
55526         (FE_UPWARD): Likewise.
55527         (FE_DOWNWARD): Likewise.
55528         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
55529         (FE_DIVBYZERO): Likewise.
55530         (FE_OVERFLOW): Likewise.
55531         (FE_UNDERFLOW): Likewise.
55532         (FE_INEXACT): Likewise.
55533         (FE_TONEAREST): Likewise.
55534         (FE_DOWNWARD): Likewise.
55535         (FE_UPWARD): Likewise.
55536         (FE_TOWARDZERO): Likewise.
55537
55538 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
55539
55540         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
55541
55542 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
55543
55544         * scripts/cross-test-ssh.sh (command): Use newlines to separate
55545         commands.  Quote $PWD.
55546         (blacklist_exports): Don't use remove_newlines.  Replace "declare
55547         -x" by "export".
55548         (remove_newlines): Remove.
55549
55550 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
55551
55552         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
55553         * stdlib/stdlib.h (atof): Moved to ...
55554         * include/bits/stdlib-float.h: Here.  New file.
55555         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
55556         * stdlib/bits/stdlib-float.h: New file.
55557         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
55558         -mno-sse -mno-mmx.
55559         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
55560         <xmmintrin.h>.
55561
55562 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
55563
55564         * conform/conformtest.pl (@headers): Add fenv.h.
55565         * conform/data/fenv.h-data: New file.
55566         * include/fenv.h [_ISOMAC]: Disable all contents of file except
55567         include of <math/fenv.h>.
55568
55569         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
55570         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
55571         && !UNIX98].  Enables tests for XOPEN2K8.
55572         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
55573         POSIX2008]: Likewise.
55574
55575         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
55576         (struct rusage): Do not expect type or its members.
55577
55578         [BZ #3439]
55579         * math/math.h (FP_NAN): Define macro to integer constant usable in
55580         #if and use that to give value to enum constant.
55581         (FP_INFINITE): Likewise.
55582         (FP_ZERO): Likewise.
55583         (FP_SUBNORMAL): Likewise.
55584         (FP_NORMAL): Likewise.
55585
55586 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
55587
55588         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
55589         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
55590         arguments.
55591
55592 2012-11-02  Roland McGrath  <roland@hack.frob.com>
55593
55594         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
55595         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
55596         autoconf-time if not.
55597         * configure.in: Remove AC_PREREQ.
55598
55599 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55600
55601         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
55602         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
55603         of the internal implementation.
55604
55605 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
55606
55607         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
55608         except include of <misc/sys/syslog.h>.
55609
55610 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
55611
55612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
55613         function returns with a NULL context exit with zero.
55614
55615 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55616
55617         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
55618
55619 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
55620
55621         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
55622         (run_program_cmd): This.
55623         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
55624         (tst_langinfo): New variable.  Use it.
55625
55626 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
55627
55628         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
55629         floating point opcodes.
55630
55631 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55632
55633         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
55634         variable.
55635
55636         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
55637
55638         * sysdeps/mach/hurd/powerpc: Remove directory.
55639         * sysdeps/mach/powerpc: Likewise.
55640
55641 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
55642
55643         * scripts/check-local-headers.sh: Ignore c++ headers.
55644
55645 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55646
55647         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
55648         __libc_cleanup_region_start argument.
55649
55650 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
55651
55652         [BZ #14784]
55653         [BZ #14785]
55654         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
55655         x * y using scaling, not as x * y + z.
55656         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55657         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55658         * math/libm-test.inc (fma_test): Add more tests.
55659         (fma_test_towardzero): Likewise.
55660         (fma_test_downward): Likewise.
55661         (fma_test_upward): Likewise.
55662
55663 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
55664
55665         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
55666
55667 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
55668
55669         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
55670         New variable.
55671
55672 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
55673
55674         * rt/tst-shm.c (worker): Correct checking for mmap failure.
55675
55676 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
55677
55678         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
55679         Fix sort order.
55680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
55681         Likewise.
55682
55683 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
55684
55685         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
55686         Fix the order of the list for glibc 2.17.
55687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
55688         Likewise.
55689
55690 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
55691
55692         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55693
55694 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
55695
55696         [BZ #14610]
55697         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
55698         for low part of x being zero before using __atanl (y).
55699         * math/libm-test.inc (atan2_test): Add another test.
55700
55701         * manual/install.texi (Configuring and compiling): Document
55702         general use of test-wrapper and test-wrapper-env.
55703         * INSTALL: Regenerated.
55704
55705         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
55706         (__fma): Do not extract and scale down low bits on after-rounding
55707         systems when result rounded to normal precision would have normal
55708         exponent.
55709         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
55710         (__fmal): Do not extract and scale down low bits on after-rounding
55711         systems when result rounded to normal precision would have normal
55712         exponent.
55713         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
55714         (__fmal): Do not extract and scale down low bits on after-rounding
55715         systems when result rounded to normal precision would have normal
55716         exponent.
55717         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
55718         macro.
55719         (fma_test): Add more tests.
55720         (fma_test_towardzero): Likewise.
55721         (fma_test_downward): Likewise.
55722         (fma_test_upward): Likewise.
55723
55724 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
55725
55726         * sysdeps/i386/tininess.h: Renamed to ...
55727         * sysdeps/x86/tininess.h: This.
55728         * sysdeps/x86_64/tininess.h: Removed.
55729
55730 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
55731
55732         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
55733         input.  Use $(build-program-cmd).
55734         ($(objpfx)tst-array1-static.out): Likewise.
55735         ($(objpfx)tst-array2.out): Likewise.
55736         ($(objpfx)tst-array3.out): Likewise.
55737         ($(objpfx)tst-array4.out): Likewise.
55738         ($(objpfx)tst-array5.out): Likewise.
55739         ($(objpfx)tst-array5-static.out): Likewise.
55740
55741 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
55742
55743         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
55744         if defined.
55745
55746         * nss/nsswitch.h (nss_interface_function): Provide new
55747         macro for use with NSS functions.
55748         * grp/initgroups.c: Use new macro.
55749         * nss/getXXbyYY.c: Likewise.
55750         * nss/getXXbyYY_r.c: Likewise.
55751         * nss/getXXent.c: Likewise.
55752         * nss/getXXent_r.c: Likewise.
55753         * sysdeps/posix/getaddrinfo.c: Likewise.
55754
55755 2012-10-30  Andreas Jaeger  <aj@suse.de>
55756
55757         * po/ru.po: Update Russion translation from translation project.
55758
55759 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
55760
55761         [BZ #14152]
55762         [BZ #14783]
55763         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
55764         result and shift together with sticky bit instead of replicating
55765         round-to-nearest rounding.
55766         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55767         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55768         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
55769         missing underflow exceptions.
55770         (fma_test_towardzero): Add more tests.
55771         (fma_test_downward): Likewise.
55772         (fma_test_upward): Likewise.
55773
55774         [BZ #14047]
55775         * sysdeps/generic/tininess.h: New file.
55776         * sysdeps/i386/tininess.h: Likewise.
55777         * sysdeps/sh/tininess.h: Likewise.
55778         * sysdeps/x86_64/tininess.h: Likewise.
55779         * stdlib/tst-strtod-underflow.c: Likewise.
55780         * stdlib/tst-tininess.c: Likewise.
55781         * stdlib/strtod_l.c: Include <tininess.h>.
55782         (round_and_return): Do not set errno for exact underflow cases.
55783         Force an underflow exception when setting errno for underflow.
55784         Determine underflow based on rounding to normal precision if
55785         TININESS_AFTER_ROUNDING.
55786         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
55787         ERANGE for exact underflow cases.
55788         * stdlib/Makefile (tests): Add tst-tininess and
55789         tst-strtod-underflow.
55790         ($(objpfx)tst-tininess): Use $(link-libm).
55791         ($(objpfx)tst-strtod-underflow): Likewise.
55792
55793 2012-10-30  Andreas Jaeger  <aj@suse.de>
55794
55795         [BZ#14767]
55796         * elf/Makefile (tests): Remove conditional for have-initfini-array
55797         since this is now always required and the variable does not exist
55798         anymore.
55799         (tests-static): Likewise.
55800         (modules-names): Likewise.
55801
55802         * po/eo.po: Add Esperanto translation from translation project.
55803
55804         * elf/tst-array1.c (fini_array): Make writeable so that it can be
55805         merged with constructor/destructor.
55806         (init_array): Likewise.
55807         * elf/tst-array2dep.c (fini_array): Likewise.
55808         (init_array): Likewise.
55809
55810 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
55811
55812         * manual/message.texi: Delete @cartouche tags.
55813
55814 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
55815
55816         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
55817         EOPNOTSUPP.
55818         * sysdeps/mach/hurd/fsync.c: Likewise.
55819
55820         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
55821         [_POSIX_REALTIME_SIGNALS]: Change condition to
55822         [_POSIX_REALTIME_SIGNALS > 0].
55823
55824 2012-10-27  Andreas Jaeger  <aj@suse.de>
55825
55826         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
55827         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
55828         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
55829         [__WORDSIZE != 64]: Likewise.
55830
55831 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
55832
55833         *  iconvdata/tst-table.sh: Remove ${SHELL}.
55834         *  iconvdata/tst-tables.sh: Likewise.
55835
55836 2012-10-25  David S. Miller  <davem@davemloft.net>
55837
55838         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
55839         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
55840         of strtoull.
55841
55842         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
55843         ifunc-impl-list.c
55844         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
55845         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
55846         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
55847         file.
55848
55849 2012-10-25  Roland McGrath  <roland@hack.frob.com>
55850
55851         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
55852         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
55853         __getdirentries.
55854
55855 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
55856             Jim Blandy  <jimb@codesourcery.com>
55857
55858         * scripts/cross-test-ssh.sh: New file.
55859         * manual/install.texi (Configuring and compiling): Document use of
55860         cross-test-ssh.sh.
55861         * INSTALL: Regenerated.
55862
55863 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
55864
55865         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
55866         EOPNOTSUPP.
55867
55868 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
55869
55870         * Makeconfig (run-program-prefix): Fix comment.
55871
55872 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
55873             Jim Blandy  <jimb@codesourcery.com>
55874
55875         * Makeconfig (test-wrapper): New variable,
55876         (test-wrapper-env): Likewise.
55877         [$(cross-compiling) = yes && $(test-wrapper) != ""]
55878         (run-built-tests): Define to yes.
55879         (run-program-prefix): Use $(test-wrapper).
55880         (built-program-cmd): Likewise.
55881         * Rules (make-test-out): Use $(test-wrapper-env) and
55882         $(host-built-program-cmd).
55883         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
55884         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
55885         tst-pathopt.sh.
55886         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
55887         $(test-wrapper-env) to tst-rtld-load-self.sh.
55888         ($(objpfx)order2.out): Use $(test-wrapper).
55889         ($(objpfx)tst-initorder.out): Likewise.
55890         ($(objpfx)tst-initorder2.out): Likewise.
55891         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
55892         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
55893         (test_wrapper_env): New variable.  Use it to run ld.so.
55894         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
55895         Use it to run ld.so.
55896         (test_wrapper_env): Likewise.
55897         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
55898         $(test-wrapper) to run-iconv-test.sh.
55899         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
55900         (ICONV): Use $test_wrapper.
55901         * posix/Makefile ($(objpfx)globtest.out): Pass
55902         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
55903         globtest.sh, not $(run-program-prefix).
55904         * posix/globtest.sh (run_via_rtld_prefix): New variable.
55905         (test_wrapper): Likewise.
55906         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
55907         set together with run_via_rtld_prefix.
55908         (run_program_prefix): Define in terms of test_wrapper and
55909         run_via_rtld_prefix.
55910
55911 2012-10-24  Roland McGrath  <roland@hack.frob.com>
55912
55913         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
55914         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
55915         Targets removed.
55916
55917         [BZ #14743]
55918         * include/time.h: Remove librt_hidden_proto (clock_gettime).
55919         Declare __clock_getres, __clock_gettime, __clock_settime,
55920         __clock_nanosleep, and __clock_getcpuclockid.
55921         * rt/clock_gettime.c: Define __clock_gettime as an alias.
55922         Remove librt_hidden_def (clock_gettime).
55923         * sysdeps/unix/clock_gettime.c: Likewise.
55924         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
55925         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
55926         * rt/clock_getres.c: Define __clock_getres as an alias.
55927         * sysdeps/posix/clock_getres.c: Likewise.
55928         * rt/clock_settime.c: Define __clock_settime as an alias.
55929         * sysdeps/unix/clock_settime.c: Likewise.
55930         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
55931         * sysdeps/unix/clock_nanosleep.c: Likewise.
55932         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
55933         * rt/clock-compat.c: New file.
55934         * rt/Makefile (librt-routines): Add clock-compat and move
55935         $(clock-routines) to ...
55936         (routines): ... here, new variable.
55937         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
55938         Don't add get_clockfreq here.
55939         * rt/Versions (libc: GLIBC_2.17): New version set.
55940         Add clock_* symbols here.
55941         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
55942         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
55943         (GLIBC_2.17): Add clock_* symbols.
55944         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
55945         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
55946         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
55947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
55948         Likewise.
55949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
55950         Likewise.
55951         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
55952         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
55953         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
55954         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
55955         * NEWS: Mention the move.
55956
55957         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
55958         Use __open, __read, __close rather than their public counterparts.
55959         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
55960         (__get_clockfreq_via_cpuinfo): Likewise.
55961         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
55962         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
55963
55964         * config.h.in (HAVE_IFUNC): New #undef.
55965         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
55966         was successful.
55967         * configure: Regenerated.
55968
55969 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
55970
55971         * configure.in: Move READELF check to start of file.
55972         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
55973         libc_cv_asm_gnu_indirect_function in the process.
55974         * configure: Regenerated.
55975
55976 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
55977
55978         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
55979         send the output to /dev/null.
55980         (libc_cv_cc_with_libunwind): Likewise.
55981         (libc_cv_as_noexecstack): Likewise.
55982         * configure: Regenerate.
55983
55984 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
55985
55986         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
55987
55988         * posix/globtest.sh (TMPDIR): Do not set.
55989         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
55990         (testout): Likewise.
55991
55992 2012-10-24  Andreas Jaeger  <aj@suse.de>
55993
55994         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
55995         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
55996         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
55997         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
55998         posix_fadvise64, posix_fallocate64.
55999
56000         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
56001         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
56002         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
56003         Likewise.
56004         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
56005         Likewise.
56006         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
56007
56008         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
56009         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
56010         <bits/fcntl-linux.h>.
56011         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
56012
56013         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
56014         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
56015         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
56016         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
56017         [__WORDSIZE != 64]: Likewise.
56018
56019 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56020
56021         * Makeconfig (run-built-tests): New variable.
56022         * Rules [$(cross-compiling) = yes]: Change condition to
56023         [$(run-built-tests) = no].
56024         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
56025         to [$(run-built-tests) = yes].
56026         * elf/Makefile [$(cross-compiling) = no]: Likewise.
56027         * grp/Makefile [$(cross-compiling) = no]: Likewise.
56028         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
56029         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
56030         * intl/Makefile [$(cross-compiling) = no]: Likewise.
56031         * io/Makefile [$(cross-compiling) = no]: Likewise.
56032         * libio/Makefile [$(cross-compiling) = no]: Likewise.
56033         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
56034         * misc/Makefile [$(cross-compiling) = no]: Likewise.
56035         * posix/Makefile [$(cross-compiling) = no]: Likewise.
56036         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
56037         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
56038         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
56039         * string/Makefile [$(cross-compiling) = no]: Likewise.
56040
56041         * posix/Makefile ($(objpfx)globtest.out): Pass
56042         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
56043         $(rtld-installed-name).
56044         * posix/globtest.sh (elf_objpfx): Remove variable.
56045         (rtld_installed_name): Likewise.
56046         (library_path): Likewise.
56047         (run_program_prefix): New variable.  Use for running globtest
56048         binary.
56049
56050 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
56051             Joseph Myers  <joseph@codesourcery.com>
56052
56053         * Makeconfig (host-built-program-cmd): New variable.
56054         * elf/Makefile (tst-stackguard1-ARGS): Use
56055         $(host-built-program-cmd).
56056         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
56057         (tst-spawn-ARGS): Likewise.
56058         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
56059
56060 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56061             Jim Blandy  <jimb@codesourcery.com>
56062
56063         * Makeconfig (run-via-rtld-prefix): New variable.
56064         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
56065         (built-program-cmd): Likewise.
56066
56067 2012-10-22  Andreas Jaeger  <aj@suse.de>
56068
56069         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
56070         __O_RSYNC if it exists, otherwise to O_SYNC.
56071
56072 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
56073             Joseph Myers  <joseph@codesourcery.com>
56074
56075         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
56076         /dev/null.
56077         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
56078         from /dev/null
56079         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
56080         /dev/null.
56081
56082 2012-10-22  Andreas Jaeger  <aj@suse.de>
56083
56084         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
56085         Define always.
56086         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
56087
56088         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56089         bits/fcntl-linux.h.
56090
56091         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
56092         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
56093
56094         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
56095         to __O_LARGEFILE.
56096         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
56097         to __O_LARGEFILE.
56098
56099 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
56100             Joseph Myers  <joseph@codesourcery.com>
56101
56102         * config.make.in (NM): New variable.
56103
56104 2012-10-21  Andreas Jaeger  <aj@suse.de>
56105
56106         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
56107         definitions and declarations that are provided by
56108         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
56109
56110 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56111
56112         [BZ #14683]
56113         * elf/Makefile (tests-static): Add tst-leaks1-static.
56114         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
56115         ($(objpfx)tst-leaks1-static): New rule.
56116         ($(objpfx)tst-leaks1-static-mem): Likewise.
56117         (tst-leaks1-static-ENV): New macro.
56118         * elf/dl-open.c (dl_open_worker): Check the main application
56119         only if SHARED is defined.
56120         * elf/tst-leaks1-static.c: New file.
56121
56122 2012-10-20  Andreas Jaeger  <aj@suse.de>
56123
56124         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
56125         generic values for Linux.
56126         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
56127         and declarations that are provided by <bits/fcntl-linux.h> and
56128         include <bits/fcntl-linux.h>.
56129         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
56130         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
56131
56132 2012-10-20  Roland McGrath  <roland@hack.frob.com>
56133
56134         * io/fcntl.h: Move include of <bits/types.h> to the top and
56135         include it unconditionally.
56136
56137 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56138
56139         * wcsmbs/Makefile (tests-ifunc): New variable.
56140         (tests): Add $(tests-ifunc).
56141         * wcsmbs/test-wcschr-ifunc.c: New file.
56142         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
56143         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
56144         * wcsmbs/test-wcslen-ifunc.c: Likewise.
56145         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
56146         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
56147
56148         * string/Makefile (tests-ifunc): New variable.
56149         (tests): Add $(tests-ifunc).
56150         * string/test-memccpy.c (TEST_NAME): New macro.
56151         * string/test-memchr.c (TEST_NAME): Likewise.
56152         * string/test-memcmp.c (TEST_NAME): Likewise.
56153         * string/test-memcpy.c (TEST_NAME): Likewise.
56154         * string/test-memmem.c (TEST_NAME): Likewise.
56155         * string/test-memmove.c (TEST_NAME): Likewise.
56156         * string/test-memset.c (TEST_NAME): Likewise.
56157         * string/test-rawmemchr.c (TEST_NAME): Likewise.
56158         * string/test-stpcpy.c (TEST_NAME): Likewise.
56159         * string/test-stpncpy.c (TEST_NAME): Likewise.
56160         * string/test-strcasecmp.c (TEST_NAME): Likewise.
56161         * string/test-strcasestr.c (TEST_NAME): Likewise.
56162         * string/test-strcat.c (TEST_NAME): Likewise.
56163         * string/test-strchr.c (TEST_NAME): Likewise.
56164         * string/test-strcmp.c(TEST_NAME): Likewise.
56165         * string/test-strcpy.c (TEST_NAME): Likewise.
56166         * string/test-strcspn.c (TEST_NAME): Likewise.
56167         * string/test-strlen.c (TEST_NAME): Likewise.
56168         * string/test-strncasecmp.c (TEST_NAME): Likewise.
56169         * string/test-strncmp.c (TEST_NAME): Likewise.
56170         * string/test-strncpy.c (TEST_NAME): Likewise.
56171         * string/test-strnlen.c (TEST_NAME): Likewise.
56172         * string/test-strpbrk.c (TEST_NAME): Likewise.
56173         * string/test-strrchr.c (TEST_NAME): Likewise.
56174         * string/test-strspn.c (TEST_NAME): Likewise.
56175         * string/test-strstr.c (TEST_NAME): Likewise.
56176         * string/test-bcopy-ifunc.c: New file.
56177         * string/test-bzero-ifunc.c: Likewise.
56178         * string/test-memccpy-ifunc.c: Likewise.
56179         * string/test-memchr-ifunc.c: Likewise.
56180         * string/test-memcmp-ifunc.c: Likewise.
56181         * string/test-memcpy-ifunc.c: Likewise.
56182         * string/test-memmem-ifunc.c: Likewise.
56183         * string/test-memmove-ifunc.c: Likewise.
56184         * string/test-mempcpy-ifunc.c: Likewise.
56185         * string/test-memset-ifunc.c: Likewise.
56186         * string/test-rawmemchr-ifunc.c: Likewise.
56187         * string/test-stpcpy-ifunc.c: Likewise.
56188         * string/test-stpncpy-ifunc.c: Likewise.
56189         * string/test-strcasecmp-ifunc.c: Likewise.
56190         * string/test-strcasestr-ifunc.c: Likewise.
56191         * string/test-strcat-ifunc.c: Likewise.
56192         * string/test-strchr-ifunc.c: Likewise.
56193         * string/test-strchrnul-ifunc.c: Likewise.
56194         * string/test-strcmp-ifunc.c: Likewise.
56195         * string/test-strcpy-ifunc.c: Likewise.
56196         * string/test-strcspn-ifunc.c: Likewise.
56197         * string/test-strlen-ifunc.c: Likewise.
56198         * string/test-strncasecmp-ifunc.c: Likewise.
56199         * string/test-strncat-ifunc.c: Likewise.
56200         * string/test-strncmp-ifunc.c: Likewise.
56201         * string/test-strncpy-ifunc.c: Likewise.
56202         * string/test-strnlen-ifunc.c: Likewise.
56203         * string/test-strpbrk-ifunc.c: Likewise.
56204         * string/test-strrchr-ifunc.c: Likewise.
56205         * string/test-strspn-ifunc.c: Likewise.
56206         * string/test-strstr-ifunc.c: Likewise.
56207
56208         * debug/Makefile (tests-ifunc): New variable.
56209         (tests): Add $(tests-ifunc).
56210         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
56211         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
56212         * debug/test-stpcpy_chk-ifunc.c: New file.
56213         * debug/test-strcpy_chk-ifunc.c: Likewise.
56214
56215 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
56216
56217         [BZ #13601]
56218         * elf/dl-load.c (open_verify): Retry read if the entire ELF
56219         header is not read in.
56220
56221 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
56222
56223         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
56224         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
56225         directly.  Pass built executable to script as
56226         $(built-program-cmd).
56227         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
56228         $testprogram without using LD_LIBRARY_PATH and $ldso.
56229
56230         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
56231         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
56232         $(rtld-installed-name).
56233         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
56234         (rtld_installed_name): Likewise.
56235         (library_path): Likewise.
56236         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
56237         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
56238         $(run-program-prefix) to tst-tables.sh.
56239         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
56240         it to run tst-table-from and tst-table-to.
56241         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
56242         Pass it to tst-table.sh.
56243         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
56244         $(run-program-prefix) to tst-gettext.sh.
56245         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
56246         tst-translit.sh.
56247         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
56248         tst-gettext2.sh.
56249         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
56250         to run tst-gettext.
56251         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
56252         to run tst-gettext2.
56253         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
56254         to run tst-translit.
56255         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
56256         $(run-program-prefix) to tst-mtrace.sh.
56257         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
56258         to run tst-mtrace.
56259         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
56260         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
56261         $(rtld-installed-name).
56262         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
56263         (rtld_installed_name): Likewise.
56264         (run_program_prefix): New variable.  Use it to run wordexp-test.
56265
56266         * Makeconfig (ARCH): Remove all definitions.
56267         (machine): Likewise.
56268         [ARCH]: Remove conditional code.
56269         [!objdir]: Give error.
56270         [!objdir] (objpfx): Remove.
56271         [!objdir] (common-objpfx): Likewise.
56272         [!objdir] (common-objdir): Likewise.
56273         * configure.in (config_makefile): Remove.  Hardcode Makefile in
56274         AC_CONFIG_FILES call.
56275         * configure: Regenerated.
56276
56277         [BZ #13888]
56278         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
56279         or TMPDIR.
56280         (testout): Likewise.
56281
56282         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
56283         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
56284         $(rtld-installed-name).
56285         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
56286         (rtld_installed_name): Likwise.
56287         (runit): Remove function.
56288         (run_getconf): New variable,  Use it for running getconf binary.
56289
56290 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
56291
56292         [BZ #14716]
56293         * string/test-memmem.c (check_result): New function.
56294         (do_one_test): Use it.
56295         (check1): New function.
56296         (test_main): Use it.
56297
56298 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
56299
56300         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
56301
56302 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
56303
56304         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
56305         (_G_LSEEK64): Likewise.
56306         (_G_MMAP64): Likewise.
56307         (_G_FSTAT64): Likewise.
56308         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
56309         (_G_LSEEK64): Likewise.
56310         (_G_MMAP64): Likewise.
56311         (_G_FSTAT64): Likewise.
56312         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
56313         unconditional.  Call __mmap64 directly.
56314         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
56315         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
56316         __lseek64 directly.
56317         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
56318         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
56319         __mmap64 directly.
56320         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
56321         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56322         __lseek64 directly.
56323         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
56324         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56325         __lseek64 directly.
56326         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
56327         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
56328         __lseek64 directly.
56329         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
56330         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
56331         __fxstat64 directly.
56332         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
56333         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
56334         unconditional.
56335         (freopen64) [!_G_OPEN64]: Remove conditional code.
56336         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
56337         unconditional.
56338         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
56339         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
56340         unconditional.
56341         (ftello64) [!_G_LSEEK64]: Remove conditional code.
56342         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
56343         unconditional.
56344         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56345         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
56346         unconditional.
56347         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
56348         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
56349         unconditional.
56350         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56351         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
56352         unconditional.
56353         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56354         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
56355         unconditional.
56356         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56357
56358 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
56359
56360         [BZ #12140]
56361         * manual/memory.texi (Malloc Tunable Parameters): Add note
56362         about free list pointers overwriting some perturb bytes.
56363         Wording suggested by Roland McGrath.
56364
56365 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
56366
56367         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
56368         (lgamma_test): Likewise.
56369         (tgamma_test): Likewise.
56370
56371 2012-10-16  Florian Weimer  <fweimer@redhat.com>
56372
56373         [BZ #14700]
56374         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
56375         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
56376
56377 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
56378
56379         * NEWS: Mention BZ #14716.
56380         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
56381         when removing AVAILABLE1_USES_J macro.
56382
56383 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
56384
56385         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
56386         (__bswap_64): __uint64_t for unsigned 64-bit int.
56387
56388 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
56389
56390         * include/string.h (memmem): Declare libc hidden alias.
56391         * string/memmem.c (memmem): Define libc hidden alias.
56392         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
56393         __read, __close instead of open, read, close.
56394
56395 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
56396
56397         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
56398         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
56399         global and hidden.
56400         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
56401         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
56402         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
56403         Likewise.
56404         (__rawmemchr_sse2): Likewise.
56405         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
56406         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
56407         (__strchr_sse2): Likewise.
56408         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
56409         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
56410         (__strcasecmp_sse2): Likewise.
56411         (__strncasecmp_sse2): Likewise.
56412         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
56413         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
56414         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
56415         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
56416         (__strrchr_sse2): Likewise.
56417         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
56418         ifunc-impl-list.c.
56419         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
56420         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
56421         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
56422         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
56423         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
56424         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
56425         * sysdeps/x86_64/multiarch/memset.S: Likewise.
56426         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
56427         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
56428         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
56429         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
56430         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
56431         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
56432         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
56433         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
56434         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
56435         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
56436         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
56437         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
56438         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
56439         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
56440         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
56441         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
56442         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
56443         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
56444         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
56445         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
56446         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
56447         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
56448         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
56449
56450         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
56451         global and hidden.
56452         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
56453         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
56454         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
56455         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
56456         Likewise.
56457         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
56458         Likewise.
56459         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
56460         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
56461         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
56462         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
56463         ifunc-impl-list.c.
56464         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
56465         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
56466         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
56467         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
56468         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
56469         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
56470         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
56471         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
56472         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
56473         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
56474         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
56475         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
56476         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
56477         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
56478         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
56479         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
56480         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
56481         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
56482         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
56483         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
56484         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
56485         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
56486         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
56487         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
56488         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
56489         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
56490         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
56491         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
56492         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
56493         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
56494         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
56495         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
56496         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
56497         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
56498         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
56499         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
56500         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
56501         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
56502         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
56503         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
56504         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
56505
56506         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
56507         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
56508         * include/ifunc-impl-list.h: New file.
56509         * misc/ifunc-impl-list.c: Likewise.
56510         * misc/Makefile (routines): Add ifunc-impl-list.
56511         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
56512         * string/test-string.h: Include <ifunc-impl-list.h>.
56513         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
56514         TEST_NAME]: New variables.
56515         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
56516         are defined.
56517         (test_init): Call __libc_ifunc_impl_list to initialize
56518         func_list if TEST_IFUNC and TEST_NAME are defined.
56519
56520         * string/Makefile (strop-tests): Add bcopy and bzero.
56521         * string/test-bcopy.c: New file.
56522         * string/test-bzero.c: Likewise.
56523         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
56524         defined.
56525         * string/test-memset.c: Support bzero test if TEST_BZERO is
56526         defined.
56527         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
56528         __libc_memmove.
56529         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
56530         __libc_memset.
56531         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
56532         of memset.
56533
56534 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
56535
56536         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
56537         * configure: Regenerated.
56538
56539         * Makeconfig (+link-static-before-libc): Don't include
56540         $(link-static-libc).
56541
56542         * libio/libio.h (_IO_pos_t): Remove.
56543
56544 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56545
56546         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
56547         McGrath.
56548
56549 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56550
56551         * crypt/crypt-entry.c: Include fips-private.h.
56552         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
56553         * crypt/md5c-test.c (main): Tolerate disabled MD5.
56554         * sysdeps/unix/sysv/linux/fips-private.h: New file.
56555         * sysdeps/generic/fips-private.h: New file, dummy fallback.
56556
56557 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
56558
56559         * crypt/crypt-private.h: Include stdbool.h.
56560         (_ufc_setup_salt_r): Return bool.
56561         * crypt/crypt-entry.c: Include errno.h.
56562         (__crypt_r): Return NULL with EINVAL for bad salt.
56563         * crypt/crypt_util.c (bad_for_salt): New.
56564         (_ufc_setup_salt_r): Check that salt is long enough and within
56565         the specified alphabet.
56566         * crypt/badsalttest.c: New file.
56567         * crypt/Makefile (tests): Add it.
56568         ($(objpfx)badsalttest): New.
56569
56570 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
56571
56572         * NEWS: Add entry for BZ #14602.
56573
56574 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
56575
56576         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
56577         type-generic.
56578         * math/libm-test.inc: Update comment listing what functions and
56579         macros are tested.
56580         (isgreater_test): New function.
56581         (isgreaterequal_test): Likewise.
56582         (isless_test): Likewise.
56583         (islessequal_test): Likewise.
56584         (islessgreater_test): Likewise.
56585         (isunordered_test): Likewise.
56586         (main): Call the new functions.
56587
56588 2012-10-09  Roland McGrath  <roland@hack.frob.com>
56589
56590         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
56591         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
56592         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
56593         * sysdeps/i386/configure: Regenerated.
56594         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
56595         * sysdeps/mach/configure: Regenerated.
56596         * sysdeps/mach/hurd/configure: Regenerated.
56597         * sysdeps/powerpc/configure: Regenerated.
56598         * sysdeps/powerpc/powerpc32/configure: Regenerated.
56599         * sysdeps/powerpc/powerpc64/configure: Regenerated.
56600         * sysdeps/s390/s390-32/configure: Regenerated.
56601         * sysdeps/s390/s390-64/configure: Regenerated.
56602         * sysdeps/sh/configure: Regenerated.
56603         * sysdeps/sparc/configure: Regenerated.
56604         * sysdeps/unix/sysv/linux/configure: Regenerated.
56605         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
56606         * sysdeps/x86_64/configure: Regenerated.
56607
56608         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
56609         defined.  Don't check if MAP is NULL.
56610
56611 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
56612
56613         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
56614         (_G_stat64): Likewise.
56615         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
56616         (_G_stat64): Likewise.
56617         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
56618         instead of struct _G_stat64.
56619         * libio/fileops.c (mmap_remap_check): Likewise.
56620         (decide_maybe_mmap): Likewise.
56621         (_IO_new_file_seekoff): Likewise.
56622         (_IO_file_stat): Likewise.
56623         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
56624         _G_off64_t.
56625         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
56626         instead of struct _G_stat64.
56627         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
56628
56629 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
56630
56631         [BZ #14602]
56632         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56633         Replace with ...
56634         (CHECK_EOL): New macro.
56635         (two_way_short_needle): Check beginning of haystack for EOL.  Use
56636         CHECK_EOL.
56637         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56638         Replace with CHECK_EOL.
56639         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
56640         Replace with CHECK_EOL.
56641
56642 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
56643
56644         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
56645         type-generic.
56646         * math/libm-test.inc: Update comment listing what functions and
56647         macros are tested.
56648         (finite_test): New function.
56649         (isinf_test): Likewise.
56650         (isnan_test): Likewise.
56651         (fpclassify_test): Test subnormal input.
56652         (isfinite_test): Likewise.
56653         (isnormal_test): Likewise.
56654         (main): Call the new functions.
56655
56656 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
56657
56658         [BZ #14660]
56659         * Makerules (%.dynsym): Force C locale when running
56660         $(OBJDUMP) --dynamic-syms.
56661
56662 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
56663
56664         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
56665         <stdint.h>.
56666
56667 2012-10-06  David S. Miller  <davem@davemloft.net>
56668
56669         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
56670         upper 32-bits of the length value in %o2 since we use branch-on-register
56671         tests which consider the entire 64-bit register.
56672
56673 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
56674
56675         * string/test-strstr.c (check2): Add a test for page boundary.
56676
56677 2012-10-05  David S. Miller  <davem@davemloft.net>
56678
56679         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
56680         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
56681         file.
56682         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
56683         sysdep_routines.
56684         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
56685         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
56686         and bzero when HWCAP_SPARC_CRYPTO is present.
56687
56688 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
56689
56690         [BZ #14602]
56691         * string/test-strstr.c (check2): New function.
56692         (test_main): Call check2.
56693
56694         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
56695         and bug-strchr1.
56696         * string/bug-strcasestr1.c (do_test): Moved to ...
56697         * string/test-strcasestr.c (check1): Here.  New function.
56698         (do_one_test): Break out result checking code into ...
56699         (check_result): This.  New function.
56700         (do_one_test): Call check_result.
56701         (test_main): Call check1.
56702         * string/bug-strchr1.c (do_test): Moved to ...
56703         * string/test-strchr.c (check1): Here.  New function.
56704         (do_one_test): Break out result checking code into ...
56705         (check_result): This.  New function.
56706         (do_one_test): Call check_result.
56707         (test_main): Call check1.
56708         * string/bug-strstr1.c (main): Moved to ...
56709         * string/test-strstr.c (check1): Here.  New function.
56710         (do_one_test): Break out result checking code into ...
56711         (check_result): This.  New function.
56712         (do_one_test): Call check_result.
56713         (test_main): Call check1.
56714         * string/bug-strcasestr1.c: Removed.
56715         * string/bug-strchr1.c: Likewise.
56716         * string/bug-strstr1.c: Likewise.
56717
56718         * elf/Makefile (dl-routines): Add hwcaps.
56719         * elf/dl-support.c (_dl_important_hwcaps): Removed.
56720         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
56721         (_dl_important_hwcaps): Moved to ...
56722         * elf/dl-hwcaps.c: Here.  New file.
56723         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
56724
56725         [BZ #14557]
56726         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
56727         if IS_IN_rtld isn't defined.
56728
56729         * elf/dl-support.c (_dl_sysinfo_map): New.
56730         Include "get-dynamic-info.h" and "setup-vdso.h".
56731         (_dl_non_dynamic_init): Call setup_vdso.
56732         * elf/dynamic-link.h: Don't include <assert.h>.
56733         (elf_get_dynamic_info): Moved to ...
56734         * elf/get-dynamic-info.h: Here.  New file.
56735         * elf/dynamic-link.h: Include "get-dynamic-info.h".
56736         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
56737         * elf/setup-vdso.h: Here.  New file.
56738         * elf/rtld.c: Include "setup-vdso.h".
56739         (dl_main): Call setup_vdso.
56740
56741 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
56742
56743         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
56744         creal in comment listing functions tested.  List finite, isinf,
56745         isnan, isless, islessequal, isgreater, isgreaterequal,
56746         islessgreater, isunordered, lgamma_r and pow10 as functions and
56747         macros not tested.  Mention which functions not tested are aliases
56748         for other functions.  Fix typo.  Note that signs of NaNs are not
56749         tested.
56750
56751         * scripts/config.guess: Update from config.git.
56752         * scripts/config.sub: Likewise.
56753
56754 2012-10-04  Roland McGrath  <roland@hack.frob.com>
56755
56756         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
56757         * misc/madvise.c (madvise): Renamed to __madvise.
56758         Make madvise a weak alias.
56759         * include/sys/mman.h: Declare __madvise.
56760         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
56761         * sysdeps/unix/syscalls.list
56762         (madvise): Make __madvise the strong name, and madvise a weak alias.
56763         * sysdeps/unix/sysv/linux/syscalls.list
56764         (madvise, mmap): Remove redundant entries.
56765         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
56766         * malloc/malloc.c (mtrim): Likewise.
56767         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
56768
56769 2012-10-03  Roland McGrath  <roland@hack.frob.com>
56770
56771         * sysdeps/mach/hurd/dl-cache.c: File removed.
56772         * config.h.in (USE_LDCONFIG): New #undef.
56773         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
56774         * configure: Regenerated.
56775         * elf/Makefile (dl-routines): Add dl-cache only under
56776         [$(use-ldconfig) = yes].
56777         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
56778         cache on [USE_LDCONFIG].
56779         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
56780         [USE_LDCONFIG].
56781         * elf/rtld.c (dl_main): Likewise.
56782
56783 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
56784
56785         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
56786         _SC_LEVEL4_CACHE_LINESIZE.
56787
56788 2012-10-03  Roland McGrath  <roland@hack.frob.com>
56789
56790         * sysdeps/unix/bsd/confstr.h: File removed.
56791
56792 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
56793
56794         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
56795         sys/sdt-config.h.
56796
56797 2012-10-02  Roland McGrath  <roland@hack.frob.com>
56798
56799         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
56800         Make 'mapoff' field ElfW(Off) rather than off_t.
56801
56802 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
56803
56804         * nscd/Makefile: Remove nscd-cflags and all its users.
56805         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
56806         (CFLAGS-nonlib): Add compiler flags for nscd modules.
56807
56808         [BZ #10631]
56809         * malloc.c (malloc_printerr): Clarify error message.
56810
56811 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
56812
56813         [BZ #14648]
56814         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
56815         Set bit_FMA_Usable if FMA is supported.
56816         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
56817         macro.
56818         (bit_FMA4_Usable): Updated.
56819         (index_FMA_Usable): New macro.
56820         (CPUID_FMA): Likewise.
56821         (HAS_FMA): Defined with bit_FMA_Usable.
56822
56823 2012-10-01  Roland McGrath  <roland@hack.frob.com>
56824
56825         * bits/types.h (__swblk_t): Type removed.
56826         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
56827         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
56828         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
56829         (__SWBLK_T_TYPE): Likewise.
56830         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
56831         (__SWBLK_T_TYPE): Likewise.
56832         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
56833         (__SWBLK_T_TYPE): Likewise.
56834         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
56835         (__SWBLK_T_TYPE): Likewise.
56836
56837 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
56838             Honza Horak <hhorak@redhat.com>
56839
56840         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
56841         (xdr_mapname): Use YPMAXMAP as maxsize.
56842         (xdr_peername): Use YPMAXPEER as maxsize.
56843         (xdr_keydat): Use YPAXRECORD as maxsize.
56844         (xdr_valdat): Use YPMAXRECORD as maxsize.
56845
56846 2012-10-01  Roland McGrath  <roland@hack.frob.com>
56847
56848         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
56849
56850         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
56851         * csu/init-first.c: ... here.
56852         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
56853         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
56854         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
56855         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
56856         * sysdeps/i386/init-first.c: File removed.
56857         * sysdeps/sh/init-first.c: File removed.
56858
56859 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
56860
56861         [BZ #14645]
56862         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
56863         if x * y might underflow to zero and z is zero.
56864         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56865         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56866         * math/libm-test.inc (min_subnorm_value): New variable.
56867         (fma_test): Add more tests.
56868         (fma_test_towardzero): Likewise.
56869         (fma_test_downward): Likewise.
56870         (fma_test_upward): Likewise.
56871         (initialize): Set min_subnorm_value.
56872
56873 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
56874
56875         [BZ #14638]
56876         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
56877         0 + 0.
56878         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
56879         mode for addition resulting in exact zero.
56880         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
56881         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
56882         exact 0 + 0.
56883         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
56884         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56885         * math/libm-test.inc (fma_test): Add more tests.
56886         (fma_test_towardzero): New function.
56887         (fma_test_downward): Likewise.
56888         (fma_test_upward): Likewise.
56889         (main): Call the new functions.
56890
56891 2012-09-28  David S. Miller  <davem@davemloft.net>
56892
56893         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
56894
56895 2012-09-28  Roland McGrath  <roland@hack.frob.com>
56896
56897         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
56898         instead of SIGALRM.
56899
56900         * sysdeps/gnu/_G_config.h: Moved to ...
56901         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
56902         * sysdeps/mach/hurd/_G_config.h: Moved to ...
56903         * sysdeps/generic/_G_config.h: ... here.
56904
56905         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
56906
56907         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
56908
56909         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
56910         Conditionalize target on [libnss_test1.so-version].
56911
56912         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
56913
56914         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
56915         (elfobjdir): Move out of conditionals.
56916
56917         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
56918         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
56919         (__nss_lookup_function): Conditionalize label remove_from_tree on
56920         [!DO_STATIC_NSS || SHARED], matching its only use.
56921
56922 2012-09-28  David S. Miller  <davem@davemloft.net>
56923
56924         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
56925         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
56926         file.
56927         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
56928         sysdep_routines.
56929         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
56930         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
56931         when HWCAP_SPARC_CRYPTO is present.
56932
56933 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
56934
56935         * io/tst-mknodat.c: Create a FIFO instead of a socket.
56936
56937 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
56938
56939         [BZ #6530]
56940         * stdio-common/vfprintf.c (process_string_arg): Revert
56941         2000-07-22 change.
56942
56943 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
56944
56945         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
56946         for testcase.
56947         * stdio-common/tst-sprintf.c: Include <locale.h>
56948         (main): Test sprintf's handling of incomplete multibyte
56949         characters.
56950
56951 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
56952
56953         * elf/dl-runtime.c (VERSYMIDX): Removed.
56954         * elf/dl-version.c (VERSYMIDX): Likewise.
56955         * elf/do-rel.h (VERSYMIDX): Likewise.
56956         (VALIDX): Likewise.
56957         * elf/dynamic-link.h (VERSYMIDX): Likewise.
56958         * elf/rtld.c (VALIDX): Likewise.
56959         (ADDRIDX): Likewise.
56960         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
56961         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
56962         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
56963         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
56964         (VALIDX): Likewise.
56965         (ADDRIDX): Likewise.
56966
56967 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
56968
56969         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
56970
56971 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
56972
56973         [BZ #11438]
56974         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
56975         to global scope.
56976         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
56977         addresses are in the same scope as 192.0.2/24.
56978         * posix/gai.conf: Document new scope table defaults.
56979
56980 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
56981
56982         [BZ #5298]
56983         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
56984         for ftell.  Compute offsets from write pointers instead.
56985         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
56986
56987 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
56988
56989         [BZ #14543]
56990         * libio/Makefile (tests): New test case tst-fseek.
56991         * libio/tst-fseek.c: New test case to verify that fseek/ftell
56992         combination works in wide mode.
56993         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
56994         state when the external buffer state changes.
56995
56996 2012-09-27  David S. Miller  <davem@davemloft.net>
56997
56998         [BZ #14376]
56999         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
57000         pass reloc->r_addend in as the 'high' argument to
57001         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
57002
57003         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57004
57005 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57006
57007         * rt/tst-aio2.c: Include <pthread.h>.
57008         * rt/tst-aio3.c: Likewise.
57009
57010 2012-09-27  Steve Ellcey  <sellcey@mips.com>
57011
57012         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
57013
57014 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
57015
57016         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
57017         contents on [SHARED].
57018
57019 2012-09-26  Marek Polacek  <polacek@redhat.com>
57020
57021         [BZ #14530]
57022         [BZ #13741]
57023         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
57024         for C++ and GCC <4.3 as well as for non GCC compilers.
57025
57026 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
57027
57028         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57029
57030 2012-09-25  Roland McGrath  <roland@hack.frob.com>
57031
57032         * Makefile.in (all, install): Declare with .PHONY.
57033         Reported by Michael Hope <michael.hope@linaro.org>.
57034
57035 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
57036
57037         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
57038         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
57039         system header.
57040         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
57041         Likewise.
57042         (sydep_routines): Add the new and the internal functions.
57043         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
57044         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
57045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
57046         (GLIBC_2.17): Add the new function.
57047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
57048         (GLIBC_2.17): Likewise.
57049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
57050         (GLIBC_2.17): Likewise.
57051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
57052         (GLIBC_2.17): Likewise.
57053         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
57054
57055 2012-09-25  Alan Modra  <amodra@gmail.com>
57056
57057         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
57058         Add release barrier before setting once_control to say
57059         initialisation is done.  Add hints on lwarx.  Use macro in
57060         place of isync.
57061         (clear_once_control): Add release barrier.
57062
57063 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57064
57065         [BZ #13629]
57066         * math/s_clog.c (__clog): Handle more values close to |z| = 1
57067         specially.
57068         * math/s_clog10.c (__clog10): Likewise.
57069         * math/s_clog10f.c (__clog10f): Likewise.
57070         * math/s_clog10l.c (__clog10l): Likewise.
57071         * math/s_clogf.c (__clogf): Likewise.
57072         * math/s_clogl.c (__clogl): Likewise.
57073         * math/Makefile (libm-calls): Add x2y2m1.
57074         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
57075         (__x2y2m1): Likewise.
57076         (__x2y2m1l): Likewise.
57077         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
57078         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
57079         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
57080         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57081         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
57082         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
57083         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
57084         * sysdeps/i386/fpu/libm-test-ulps: Update.
57085         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57086
57087         [BZ #14621]
57088         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
57089         int as type of variable DEPTH.
57090         (glob): Use size_t instead of int as type of variables NEWCOUNT
57091         and OLD_PATHC.
57092
57093 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57094
57095         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57096         Add s_sincosf-sse2.
57097         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
57098         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
57099         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
57100         macros for using routine as __sincosf_ia32.
57101         Use macro for function declaration and weak_alias.
57102         * sysdeps/i386/fpu/libm-test-ulps: Update.
57103
57104         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
57105         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57106
57107         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
57108         subnormal argument.
57109         * math/s_cexpf.c (__cexpf): Likewise.
57110         * math/s_csinf.c (__csinf): Likewise.
57111         * math/s_csinhf.c (__csinhf): Likewise.
57112         * math/s_ctanf.c (__ctanf): Likewise.
57113         * math/s_ctanhf.c (__ctanhf): Likewise.
57114         * math/s_ccosh.c (__ccoshf): Likewise.
57115         * math/s_cexp.c (__cexpl): Likewise.
57116         * math/s_csin.c (__csin): Likewise.
57117         * math/s_csinh.c (__csinh): Likewise.
57118         * math/s_ctan.c (__ctan): Likewise.
57119         * math/s_ctanh.c (ctanh): Likewise.
57120         * math/s_ccoshl.c (__ccoshl): Likewise.
57121         * math/s_cexpl.c (__cexpl): Likewise.
57122         * math/s_csinl.c (__csinl): Likewise.
57123         * math/s_csinhl.c (__csinhl): Likewise.
57124         * math/s_ctanl.c (__ctanl): Likewise.
57125         * math/s_ctanhl.c (__ctanhl): Likewise.
57126
57127 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57128
57129         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
57130         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
57131         (_IO_off_t): Define to __off_t, not _G_off_t.
57132         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
57133         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
57134         (_IO_wint_t): Define to wint_t, not _G_wint_t.
57135         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
57136         type of __dummy and __dummy2 fields.
57137         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
57138         (_G_ssize_t): Likewise.
57139         (_G_off_t): Likewise.
57140         (_G_pid_t): Likewise.
57141         (_G_uid_t): Likewise.
57142         (_G_wchar_t): Likewise.
57143         (_G_wint_t): Likewise.
57144         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
57145         (_G_ssize_t): Likewise.
57146         (_G_off_t): Likewise.
57147         (_G_pid_t): Likewise.
57148         (_G_uid_t): Likewise.
57149         (_G_wchar_t): Likewise.
57150         (_G_wint_t): Likewise.
57151         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
57152         (_G_ssize_t): Likewise.
57153         (_G_off_t): Likewise.
57154         (_G_pid_t): Likewise.
57155         (_G_uid_t): Likewise.
57156         (_G_wchar_t): Likewise.
57157         (_G_wint_t): Likewise.
57158
57159 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57160
57161         * malloc/arena.c: Include malloc-sysdep.h.
57162         (shrink_heap): Use check_may_shrink_heap to decide if madvise
57163         is sufficient to shrink the heap or an unmap is needed.
57164         * sysdeps/generic/malloc-sysdep.h: New file.  Define
57165         new function check_may_shrink_heap.
57166         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
57167         new function check_may_shrink_heap.
57168
57169 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57170
57171         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
57172         comments.
57173
57174 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
57175
57176         * catgets/test-gencat.sh: Add "set -e".
57177         * elf/tst-pathopt.sh: Likewise.
57178         * grp/tst_fgetgrent.sh: Likewise.
57179         * iconvdata/run-iconv-test.sh: Likewise.
57180         * intl/tst-gettext.sh: Likewise.
57181         * intl/tst-gettext2.sh: Likewise.
57182         * intl/tst-gettext4.sh: Likewise.
57183         * intl/tst-gettext6.sh: Likewise.
57184         * intl/tst-translit.sh: Likewise.
57185         * io/ftwtest-sh: Likewise.
57186         * libio/test-freopen.sh: Likewise.
57187         * malloc/tst-mtrace.sh: Likewise.
57188         * posix/globtest.sh: Likewise.
57189         * posix/tst-getconf.sh: Likewise.
57190         * posix/wordexp-tst.sh: Likewise.
57191         * stdio-common/tst-printf.sh: Likewise.
57192         * stdio-common/tst-unbputc.sh: Likewise.
57193         * stdlib/tst-fmtmsg.sh: Likewise.
57194         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57195         * catgets/Makefile: Do not specify -e option when running
57196         testsuite shell scripts.
57197         * elf/Makefile: Likewise.
57198         * grp/Makefile: Likewise.
57199         * iconvdata/Makefile: Likewise.
57200         * intl/Makefile: Likewise.
57201         * io/Makefile: Likewise.
57202         * libio/Makefile: Likewise.
57203         * malloc/Makefile: Likewise.
57204         * posix/Makefile: Likewise.
57205         * stdio-common/Makefile: Likewise.
57206         * stdlib/Makefile: Likewise.
57207         * sysdeps/x86_64/Makefile: Likewise.
57208
57209         * io/ftwtest-sh: Add copyright header.
57210         * posix/globtest.sh: Likewise.
57211         * posix/tst-getconf.sh: Likewise.
57212         * posix/wordexp-tst.sh: Likewise.
57213         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57214
57215 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
57216
57217         [BZ #13679]
57218         * Makeconfig (+link): Defined as $(+link-static) if
57219         $(build-shared) isn't yes.
57220         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
57221         isn't yes.
57222         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
57223
57224         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
57225
57226         [BZ #14562]
57227         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
57228         new chunk size with MALLOC_ALIGN_MASK.
57229
57230 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
57231
57232         [BZ #5044]
57233         * stdio-common/printf_fphex.c: Include <stdbool.h> and
57234         <rounding-mode.h>.
57235         (__printf_fphex): Determine rounding using get_rounding_mode and
57236         round_away.
57237         * stdio-common/tst-printf-round.c (struct hex_test): New
57238         structure.
57239         (hex_tests): New variable.
57240         (test_hex_in_one_mode): New function.
57241         (do_test): Also run tests for hex float output.
57242
57243 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
57244
57245         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57246         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57247         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
57248         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57249         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57250         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
57251         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57252         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57253
57254 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
57255
57256         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
57257         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
57258         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
57259         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
57260
57261 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
57262
57263         [BZ #14579]
57264         * elf/rtld.c (dl_main): Limit the check for self loading to normal
57265         mode only.
57266         * elf/tst-rtld-load-self.sh: New test.
57267         * elf/Makefile: Run it.
57268
57269 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
57270
57271         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
57272         (tst-writev-ENV): Remove.
57273         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
57274
57275 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
57276
57277         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
57278
57279 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
57280
57281         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
57282         unconditional.
57283         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
57284         Likewise.
57285         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
57286         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
57287         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
57288         Likewise.
57289
57290 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
57291
57292         [BZ #14587]
57293         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
57294         * config.make.in (have-cpp-asm-debuginfo): Removed.
57295         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
57296         * configure: Regenerated.
57297
57298 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
57299
57300         [BZ #5044]
57301         * stdio-common/printf_fp.c: Include <stdbool.h> and
57302         <rounding-mode.h>.
57303         (___printf_fp): Determine rounding using get_rounding_mode and
57304         round_away.
57305         * stdio-common/tst-printf-round.c: New file.
57306         * stdio-common/Makefile (tests): Add tst-printf-round.
57307         (link-libm): New variable.
57308         ($(objpfx)tst-printf-round): Depend in $(link-libm).
57309
57310 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
57311
57312         [BZ #14576]
57313         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
57314         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
57315         Likewise.
57316         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
57317         Likewise.
57318
57319 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
57320
57321         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
57322         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57323         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57324         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57325
57326 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
57327
57328         [BZ #14518]
57329         * include/rounding-mode.h: New file.
57330         * sysdeps/generic/get-rounding-mode.h: Likewise.
57331         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
57332         * stdlib/strtod_l.c: Include <rounding-mode.h>.
57333         (MAX_VALUE): New macro.
57334         (MIN_VALUE): Likewise.
57335         (overflow_value): New function.
57336         (underflow_value): Likewise.
57337         (round_and_return): Use overflow_value and underflow_value to
57338         determine return values in overflow and underflow cases.  Use
57339         round_away to determine rounding depending on rounding mode.
57340         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
57341         determine return values in overflow and underflow cases.
57342         * stdlib/tst-strtod-round.c: Include <fenv.h>.
57343         (struct test_results): New structure.
57344         (struct test): Use struct test_results to store expected results
57345         for all rounding modes.
57346         (TEST): Include expected results for all rounding modes.
57347         (test_in_one_mode): New function.
57348         (do_test): Use test_in_one_mode to compute and check results.
57349         Check results for all rounding modes.
57350         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
57351         $(link-libm).
57352
57353 2012-12-09  Allan McRae  <allan@archlinux.org>
57354
57355         * sysdeps/i386/fpu/libm-test-ulps: Update
57356
57357 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
57358
57359         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
57360         (_G_int32_t): Likewise.
57361         (_G_uint16_t): Likewise.
57362         (_G_uint32_t): Likewise.
57363         (_G_HAVE_BOOL): Likewise.
57364         (_G_HAVE_ATEXIT): Likewise.
57365         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57366         (_G_HAVE_IO_FILE_OPEN): Likewise.
57367         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
57368         (_G_int32_t): Likewise.
57369         (_G_uint16_t): Likewise.
57370         (_G_uint32_t): Likewise.
57371         (_G_HAVE_BOOL): Likewise.
57372         (_G_HAVE_ATEXIT): Likewise.
57373         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57374         (_G_HAVE_IO_FILE_OPEN): Likewise.
57375         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
57376         (_G_int32_t): Likewise.
57377         (_G_uint16_t): Likewise.
57378         (_G_uint32_t): Likewise.
57379         (_G_HAVE_BOOL): Likewise.
57380         (_G_HAVE_ATEXIT): Likewise.
57381         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57382         (_G_HAVE_IO_FILE_OPEN): Likewise.
57383
57384 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
57385
57386         * csu/libc-tls.c: Update copyright years.
57387
57388 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
57389
57390         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
57391         [!_G_USING_THUNKS]: Remove conditional code.
57392         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
57393         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
57394
57395         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
57396         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
57397         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57398         (_G_VTABLE_LABEL_PREFIX): Likewise.
57399         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57400         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57401         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57402         (_G_VTABLE_LABEL_PREFIX): Likewise.
57403         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
57404         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
57405         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
57406         (_G_VTABLE_LABEL_PREFIX): Likewise.
57407         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
57408
57409 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
57410
57411         * libio/Makefile: Include ../Makeconfig before tests.
57412         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
57413         only if $(build-shared) is yes.
57414
57415         * iconv/gconv_db.c: Update copyright years.
57416
57417 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57418
57419         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
57420         unwind info if defined PIC. Fix special cases description.
57421         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
57422
57423         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
57424         DP_HI_MASK entry.
57425         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
57426
57427 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
57428
57429         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
57430
57431         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
57432         is NULL.
57433
57434         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
57435         (LDLIBS-tst-chk4): This.
57436         (LDFLAGS-tst-chk5): Renamed to ...
57437         (LDLIBS-tst-chk5): This.
57438         (LDFLAGS-tst-chk6): Renamed to ...
57439         (LDLIBS-tst-chk6): This.
57440         (LDFLAGS-tst-lfschk4): Renamed to ...
57441         (LDLIBS-tst-lfschk4): This.
57442         (LDFLAGS-tst-lfschk5): Renamed to ...
57443         (LDLIBS-tst-lfschk5): This.
57444         (LDFLAGS-tst-lfschk6): Renamed to ...
57445         (LDLIBS-tst-lfschk6): This.
57446
57447         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
57448         on $(common-objpfx)soversions.mk.
57449
57450 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
57451
57452         [BZ #10014]
57453         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
57454         example host name.
57455
57456 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
57457
57458         * malloc/arena.c (arena_get_retry): New function that gets
57459         another arena for the caller to try its request on.
57460         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
57461         current arena cannot fulfill the request.
57462         (__libc_memalign): Likewise.
57463         (__libc_memalign): Likewise.
57464         (__libc_pvalloc): Likewise.
57465         (__libc_calloc): Likewise.
57466
57467 2012-09-05  John Tobey  <john.tobey@gmail.com>
57468
57469         [BZ #13542]
57470         * manual/arith.texi (Operations on Complex): Fix description
57471         of carg branch cut.
57472
57473 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
57474
57475         [BZ #10014]
57476         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
57477         host name.
57478
57479         [BZ #10038]
57480         * manual/memory.texi (Memory): Make order of menu items match
57481         order of sections.
57482
57483 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57484
57485         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
57486         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
57487         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
57488
57489 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57490
57491         * csu/libc-tls.c (static_dtv): Renamed to ...
57492         (_dl_static_dtv): This.  Make it global.
57493         (_dl_initial_dtv): Removed.
57494         (__libc_setup_tls): Updated.
57495         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
57496         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
57497         DL_INITIAL_DTV.
57498
57499 2012-09-06  Petr Machata  <pmachata@redhat.com>
57500
57501         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
57502         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
57503         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
57504         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
57505
57506 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57507
57508         [BZ #14545]
57509         * csu/libc-tls.c (_dl_initial_dtv): New variable.
57510         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
57511         freeing dtv[-1].
57512
57513 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
57514
57515         [BZ #14544]
57516         * Makeconfig (link-static-before-libc): Replace $(+prector)
57517         with $(+prectorT).
57518         (link-static-after-libc): Replace $(+postctor) with
57519         $(+postctorT).
57520         (link-bounded): Replace $(+prector)/$(+postctor) with
57521         $(+prectorT)/$(+postctorT).
57522         (+prectorT): New macro.
57523         (+postctorT): Likewise.
57524
57525 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
57526
57527         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
57528         (round_str): Handle values above the maximum for IBM long double
57529         as inexact.
57530         * stdlib/tst-strtod-round.c (tests): Regenerated.
57531
57532 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57533
57534         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
57535         assembler flag.
57536         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
57537         zarch_nohighgprs around the zarch optimized routines.
57538         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
57539         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
57540         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
57541         for zarch.
57542
57543 2012-09-05  David S. Miller  <davem@davemloft.net>
57544
57545         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57546
57547         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
57548         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
57549         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
57550         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
57551         entries.
57552
57553 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57554
57555         * malloc/arena.c: Fold copyright years.
57556         * malloc/mcheck.c, malloc/memusage.c: Likewise.
57557
57558 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57559
57560         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
57561
57562 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57563
57564         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
57565
57566 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57567
57568         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
57569         change internal state upon failure.
57570
57571 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
57572
57573         * malloc/mcheck.c (mcheck_check_all): Fix typo.
57574         * malloc/memusage.c (mmap): Likewise.
57575         (mmap64, mremap): Likewise.  Adjust name in comment.
57576
57577 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
57578
57579         * libio/fileops.c: Fix typos in comments.
57580         * libio/oldfileops.c: Likewise.
57581         * libio/wfileops.c: Likewise.
57582
57583 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
57584
57585         [BZ #1349]
57586         * malloc/Makefile (tests): Add tst-malloc-usable test case.
57587         (tst-malloc-usable-ENV): Set environment for test case.
57588         * malloc/hooks.c (malloc_check_get_size): New function to get
57589         requested size.
57590         * malloc/malloc.c (musable): Use malloc_check_get_size.
57591         * malloc/tst-malloc-usable.c: New test case.
57592
57593 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
57594
57595         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
57596
57597 2012-09-05  Allan McRae  <allan@archlinux.org>
57598
57599         [BZ #13966]
57600         * configure.in (CXX_SYSINCLUDES): Use compiler output to
57601         determine header location.
57602         * configure: Regenerated.
57603
57604 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
57605
57606         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
57607         float format.
57608         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
57609         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
57610         format.
57611         (test): Regenerate.
57612
57613 2012-09-04  David S. Miller  <davem@davemloft.net>
57614
57615         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
57616         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
57617         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
57618
57619 2012-09-04  Florian Weimer  <fweimer@redhat.com>
57620
57621         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
57622         failures.
57623
57624         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
57625
57626 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
57627
57628         [BZ #9914]
57629         * libio/iogetdelim.c: Include <limits.h>.
57630         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
57631         + len + 1 would overflow.
57632
57633 2012-09-03  Andreas Jaeger  <aj@suse.de>
57634
57635         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57636         * sysdeps/i386/fpu/libm-test-ulps: Update.
57637
57638 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57639
57640         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57641         Add s_sinf-sse2, s_conf-sse2.
57642
57643         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
57644         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
57645         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
57646         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
57647
57648         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
57649         for using routine as __sinf_ia32.
57650         Use macro for function declaration and weak_alias.
57651         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
57652         for using routine as __cosf_ia32.
57653         Use macro for function declaration and weak_alias.
57654
57655         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
57656         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
57657
57658         * sysdeps/x86_64/fpu/s_sinf.S: New file.
57659         * sysdeps/x86_64/fpu/s_cosf.S: New file.
57660         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57661
57662         * math/libm-test.inc (cos_test): Add more test cases.
57663         (sin_test): Likewise.
57664         (sincos_test): Likewise.
57665
57666 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57667
57668         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
57669         (IFUNC_RESOLVE): Make pointers to the specialized implementations
57670         hidden.
57671         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
57672
57673 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
57674
57675         [BZ #14538]
57676         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
57677         first element of the GOT.
57678         (elf_machine_load_address): Return the difference between
57679         the runtime address of _DYNAMIC and elf_machine_dynamic ().
57680
57681 2012-09-01  Allan McRae  <allan@archlinux.org>
57682
57683         [BZ #13412]
57684         * configure.in (AWK): Require gawk version 3.0 or later.
57685         * configure: Regenerated.
57686
57687 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
57688
57689         * sysdeps/unix/sysv/linux/kernel-features.h
57690         (__ASSUME_POSIX_CPU_TIMERS): Remove.
57691         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
57692         [__NR_clock_getres]: Make code unconditional.
57693         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
57694         (clock_getcpuclockid): Remove code left unreachable by removal of
57695         conditionals.
57696         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
57697         code unconditional.
57698         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
57699         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
57700         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
57701         Make code unconditional.
57702         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
57703         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
57704         * sysdeps/unix/sysv/linux/clock_settime.c
57705         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
57706         conditional code.
57707         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
57708         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
57709
57710 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
57711
57712         [BZ #14476]
57713         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
57714         scripts/test-installation.pl.
57715
57716         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
57717         and $ld_so_version if it is set.
57718
57719 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
57720
57721         [BZ #14516]
57722         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
57723         failure if reading from procfs failed.
57724         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
57725
57726 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
57727
57728         * sysdeps/unix/sysv/linux/kernel-features.h
57729         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
57730         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
57731         Remove conditional code.
57732         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57733         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
57734         Remove conditional code.
57735         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57736         * sysdeps/unix/sysv/linux/i386/fxstat.c
57737         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
57738         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57739         * sysdeps/unix/sysv/linux/i386/fxstatat.c
57740         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
57741         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57742         * sysdeps/unix/sysv/linux/i386/lxstat.c
57743         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
57744         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57745         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
57746         Remove conditional code.
57747         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57748         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
57749         Remove conditional code.
57750         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57751         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
57752         <kernel-features.h>.
57753         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
57754         Remove.
57755         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
57756         Remove conditional code.
57757         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
57758         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
57759         Remove conditional.
57760
57761 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
57762
57763         [BZ #5400]
57764         * NEWS: Add fixed bug number.
57765
57766 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
57767
57768         [BZ #14519]
57769         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
57770         underflowing exponent in case of negative sign.
57771         * stdlib/tst-strtod-round-data: Add more tests.
57772         * stdlib/tst-strtod-round.c (tests): Regenerated.
57773
57774         [BZ #3479]
57775         * stdlib/strtod_l.c (NDIG): Remove.
57776         (HEXNDIG): Likewise.
57777         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
57778         smallest representable value.
57779         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
57780         lie within an exact representation of 1/2 ulp of the result.
57781         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
57782         unconditionally.
57783         (TENS_P9_IDX): Define unconditionally.
57784         (TENS_P9_SIZE): Likewise.
57785         (TENS_P10_IDX): Likewise.
57786         (TENS_P10_SIZE): Likewise.
57787         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
57788         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
57789         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
57790         entries for 10^2^13 and 10^2^14.
57791         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
57792         (TENS_P13_IDX): Define.
57793         (TENS_P13_SIZE): Likewise.
57794         (TENS_P14_IDX): Likewise.
57795         (TENS_P14_SIZE): Likewise.
57796         (_fpioconst_pow10): Change array size to
57797         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
57798         unconditional.
57799         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
57800         1024]: Add entries for 10^2^13 and 10^2^14.
57801         [LAST_POW10 > _LAST_POW10]: Remove #error.
57802         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
57803         (_fpioconst_pow10): Change array size to
57804         FPIOCONST_POW10_ARRAY_SIZE.
57805         * stdlib/gen-fpioconst.c: New file.
57806         * stdlib/gen-tst-strtod-round.c: Likewise.
57807         * stdlib/tst-strtod-round-data: Likewise.
57808         * stdlib/tst-strtod-round.c: Likewise.
57809         * stdlib/Makefile (tests): Add tst-strtod-round.
57810
57811         [BZ #14459]
57812         * stdlib/strtod_l.c: Include <stdint.h>.
57813         (NDEBUG): Do not define.
57814         (round_and_return): Change EXPONENT parameter to type intmax_t.
57815         Rearrange calculations to avoid internal overflow possibilities.
57816         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
57817         Rearrange calculations to avoid internal overflow possibilities.
57818         Assert that number fits inside MPNSIZE limbs.
57819         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
57820         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
57821         calculations and add assertions to avoid internal overflow
57822         possibilities.  Add casts to avoid signed/unsigned operations.
57823         * stdlib/tst-strtod-overflow.c: New file.
57824         * stdlib/Makefile (tests): Add tst-strtod-overflow.
57825
57826 2012-08-25  Marek Polacek  <polacek@redhat.com>
57827
57828         * time/time.h: Fix some typos in comments.
57829
57830 2012-08-23  Roland McGrath  <roland@hack.frob.com>
57831
57832         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
57833         * posix/tst-rfc3484-2.c: Likewise.
57834         * posix/tst-rfc3484-3.c: Likewise.
57835
57836 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
57837
57838         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
57839         (EF_ARM_ABI_FLOAT_HARD): Likewise.
57840
57841 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
57842
57843         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
57844         #include of fxstatat64.c.
57845
57846 2012-08-22  Roland McGrath  <roland@hack.frob.com>
57847
57848         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
57849         * shadow/getspent_r.c: Likewise.
57850         * shadow/getspnam.c: Likewise.
57851         * shadow/getspnam_r.c: Likewise.
57852         * gshadow/getsgent.c: Likewise.
57853         * gshadow/getsgent_r.c: Likewise.
57854         * gshadow/getsgnam.c: Likewise.
57855         * gshadow/getsgnam_r.c: Likewise.
57856         * inet/getnetbyad.c: Likewise.
57857         * inet/getnetbyad_r.c: Likewise.
57858         * inet/getnetbynm.c: Likewise.
57859         * inet/getnetbynm_r.c: Likewise.
57860         * inet/getnetent.c: Likewise.
57861         * inet/getnetent_r.c: Likewise.
57862         * inet/getproto.c: Likewise.
57863         * inet/getproto_r.c: Likewise.
57864         * inet/getprtent.c: Likewise.
57865         * inet/getprtent_r.c: Likewise.
57866         * inet/getprtname.c: Likewise.
57867         * inet/getprtname_r.c: Likewise.
57868         * inet/getrpcbyname.c: Likewise.
57869         * inet/getrpcbyname_r.c: Likewise.
57870         * inet/getrpcbynumber.c: Likewise.
57871         * inet/getrpcbynumber_r.c: Likewise.
57872         * inet/getrpcent.c: Likewise.
57873         * inet/getrpcent_r.c: Likewise.
57874         * inet/getaliasent.c: Likewise.
57875         * inet/getaliasent_r.c: Likewise.
57876         * inet/getaliasname.c: Likewise.
57877         * inet/getaliasname_r.c: Likewise.
57878         * nscd/getgrgid_r.c: Likewise.
57879         * nscd/getgrnam_r.c: Likewise.
57880         * nscd/gethstbyad_r.c: Likewise.
57881         * nscd/gethstbynm3_r.c: Likewise.
57882         * nscd/getpwnam_r.c: Likewise.
57883         * nscd/getpwuid_r.c: Likewise.
57884         * nscd/getsrvbynm_r.c: Likewise.
57885         * nscd/getsrvbypt_r.c: Likewise.
57886         * nscd/gai.c: Likewise.
57887
57888         * configure.in (build_nscd): New substituted variable, set
57889         by --disable-build-nscd and defaults to $use_nscd.
57890         * configure: Regenerated.
57891         * config.make.in (build-nscd): New substituted variable.
57892         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
57893         Change conditional to require [$(build-nscd) = yes] as well.
57894         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
57895
57896         [BZ# 13696]
57897         * configure.in (use_nscd): New substituted variable, set by
57898         --disable-nscd.  If enabled, define USE_NSCD.
57899         * configure: Regenerated.
57900         * config.h.in: Add USE_NSCD.
57901         * config.make.in (use-nscd): New substituted variable.
57902         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
57903         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
57904         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
57905         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
57906         (CFLAGS-getgrnam_r.c): Likewise.
57907         (CFLAGS-initgroups.c): Likewise.
57908         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
57909         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
57910         Variables removed.
57911         * inet/getnetgrent_r.c
57912         (nscd_setnetgrent): New function, broken out of ...
57913         (setnetgrent): ... here.  Call it.
57914         (innetgr): Conditionalize nscd bits on [USE_NSCD].
57915         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
57916         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
57917         * nscd/Makefile (routines, aux): Move definitions after include of
57918         Makeconfig.  Conditionalize on [$(use-nscd) != no].
57919         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
57920         Conditionalize on [USE_NSCD].
57921         (is_nscd, nscd_init_cb): Likewise.
57922         (nss_load_library): Conditionalize init callback on [USE_NSCD].
57923         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
57924         * nss/nss_db/db-init.c: Likewise.
57925         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
57926         [USE_NSCD].
57927         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
57928         (make_request): Use it.
57929         (cache_valid_p): New function.
57930         (__check_pf): Use it.
57931         * NEWS: Add item for --disable-nscd.
57932
57933 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
57934
57935         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
57936         to support sed >= 4.2.1-20-ga9bf076.
57937         * configure: Regenerated.
57938
57939 2012-08-22  Roland McGrath  <roland@hack.frob.com>
57940
57941         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
57942         Conditionalize whole body on [IREL].
57943
57944 2012-08-22  Jeff Law <law@redhat.com>
57945
57946         [BZ #14505]
57947         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
57948         if the family is PF_UNSPEC.
57949
57950 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
57951
57952         * Makerules (lib-version): Rename from V.
57953         (install-lib-nosubdir): Change V to lib-version.
57954
57955 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
57956
57957         [BZ #14252]
57958         * powerpc32/power6/wcschr.c: New file.
57959         * powerpc32/power6/wcscpy.c: New file.
57960         * powerpc32/power6/wcsrchr.c: New file.
57961         * powerpc64/power6/wcschr.c: New file.
57962         * powerpc64/power6/wcscpy.c: New file.
57963         * powerpc64/power6/wcsrchr.c: New file.
57964
57965 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
57966
57967         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
57968         (two_way_short_needle): Use it.
57969         * string/strstr.c (AVAILABLE1_USES_J): Define.
57970         * string/strcasestr.c: Likewise.
57971
57972         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
57973         array references.
57974         * string/strcasestr.c (TOLOWER): Make side-effect safe.
57975
57976         [BZ #11607]
57977         * NEWS: Add an entry.
57978         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
57979         define their defaults.
57980         (two_way_short_needle): Detect end-of-string on-the-fly.
57981         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
57982         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
57983         * string/bug-strcasestr1.c: New test.
57984         * string/Makefile: Run it.
57985
57986 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
57987
57988         [BZ #11607]
57989         * string/str-two-way.h (two_way_short_needle): Optimize matching of
57990         the first character.
57991
57992 2012-08-21  Roland McGrath  <roland@hack.frob.com>
57993
57994         * csu/elf-init.c (__libc_csu_irel): Function removed.
57995         * csu/libc-start.c (apply_irel): New function.
57996         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
57997
57998 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
57999
58000         * sysdeps/unix/sysv/linux/kernel-features.h
58001         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
58002         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
58003         <kernel-features.h>.
58004         [__NR_fadvise64_64]: Make code unconditional.
58005         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
58006         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58007         !__NR_fadvise64_64)]: Likewise.
58008         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58009         !__NR_fadvise64_64))]: Likewise.
58010         [__NR_fadvise64]: Make code unconditional.
58011         [!__NR_fadvise64]: Remove conditional code.
58012         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
58013         <kernel-features.h>.
58014         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58015         unconditional.
58016         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58017         conditional code.
58018         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
58019         not include <kernel-features.h>.
58020         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58021         unconditional.
58022         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58023         conditional code.
58024         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
58025         include <kernel-features.h>.
58026         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58027         unconditional.
58028         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58029         conditional code.
58030
58031 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
58032
58033         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
58034         slight instruction rearrangements per scrollpipe analysis.
58035         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
58036
58037 2012-08-20  Roland McGrath  <roland@hack.frob.com>
58038
58039         * manual/syslog.texi (syslog; vsyslog, closelog):
58040         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
58041         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
58042
58043         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
58044         DSOCAPS to match condition on defining it.
58045
58046 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
58047
58048         * sysdeps/unix/sysv/linux/kernel-features.h
58049         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
58050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
58051         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58052         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
58054         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58055         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
58057         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58058         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58059
58060         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
58061         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
58062
58063         * sysdeps/unix/sysv/linux/kernel-features.h
58064         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
58065         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
58066         unconditional.
58067         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58068         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
58069         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58070         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58071         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
58072         Make code unconditional.
58073         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58074         (__mmap64) [!__NR_mmap2]: Likewise.
58075         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
58076         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58077         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58078         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
58079         [__NR_mmap2]: Make code unconditional.
58080         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58081         (__mmap64) [!__NR_mmap2]: Likewise.
58082
58083 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58084
58085         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
58086
58087 2012-08-18  Andreas Jaeger  <aj@suse.de>
58088
58089         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
58090
58091 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58092
58093         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
58094         * include/unistd.h (__have_sock_cloexec): Likewise.
58095         (__have_pipe2): Likewise.
58096         (__have_dup3): Likewise.
58097
58098 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58099
58100         [BZ #9685]
58101         * include/unistd.h (__have_pipe2): Change define into an extern int.
58102         (__have_dup3): Likewise.
58103         * socket/have_sock_cloexec.c: Include fcntl.h.
58104         (__have_pipe2): New variable.
58105         (__have_dup3): Likewise.
58106
58107 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
58108
58109         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
58110
58111 2012-08-17  Marek Polacek  <polacek@redhat.com>
58112
58113         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
58114         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
58115
58116 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58117
58118         * configure.in: Add AC_SUBST for sysheaders.
58119         * configure: Regenerated.
58120         * config.make.in (sysheaders): New substituted variable.
58121
58122         * sysdeps/unix/mkfifo.c: Moved ...
58123         * sysdeps/posix/mkfifo.c: ... here.
58124         * sysdeps/unix/mkfifoat.c: Moved ...
58125         * sysdeps/posix/mkfifoat.c: ... here.
58126
58127         * sysdeps/unix/utime.c: Moved ...
58128         * sysdeps/posix/utime.c: ... here.
58129
58130         * sysdeps/unix/time.c: Moved ...
58131         * sysdeps/posix/time.c: ... here.
58132         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
58133         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
58134
58135         * sysdeps/unix/nice.c: Moved ...
58136         * sysdeps/posix/nice.c: ... here.
58137
58138         * sysdeps/unix/alarm.c: Moved ...
58139         * sysdeps/posix/alarm.c: ... here.
58140
58141         * intl/Makefile ($(codeset_mo)): Depend on the input file.
58142
58143 2012-08-17  Jeff Law <law@redhat.com>
58144
58145         * intl/Makefile (codeset_mo): New variable.
58146         ($(codeset_mo)): New target.
58147         (tst-codeset.out): Depend on that.  Remove explicit rule.
58148         (tst-gettext3.out, tst-gettext5.out): Likewise.
58149         (LOCPATH-ENV, tst-codeset-ENV): New variables.
58150         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
58151         * intl/tst-codeset.sh: Remove.
58152         * intl/tst-gettext3.sh: Likewise.
58153         * intl/tst-gettext5.sh: Likewise.
58154
58155 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58156
58157         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
58158         * sysdeps/unix/syscalls.list: ... here.
58159
58160         * sysdeps/posix/getaddrinfo.c
58161         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
58162         (gaiconf_init, gaiconf_reload): Use them.
58163         [!_STATBUF_ST_NSEC]
58164         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
58165         Define using time_t rather than struct timespec.
58166
58167         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
58168         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
58169         Macros removed.
58170         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
58171         [!NO_THREADS].
58172         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
58173         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
58174         Likewise.
58175
58176         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
58177         __libc_cleanup_push argument.
58178
58179         * bits/param.h: New file.
58180         * misc/sys/param.h: New file.
58181         * include/sys/param.h: New file.
58182         * misc/Makefile (headers): Add bits/param.h.
58183         * sysdeps/generic/sys/param.h: File removed.
58184         * sysdeps/unix/sysv/linux/bits/param.h: New file.
58185         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
58186         * sysdeps/mach/hurd/bits/param.h: New file.
58187         * sysdeps/mach/hurd/sys/param.h: File removed.
58188
58189         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
58190         last change.
58191
58192         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
58193         [_IO_MTSAFE_IO].
58194         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
58195         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
58196         New macros.
58197
58198         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
58199         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
58200         rather than -D_IO_MTSAFE_IO conditionally.
58201         * stdio-common/Makefile (CPPFLAGS): Likewise.
58202         * wcsmbs/Makefile (CPPFLAGS): Likewise.
58203         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
58204         Use $(libio-mtsafe).
58205         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
58206         of -D_IO_MTSAFE_IO.
58207         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
58208         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
58209         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
58210         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
58211         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
58212         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
58213         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
58214         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
58215         (CFLAGS-fread_u_chk.c): Likewise.
58216         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
58217         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
58218         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
58219         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
58220         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
58221         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
58222         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
58223         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
58224         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
58225
58226         * libio/Makefile: Test [$(libc-reentrant) = yes]
58227         instead of [$(filter %REENTRANT, $(defines)) nonempty].
58228
58229         * Makeconfig
58230         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
58231         * sysdeps/pthread/configure: File removed.
58232         * sysdeps/pthread/Makeconfig: New file.
58233         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
58234         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
58235
58236 2012-08-16  Gary Benson  <gbenson@redhat.com>
58237
58238         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
58239         unmapping the first object in a namespace.
58240
58241 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58242
58243         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
58244         (__internal_setnetgrent): ... this.  Add internal_function to
58245         definition.  Add libc_hidden_def.
58246         (setnetgrent): Update caller.
58247         (internal_endnetgrent): Renamed to ...
58248         (__internal_endnetgrent): ... this.  Add internal_function to
58249         definition.  Add libc_hidden_def.
58250         (endnetgrent): Update caller.
58251         (internal_getnetgrent_r): Renamed to ...
58252         (__internal_getnetgrent_r): ... this.  Add internal_function to
58253         definition.  Add libc_hidden_def.
58254         (__getnetgrent_r): Update caller.
58255         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
58256
58257 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58258
58259         * stdlib/longlong.h: Update from GCC.
58260
58261 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58262
58263         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
58264         on _QL, which is set by umul_ppmm but never used.
58265         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
58266         variables, which are set by GMP macros but never used.
58267         * stdio-common/_itowa.c (_itowa): Likewise.
58268         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
58269         * stdlib/mod_1.c (mpn_mod_1): Likewise.
58270
58271 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
58272
58273         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
58274         struct La_sh_regs is not constant.
58275         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
58276         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
58277         and struct La_sparc64_regs are not constant.
58278
58279 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58280
58281         * sysdeps/unix/sysv/linux/kernel-features.h
58282         (__ASSUME_POSIX_TIMERS): Remove.
58283         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58284         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58285         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
58286         Make code unconditional.
58287         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58288         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
58289         Make code unconditional.
58290         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58291         * sysdeps/unix/sysv/linux/clock_nanosleep.c
58292         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
58293         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58294         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
58295         Make code unconditional.
58296         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58297         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
58298         (__libc_missing_posix_timers): Remove.
58299
58300 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58301
58302         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
58303         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
58304
58305         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
58306
58307         * elf/dl-sym.c: Include <stdlib.h>.
58308
58309         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
58310         constants, which avoids warnings in 32-bit builds.
58311
58312         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
58313         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
58314
58315         * misc/lseek.c: File moved to ...
58316         * io/lseek.c: ... here.
58317
58318         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
58319
58320         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
58321         shifting LEN more than 31 bits at once.
58322
58323 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58324
58325         [BZ #14195]
58326         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
58327         segmentation fault for a case of two empty input strings.
58328         * string/test-strncasecmp.c (check1): Renamed to...
58329         (bz12205): ...this.
58330         (bz14195): Add new testcase for two empty input strings and N > 0.
58331         (test_main): Call new testcase, adapt for renamed function.
58332
58333 2012-08-15  Andreas Jaeger  <aj@suse.de>
58334
58335         [BZ #14090]
58336         * crypt/md5test2.c: New test, based on test supplied by Serge
58337         Belyshev <belyshev@depni.sinp.msu.ru>.
58338         * crypt/Makefile (xtests): Add md5test-giant..
58339         * crypt/Makefile ($(objpfx)md5test-giant): Add.
58340
58341 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58342
58343         [BZ #14090]
58344         * crypt/md5.c (md5_process_block): Don't assume the buffer
58345         length is less than 2**32.
58346         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
58347         length is less than 2**64.
58348
58349 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58350
58351         * string/str-two-way.h: Include <sys/param.h>.
58352         (MAX): Macro removed.
58353
58354         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
58355         Move #define and #undef of memmove to just before and after
58356         including <string.h>.
58357
58358         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
58359         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
58360         and after including <string.h>.  Move declarations of
58361         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
58362         to before #include "string/memmove.c".
58363
58364         * include/dirent.h: Declare __getdirentries.
58365
58366         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
58367         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
58368
58369 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
58370
58371         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
58372         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
58373         * sysdeps/i386/configure: Regenerated.
58374         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
58375         STABS_CURRENT_FILE, and STABS_FUN.
58376         (END): Remove call to STABS_FUN_END.
58377         (STABS_CURRENT_FILE1): Delete.
58378         (STABS_CURRENT_FILE): Likewise.
58379         (STABS_FUN): Likewise.
58380         (STABS_FUN_END): Likewise.
58381         (STABS_FUN2): Likewise.
58382         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
58383         * sysdeps/x86_64/configure: Regenerated.
58384
58385 2012-08-14  Roland McGrath  <roland@hack.frob.com>
58386
58387         * elf/dl-open.c: Include <atomic.h>.
58388         * elf/dl-lookup.c: Likewise.
58389
58390 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
58391
58392         * sysdeps/unix/sysv/linux/kernel-features.h
58393         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
58394         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
58395         unconditionally.
58396         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
58397         unconditionally.
58398         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
58399         condition on __ASSUME_CLONE_THREAD_FLAGS.
58400
58401 2012-08-14  Andreas Jaeger  <aj@suse.de>
58402
58403         * sysdeps/i386/fpu/libm-test-ulps: Update.
58404
58405 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
58406
58407         * include/atomic.h (atomic_exchange_and_add): Split into ...
58408         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
58409         New atomic macros.
58410
58411 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
58412
58413         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58414
58415 2012-08-13  Jeff Law <law@redhat.com>
58416
58417         * manual/stdio.texi (snprintf): Clarify handling of the trailing
58418         null byte in the output string.
58419
58420 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
58421
58422         * sysdeps/unix/sysv/linux/kernel-features.h
58423         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
58424         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
58425         (__ASSUME_ARG_MAX_STACK_BASED): Define.
58426         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
58427         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
58428         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
58429         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
58430
58431 2012-08-09  Jeff Law <law@redhat.com>
58432
58433         [BZ #13939]
58434         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
58435         When avoid_arena is set, don't retry in the that arena.  Pick the
58436         next one, whatever it might be.
58437         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
58438         (arena_lock): Pass in new parameter to arena_get2.
58439         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
58440         arena_get2.
58441         (__libc_malloc): Unify retrying after main arena failure with
58442         __libc_memalign version.
58443         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
58444
58445 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
58446
58447         [BZ #14166]
58448         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
58449         to __redirect_strstr.
58450         (__strstr_sse42): Use typeof __redirect_strstr.
58451         (__strstr_ia32): Likewise.
58452         (__libc_strstr): New prototype.
58453         (strstr): Renamed to ...
58454         (__libc_strstr): This.
58455         (strstr): New strong alias of __libc_strstr.
58456         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
58457         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
58458         __redirect_time.
58459         Include <time.h>.
58460         (__libc_time): New prototype.
58461         (time_ifunc): Replace time with __libc_time.
58462         (time): New strong alias and hidden definition of __libc_time.
58463         (__GI_time): Remove strong alias.
58464         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
58465         Include <stddef.h>.
58466         (memmove): Redefined to __redirect_memmove.
58467         (__memmove_sse2): Use typeof __redirect_memmove.
58468         (__memmove_ssse3): Likewise.
58469         (__memmove_ssse3_back): Likewise.
58470         (__libc_memmove): New prototype.
58471         (memmove): Renamed to ...
58472         (__libc_memmove): This.
58473         (memmove): New strong alias of __libc_memmove.
58474
58475 2012-08-08  Mark Salter  <msalter@redhat.com>
58476
58477         * elf/elf.h
58478         (R_MN10300_TLS_GD): Define.
58479         (R_MN10300_TLS_LD): Likewise.
58480         (R_MN10300_TLS_LDO): Likewise.
58481         (R_MN10300_TLS_GOTIE): Likewise.
58482         (R_MN10300_TLS_IE): Likewise.
58483         (R_MN10300_TLS_LE): Likewise.
58484         (R_MN10300_TLS_DTPMOD): Likewise.
58485         (R_MN10300_TLS_DTPOFF): Likewise.
58486         (R_MN10300_TLS_TPOFF): Likewise.
58487         (R_MN10300_SYM_DIFF): Likewise.
58488         (R_MN10300_ALIGN): Likewise.
58489         (R_MN10300_NUM): Update.
58490
58491 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
58492
58493         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
58494         Remove.
58495
58496 2012-08-08  Roland McGrath  <roland@hack.frob.com>
58497
58498         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
58499
58500         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
58501         sysdeps/unix -> sysdeps/posix move.
58502         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
58503
58504 2012-08-07      Allan McRae     <allan@archlinux.org>
58505
58506         [BZ #14303]
58507         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
58508         (SUNOS_CPP): Likewise.
58509         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
58510         not found.
58511         (open_input): Call CPP using execvp.
58512
58513 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
58514
58515         * sysdeps/unix/sysv/linux/kernel-features.h
58516         (__ASSUME_PROT_GROWSUPDOWN): Remove.
58517         (__ASSUME_NO_CLONE_DETACHED): Likewise.
58518         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
58519         (__ASSUME_WAITID_SYSCALL): Likewise.
58520         * sysdeps/unix/sysv/linux/dl-execstack.c
58521         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
58522         code unconditional.
58523         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
58524         conditional code.
58525         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
58526         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
58527         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
58528         code.
58529         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
58530         unconditional.
58531         [__ASSUME_WAITID_SYSCALL]: Likewise.
58532         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
58533
58534 2012-08-07  Roland McGrath  <roland@hack.frob.com>
58535
58536         * sysdeps/unix/closedir.c: Renamed to ...
58537         * sysdeps/posix/closedir.c: ... here.
58538         * sysdeps/unix/dirfd.c: Renamed to ...
58539         * sysdeps/posix/dirfd.c: ... here.
58540         * sysdeps/unix/dirstream.h: Renamed to ...
58541         * sysdeps/posix/dirstream.h: ... here.
58542         * sysdeps/unix/fdopendir.c: Renamed to ...
58543         * sysdeps/posix/fdopendir.c: ... here.
58544         * sysdeps/unix/opendir.c: Renamed to ...
58545         * sysdeps/posix/opendir.c: ... here.
58546         * sysdeps/unix/readdir.c: Renamed to ...
58547         * sysdeps/posix/readdir.c: ... here.
58548         * sysdeps/unix/readdir_r.c: Renamed to ...
58549         * sysdeps/posix/readdir_r.c: ... here.
58550         * sysdeps/unix/rewinddir.c: Renamed to ...
58551         * sysdeps/posix/rewinddir.c: ... here.
58552         * sysdeps/unix/seekdir.c: Renamed to ...
58553         * sysdeps/posix/seekdir.c: ... here.
58554         * sysdeps/unix/telldir.c: Renamed to ...
58555         * sysdeps/posix/telldir.c: ... here.
58556         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
58557         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
58558         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
58559         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
58560
58561         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
58562         * bits/fcntl.h: ... here.
58563
58564         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
58565         not 0.
58566         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
58567         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
58568         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
58569         (struct flock): Move l_start, l_len to the beginning.
58570         Use __pid_t for l_pid.
58571         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
58572         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
58573         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
58574         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
58575         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
58576         [__USE_LARGEFILE64] (struct flock64): New type.
58577         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
58578
58579         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
58580         * bits/dirent.h: ... here.
58581
58582         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
58583         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
58584
58585 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
58586
58587         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
58588         Change from 2.6.0 to 2.6.16.
58589         * sysdeps/unix/sysv/linux/configure: Regenerated.
58590         * sysdeps/unix/sysv/linux/kernel-features.h
58591         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
58592         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
58593         version.
58594         (__ASSUME_UTIMES): Likewise.
58595         (__ASSUME_CLONE_STOPPED): Remove.
58596         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
58597         architectures, not kernel version.
58598         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
58599         (__ASSUME_NO_CLONE_DETACHED): Likewise.
58600         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
58601         (__ASSUME_WAITID_SYSCALL): Likewise.
58602         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
58603         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
58604         * README: State 2.6.16 as minimum Linux kernel version.  Do not
58605         refer to older versions.
58606
58607 2012-08-06  Roland McGrath  <roland@hack.frob.com>
58608
58609         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
58610         Define alphasort64 as an alias.
58611         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
58612         Define versionsort64 as an alias.
58613         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
58614         Define scandir64 as an alias.
58615         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
58616         Define scandirat64 as an alias.
58617         * dirent/alphasort64.c (alphasort64):
58618         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
58619         * dirent/versionsort64.c: Likewise.
58620         * dirent/scandir64.c: Likewise.
58621         * dirent/scandirat64.c: Likewise.
58622         * sysdeps/wordsize-64/alphasort.c: File removed.
58623         * sysdeps/wordsize-64/alphasort64.c: File removed.
58624         * sysdeps/wordsize-64/scandir.c: File removed.
58625         * sysdeps/wordsize-64/scandir64.c: File removed.
58626         * sysdeps/wordsize-64/scandirat.c: File removed.
58627         * sysdeps/wordsize-64/scandirat64.c: File removed.
58628         * sysdeps/wordsize-64/versionsort.c: File removed.
58629         * sysdeps/wordsize-64/versionsort64.c: File removed.
58630         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
58631         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
58632         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
58633         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
58634         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
58635         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
58636         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
58637         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
58638
58639         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
58640         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
58641         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
58642         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
58643         [defined __arch64__ || defined __sparcv9]
58644         (__INO_T_MATCHES_INO64_T): New macro.
58645         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
58646         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
58647         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
58648         * sysdeps/unix/sysv/linux/bits/dirent.h
58649         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
58650         (_DIRENT_MATCHES_DIRENT64): New macro.
58651
58652         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
58653         Define lockf64 as an alias.
58654         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
58655         Define fseeko64 as an alias.
58656         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
58657         Define ftello64 as an alias.
58658         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
58659         Define _IO_fgetpos64 and fgetpos64 as aliases.
58660         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
58661         Define _IO_fsetpos64 and fsetpos64 as aliases.
58662         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
58663         Conditionalize body on this.
58664         * libio/fseeko64.c: Likewise.
58665         * libio/ftello64.c: Likewise.
58666         * libio/iofgetpos64.c: Likewise.
58667         * libio/iofsetpos64.c: Likewise.
58668         * sysdeps/wordsize-64/lockf.c: File removed.
58669         * sysdeps/wordsize-64/lockf64.c: File removed.
58670         * sysdeps/wordsize-64/fseeko.c: File removed.
58671         * sysdeps/wordsize-64/fseeko64.c: File removed.
58672         * sysdeps/wordsize-64/ftello.c: File removed.
58673         * sysdeps/wordsize-64/ftello64.c: File removed.
58674         * sysdeps/wordsize-64/iofgetpos.c: File removed.
58675         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
58676         * sysdeps/wordsize-64/iofsetpos.c: File removed.
58677         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
58678         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
58679         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
58680         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
58681         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
58682         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
58683         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
58684         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
58685         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
58686         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
58687         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
58688
58689         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
58690         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
58691         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
58692         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
58693         [defined __arch64__ || defined __sparcv9]
58694         (__OFF_T_MATCHES_OFF64_T): New macro.
58695         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
58696         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
58697         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
58698         (__OFF_T_MATCHES_OFF64_T): New macro.
58699
58700 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
58701
58702         * stdlib/secure-getenv.c (__secure_getenv): Replace
58703         GLIBC_2_16 with GLIBC_2_17.
58704
58705 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
58706
58707         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
58708         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
58709
58710 2012-08-03  David S. Miller  <davem@davemloft.net>
58711
58712         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58713
58714 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
58715
58716         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
58717         Remove.
58718         (__ASSUME_CORRECT_SI_PID): Likewise.
58719         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
58720         (__ASSUME_TMPFS_NAME): Likewise.
58721         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
58722         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
58723         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
58724         (HAVE_AUX_SECURE): Make definition unconditional.
58725         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
58726         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
58727
58728 2012-08-03  Roland McGrath  <roland@hack.frob.com>
58729
58730         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
58731         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
58732         * sysdeps/mach/hurd/eloop-threshold.h: New file.
58733         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
58734         __eloop_threshold instead of SYMLOOP_MAX.
58735
58736         * sysdeps/generic/eloop-threshold.h: New file.
58737         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
58738         of MAXSYMLINKS.
58739         * elf/chroot_canon.c (chroot_canon): Likewise.
58740
58741 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
58742
58743         [BZ #13717]
58744         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
58745         Change to 2.6.0 everywhere.
58746         * sysdeps/unix/sysv/linux/configure: Regenerated.
58747         * sysdeps/unix/sysv/linux/kernel-features.h
58748         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
58749         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
58750         kernel versions.
58751         (__ASSUME_POSIX_TIMERS): Define unconditionally.
58752         (__ASSUME_FUTEX_REQUEUE): Remove.
58753         (__ASSUME_STATFS64): Define unconditionally.
58754         (__ASSUME_AT_SECURE): Likewise.
58755         (__ASSUME_CORRECT_SI_PID): Likewise.
58756         (__ASSUME_TGKILL): Define without depending on kernel version for
58757         i386.
58758         (__ASSUME_UTIMES): Likewise.
58759         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
58760         kernel version.
58761         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
58762         (__ASSUME_TMPFS_NAME): Likewise.
58763         * README: Update reference to Linux kernel versions.
58764
58765 2012-08-02  Marek Polacek  <polacek@redhat.com>
58766
58767         [BZ# 14150]
58768         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
58769         libc_cv_asm_type_prefix with %.
58770         * configure: Regenerated.
58771         * include/libc-symbols.h: Remove comment about
58772         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
58773         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
58774         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
58775         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
58776         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
58777         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
58778         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
58779         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
58780         * elf/tst-unique2mod1.c: Likewise.
58781         * elf/tst-unique1mod2.c: Likewise.
58782         * elf/tst-unique1mod1.c: Likewise.
58783         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
58784         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
58785         Replace ASM_TYPE_DIRECTIVE with .type.
58786         * sysdeps/s390/s390-64/sysdep.h: Likewise.
58787         * sysdeps/i386/sysdep.h: Likewise.
58788         * sysdeps/x86_64/sysdep.h: Likewise.
58789         * sysdeps/sh/sysdep.h: Likewise.
58790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
58791         Do not define ASM_TYPE_DIRECTIVE.
58792         * sysdeps/powerpc/sysdep.h: Likewise.
58793         * sysdeps/powerpc/powerpc32/sysdep.h:
58794         Replace ASM_TYPE_DIRECTIVE with .type.
58795         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
58796         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
58797         * sysdeps/i386/fpu/e_powf.S: Likewise.
58798         * sysdeps/i386/fpu/e_expl.S: Likewise.
58799         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
58800         * sysdeps/i386/fpu/e_acosh.S: Likewise.
58801         * sysdeps/i386/fpu/e_pow.S: Likewise.
58802         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
58803         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
58804         * sysdeps/i386/fpu/s_expm1.S: Likewise.
58805         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
58806         * sysdeps/i386/fpu/e_log2.S: Likewise.
58807         * sysdeps/i386/fpu/e_log2l.S: Likewise.
58808         * sysdeps/i386/fpu/e_scalb.S: Likewise.
58809         * sysdeps/i386/fpu/e_powl.S: Likewise.
58810         * sysdeps/i386/fpu/e_log10f.S: Likewise.
58811         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
58812         * sysdeps/i386/fpu/e_logl.S: Likewise.
58813         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
58814         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
58815         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
58816         * sysdeps/i386/fpu/e_log2f.S: Likewise.
58817         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
58818         * sysdeps/i386/fpu/e_log.S: Likewise.
58819         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
58820         * sysdeps/i386/fpu/e_logf.S: Likewise.
58821         * sysdeps/i386/fpu/e_log10l.S: Likewise.
58822         * sysdeps/i386/fpu/e_atanh.S: Likewise.
58823         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
58824         * sysdeps/i386/fpu/e_log10.S: Likewise.
58825         * sysdeps/i386/fpu/s_frexp.S: Likewise.
58826         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
58827         * sysdeps/i386/fpu/s_asinh.S: Likewise.
58828         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
58829         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
58830         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
58831         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
58832         * sysdeps/i386/i686/strtok.S: Likewise.
58833         * sysdeps/i386/i386-mcount.S: Likewise.
58834         * sysdeps/i386/strtok.S: Likewise.
58835         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
58836         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
58837         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
58838         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
58839         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
58840         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
58841         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
58842         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
58843         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
58844         * sysdeps/x86_64/_mcount.S: Likewise.
58845         * sysdeps/x86_64/strtok.S: Likewise.
58846         * sysdeps/sh/_mcount.S: Likewise.
58847
58848 2012-08-01  Roland McGrath  <roland@hack.frob.com>
58849
58850         * libio/iofopen.c: Include <fcntl.h>.
58851         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
58852         (_IO_fopen64, fopen64): Define as aliases.
58853         * libio/iofopen64.c: Include <fcntl.h>.
58854         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
58855         Conditionalize body on this.
58856         * sysdeps/wordsize-64/iofopen.c: File removed.
58857         * sysdeps/wordsize-64/iofopen64.c: File removed.
58858
58859 2012-08-01  Marek Polacek  <polacek@redhat.com>
58860
58861         * libc/Makeconfig: Use elf in place of binfmt-subdir.
58862         Use dlfcn directly instead of a variable.
58863         (binfmt-subdir): Do not define.
58864         (dlfcn): Likewise.
58865
58866 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
58867
58868         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
58869         Remove all definitions.
58870         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
58871         <kernel-features.h>.
58872         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
58873         (miss_F_GETOWN_EX): Remove all definitions.
58874         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
58875         macro definition.
58876         [!__ASSUME_FCNTL64]: Remove conditional code.
58877         [__ASSUME_FCNTL64]: Make code unconditional.
58878         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
58879         <kernel-features.h>.
58880         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
58881         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
58882         (lockf64) [__NR_fcntl64]: Make code unconditional.
58883         (lockf64) [__ASSUME_FCNTL64]: Likewise.
58884
58885         * sysdeps/unix/sysv/linux/kernel-features.h
58886         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
58887         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
58888         Make code unconditional.
58889         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
58890         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
58891         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
58892         [__NR_vfork]: Make code unconditional.
58893         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
58894         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
58895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
58896         [__NR_vfork]: Make code unconditional.
58897         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
58898         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
58899
58900 2012-08-01  Roland McGrath  <roland@hack.frob.com>
58901
58902         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
58903         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
58904
58905         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58906         Define mkstemp64 as an alias.
58907         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58908         Define mkstemps64 as an alias.
58909         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58910         Define mkostemp64 as an alias.
58911         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
58912         Define mkostemps64 as an alias.
58913         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
58914         Conditionalize body on this.
58915         * misc/mkostemp64.c: Likewise.
58916         * misc/mkostemps64.c: Likewise.
58917         * misc/mkstemps64.c: Likewise.
58918         * sysdeps/wordsize-64/mkstemp64.c: File removed.
58919         * sysdeps/wordsize-64/mkostemp64.c: File removed.
58920         * sysdeps/wordsize-64/mkostemp.c: File removed.
58921         * sysdeps/wordsize-64/mkstemp.c: File removed.
58922         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
58923         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
58924         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
58925         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
58926
58927         [BZ #14138]
58928         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
58929         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
58930         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
58931         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
58932
58933         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
58934         compat_symbol macros from <shlib-compat.h> rather than the underlying
58935         default_symbol_version and symbol_version macros, so that DEFAULT
58936         lines in shlib-versions are respected.
58937         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
58938
58939 2012-08-01  Florian Weimer  <fweimer@redhat.com>
58940
58941         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
58942         Declare with warn_unused_result.
58943         (setgid, setregid, setegid, setresgid): Likewise.
58944         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
58945         Likewise.
58946         * WUR-REPORT: Remove set*id functions.
58947
58948 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
58949
58950         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
58951
58952 2012-07-31  Roland McGrath  <roland@hack.frob.com>
58953
58954         [BZ #10191]
58955         * include/sys/socket.h (__libc_accept, __libc_accept4):
58956         Add attribute_hidden.
58957         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
58958
58959         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
58960         use of PTR_MANGLE.
58961         * inet/getnetgrent_r.c (setup): Likewise.
58962
58963         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
58964
58965 2012-07-31  David S. Miller  <davem@davemloft.net>
58966
58967         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58968
58969 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
58970
58971         [BZ #13629]
58972         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
58973         value between 1.0 and 2.0 and smaller part has absolute value less
58974         than 1.0.
58975         * math/s_clog10.c (__clog10): Likewise.
58976         * math/s_clog10f.c (__clog10f): Likewise.
58977         * math/s_clog10l.c (__clog10l): Likewise.
58978         * math/s_clogf.c (__clogf): Likewise.
58979         * math/s_clogl.c (__clogl): Likewise.
58980         * math/libm-test.inc (clog_test): Add more tests.
58981         (clog10_test): Likewise.
58982         * sysdeps/i386/fpu/libm-test-ulps: Update.
58983         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58984
58985 2012-07-31  Florian Weimer  <fweimer@redhat.com>
58986
58987         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
58988         Exit with zero in case no suitable GID is found, and write a
58989         message to standard error.
58990
58991 2012-07-30  Roland McGrath  <roland@hack.frob.com>
58992
58993         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
58994         rather than to 1.
58995         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
58996         (MAXPATHLEN): Removed.
58997         (NOGROUP, NODEV): New macros.
58998         (setbit, clrbit, isset, isclr): New macros.
58999         (howmany, roundup, powerof2): New macros.
59000         (DEV_BSIZE): New macro.
59001
59002         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
59003         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
59004
59005         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
59006         definition on [!__NO_LONG_DOUBLE_MATH].
59007
59008         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
59009         PTR_MANGLE and PTR_DEMANGLE.
59010
59011         * socket/accept4.c (accept4): Rename to __libc_accept4.
59012         Define accept4 as a weak alias.
59013
59014         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
59015         on [_DIRENT_HAVE_D_TYPE].
59016         * io/ftw.c (ftw_dir): Likewise.
59017
59018         * io/xmknod.c (__xmknod): Don't check PATH for being null.
59019
59020         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
59021
59022         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
59023         Use the BSD numbers rather than the arbitrary ones we had.
59024         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
59025         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
59026         (SIGXCPU, SIGXFSZ): New macros.
59027         (_NSIG): Now 32.
59028
59029         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
59030         initializer on [_LIBC_REENTRANT].
59031
59032         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
59033         definitions inside [_POSIX_MAPPED_FILES].
59034
59035         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
59036
59037         * dirent/opendir.c: Include <fcntl.h>.
59038
59039         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
59040         (__libc_getspecific): Likewise.
59041         (__libc_key_create): Likewise.
59042
59043         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
59044         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
59045         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
59046         (tmpfile64): Define as alias.
59047         * sysdeps/wordsize-64/tmpfile.c: File removed.
59048         * sysdeps/wordsize-64/tmpfile64.c: File removed.
59049         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
59050         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
59051
59052         * stdio-common/vfscanf.c: Include <stdbool.h>.
59053         * nss/makedb.c: Likewise.
59054         * stdio-common/_i18n_number.h: Likewise.
59055         * argp/argp-help.c: Likewise.
59056         * posix/wordexp.c: Likewise.
59057         * sysdeps/posix/spawni.c: Likewise.
59058         * nss/nss_files/files-initgroups.c: Likewise.
59059         * stdio-common/reg-modifier.c: Include <stdlib.h>.
59060         * nss/nss_files/files-initgroups.c: Likewise.
59061         * nss/nss_db/db-netgrp.c: Likewise.
59062         * nss/nss_db/db-initgroups.c: Likewise.
59063         * io/fchmodat.c: Include <sys/stat.h>.
59064
59065         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
59066         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
59067
59068         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
59069         [HAVE_MMAP].
59070
59071         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
59072         Add multiple inclusion protection.
59073
59074 2012-07-27  David S. Miller  <davem@davemloft.net>
59075
59076         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59077
59078 2012-07-27  Gary Benson  <gbenson@redhat.com>
59079
59080         [BZ #14298]
59081         * elf/rtld.c: Include <stap-probe.h>.
59082         (dl_main): Added static probes "init_start" and "init_complete".
59083         * elf/dl-load.c: Include <stap-probe.h>.
59084         (lose): Take new parameter "nsid".
59085         Added static probe "map_failed".
59086         (_dl_map_object_from_fd): Pass namespace id to lose.
59087         Added static probe "map_start".
59088         (open_verify): Pass namespace id to lose.
59089         * elf/dl-open.c: Include <stap-probe.h>.
59090         (dl_open_worker) Added static probes "map_complete", "reloc_start"
59091         and "reloc_complete".
59092         * elf/dl-close.c: Include <stap-probe.h>.
59093         (_dl_close_worker): Added static probes "unmap_start" and
59094         "unmap_complete".
59095         * elf/rtld-debugger-interface.txt: New file documenting the above.
59096
59097 2012-07-26  Roland McGrath  <roland@hack.frob.com>
59098
59099         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
59100         rather than a string variable.
59101         * sunrpc/rpc_main.c (h_output): Likewise.
59102         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
59103
59104 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
59105
59106         * inet/check_native.c: New file.
59107
59108 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
59109
59110         [BZ #13629]
59111         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
59112         if larger part has absolute value 1.0.
59113         * math/s_clog10.c (__clog10): Likewise.
59114         * math/s_clog10f.c (__clog10f): Likewise.
59115         * math/s_clog10l.c (__clog10l): Likewise.
59116         * math/s_clogf.c (__clogf): Likewise.
59117         * math/s_clogl.c (__clogl): Likewise.
59118         * math/libm-test.inc (clog_test): Add more tests.
59119         (clog10_test): Likewise.
59120         * sysdeps/i386/fpu/libm-test-ulps: Update.
59121         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59122
59123         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
59124         (pltexit): Likewise.
59125         (La_regs): Likewise.
59126         (La_retval): Likewise.
59127         (int_retval): Likewise.
59128         Update #error for removed macros to refer only to definitions in
59129         tst-audit.h.
59130         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
59131         macro.
59132         (pltexit): Likewise.
59133         (La_regs): Likewise.
59134         (La_retval): Likewise.
59135         (int_retval): Likewise.
59136         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
59137         macro.
59138         (pltexit): Likewise.
59139         (La_regs): Likewise.
59140         (La_retval): Likewise.
59141         (int_retval): Likewise.
59142         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
59143         macro.
59144         (pltexit): Likewise.
59145         (La_regs): Likewise.
59146         (La_retval): Likewise.
59147         (int_retval): Likewise.
59148         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
59149         macro.
59150         (pltexit): Likewise.
59151         (La_regs): Likewise.
59152         (La_retval): Likewise.
59153         (int_retval): Likewise.
59154         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
59155         macro.
59156         (pltexit): Likewise.
59157         (La_regs): Likewise.
59158         (La_retval): Likewise.
59159         (int_retval): Likewise.
59160         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
59161         macro.
59162         (pltexit): Likewise.
59163         (La_regs): Likewise.
59164         (La_retval): Likewise.
59165         (int_retval): Likewise.
59166         * sysdeps/generic/tst-audit.h: Update comment to refer only to
59167         macro definitions in tst-audit.h.
59168         * sysdeps/i386/tst-audit.h: New file.
59169         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
59170         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
59171         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
59172         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
59173         * sysdeps/sh/tst-audit.h: Likewise.
59174         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
59175         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
59176         * sysdeps/x86_64/tst-audit.h: Likewise.
59177
59178 2012-07-26  Andreas Jaeger  <aj@suse.de>
59179
59180         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
59181         ptrace.
59182
59183         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
59184         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
59185         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
59186         PTRACE_O_MASK.
59187         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
59188         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
59189         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
59190
59191         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
59192         value.
59193
59194         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
59195         _sigsys.
59196         (si_call_addr, si_syscall, si_arch): Define new macro.
59197         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
59198         _sigsys.
59199         (si_call_addr, si_syscall, si_arch): Define new marcro.
59200         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
59201         _sigsys.
59202         (si_call_addr, si_syscall, si_arch): Define new macro.
59203         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
59204         _sigsys.
59205         (si_call_addr, si_syscall, si_arch): Define new macro.
59206
59207 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59208
59209         [BZ #13717]
59210         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59211         Change to 2.4.21 where previously 2.4.1.
59212         * sysdeps/unix/sysv/linux/configure: Regenerated.
59213         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
59214         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
59215         Linux kernel version.
59216         (__ASSUME_STD_AUXV): Remove.
59217         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
59218         kernel version.
59219         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
59220         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
59221         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
59222         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
59223         (__ASSUME_NETLINK_SUPPORT): Likewise.
59224         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
59225         (__no_netlink_support): Remove conditional definition.
59226         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
59227         Remove.
59228         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59229         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
59230         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
59231         (if_nameindex_ioctl): Remove.
59232         (if_nameindex_netlink): Do not handle __no_netlink_support.
59233         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59234         code.
59235         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
59236         Remove conditional code.
59237         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59238         code.
59239         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
59240         unconditional.
59241         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59242         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
59243         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
59244         Remove.
59245         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
59246         [!__ASSUME_STD_AUXV]: Remove conditional code.
59247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
59248         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
59249         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
59250         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
59251         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
59252         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59253         code.
59254         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
59256         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
59257         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59258         conditional code.
59259         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
59261         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59262         code.
59263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
59264         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59265         conditional code.
59266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
59267         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59268         code unconditional.
59269         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59270         conditional code.
59271         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59272         unconditional.
59273         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59274         conditional code.
59275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
59276         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59277         unconditional.
59278         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59279         conditional code.
59280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
59281         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59282         code unconditional.
59283         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59284         conditional code.
59285         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59286         unconditional.
59287         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59288         conditional code.
59289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
59290         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59291         code unconditional.
59292         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59293         conditional code.
59294         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59295         unconditional.
59296         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59297         conditional code.
59298
59299 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
59300
59301         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
59302         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
59303         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
59304         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
59305         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
59306         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
59307         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
59308         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
59309         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
59310         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
59311         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
59312         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
59313         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
59314         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
59315         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
59316         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
59317         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
59318         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
59319         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
59320         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
59321         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
59322         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
59323         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
59324
59325 2012-07-25  Florian Weimer  <fweimer@redhat.com>
59326
59327         * Versions.def: Add GLIBC_2.17.
59328         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
59329         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
59330         Introduce __libc_secure_getenv.
59331         * stdlib/Versions (2.17): Add secure_getenv
59332         (GLIBC_PRIVATE): Add __libc_secure_getenv.
59333         * stdlib/secure-getenv.c: Rename __secure_getenv to
59334         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
59335         symbol __secure_getenv for GLIBC_2.0.
59336         * stdlib/tst-secure-getenv.c: New.
59337         * stdlib/Makefile (tests): Add testcase.
59338         * manual/startup.texi (Environment Access): Document
59339         secure_getenv.
59340         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
59341         __libc_secure_getenv.
59342         * inet/ruserpass.c (ruserpass): Likewise.
59343         * malloc/mtrace.c (mtrace): Likewise.
59344         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
59345         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
59346         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
59347         * sysdeps/posix/tempname.c: Likewise.  Evaluate
59348         HAVE_SECURE_GETENV.
59349         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
59350         __secure_getenv to __libc_secure_getenv.
59351         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
59352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
59353         Likewise.
59354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
59355         Likewise.
59356         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
59357         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
59358         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
59359         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
59360         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
59361         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
59362         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
59363
59364 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59365
59366         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
59367         (struct La_i86_retval): Likewise.
59368         (struct La_x86_64_regs): Likewise.
59369         (struct La_x86_64_retval): Likewise.
59370         (struct La_x32_regs): Likewise.
59371         (struct La_x32_retval): Likewise.
59372         (struct La_ppc32_regs): Likewise.
59373         (struct La_ppc32_retval): Likewise.
59374         (struct La_ppc64_regs): Likewise.
59375         (struct La_ppc64_retval): Likewise.
59376         (struct La_sh_regs): Likewise.
59377         (struct La_sh_retval): Likewise.
59378         (struct La_s390_32_regs): Likewise.
59379         (struct La_s390_32_retval): Likewise.
59380         (struct La_s390_64_regs): Likewise.
59381         (struct La_s390_64_retval): Likewise.
59382         (struct La_sparc32_regs): Likewise.
59383         (struct La_sparc32_retval): Likewise.
59384         (struct La_sparc64_regs): Likewise.
59385         (struct La_sparc64_retval): Likewise.
59386         (struct audit_ifaces): Remove architecture-specific pltenter and
59387         pltexit members.
59388         * sysdeps/i386/ldsodefs.h: New file.
59389         * sysdeps/powerpc/ldsodefs.h: Likewise.
59390         * sysdeps/s390/ldsodefs.h: Likewise.
59391         * sysdeps/sh/ldsodefs.h: Likewise.
59392         * sysdeps/sparc/ldsodefs.h: Likewise.
59393         * sysdeps/x86_64/ldsodefs.h: Likewise.
59394
59395 2012-07-25  Marek Polacek  <polacek@redhat.com>
59396
59397         [BZ #6808]
59398         * math/libm-test.inc (yn_test): Add another test.
59399         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
59400         to ERANGE when the result is +-Inf.
59401         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
59402         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
59403         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
59404         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
59405
59406 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
59407
59408         * conform/data/time.h-data (NULL): Use macro-constant.  Require
59409         equal to 0.
59410         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
59411         clock_t.
59412         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
59413
59414 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
59415
59416         * configure.in <sysdeps resolving>: Correct printing
59417         Implies_before.
59418         * configure: Regenerate.
59419
59420 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
59421
59422         * math/w_ilogb.c: Include <limits.h>.
59423         * math/w_ilogbl.c: Likewise.
59424
59425 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
59426
59427         * manual/lang.texi (__va_copy): Document primarily as ISO C99
59428         va_copy.  Document allowing for unavailable va_copy only as
59429         pre-C99 compatibility.
59430         * manual/string.texi (Copying and Concatenation): Use va_copy
59431         instead of __va_copy in concat example.
59432
59433 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
59434
59435         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
59436         (__sendto): Use create_address_port.  Initialize APORT and deallocate
59437         it if not null.
59438
59439         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
59440         with O_NOLINK passed to __file_name_lookup.
59441
59442         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
59443         with O_NOLINK passed to __file_name_lookup.
59444
59445         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
59446         negative N or less than NGIDS.
59447
59448         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
59449         type to string_t.  Set ERANGE as errno and return it if NAME is not big
59450         enough.  Use memcpy instead of strncpy.
59451
59452 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
59453
59454         * elf/Makefile (check-data): Remove.
59455         (localplt.data): New vpath directive.
59456         ($(objpfx)check-localplt.out): Use localplt.data from vpath
59457         instead of $(check-data).
59458         * scripts/data/localplt-generic.data: Move to ...
59459         * sysdeps/generic/localplt.data: ... here.
59460         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
59461         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
59462         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
59463         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
59464         ... here.
59465         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
59466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
59467         ... here.
59468         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
59469         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
59470         ... here.
59471         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
59472         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
59473         ... here.
59474         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
59475         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
59476         ... here.
59477         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
59478         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
59479         ... here.
59480
59481 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59482
59483         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
59484         PPC32 and PPC64 files.
59485         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
59486         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
59487
59488 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59489
59490         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
59491         __makecontext_ret to ...
59492         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
59493         ... here and call exit if uc_link is NULL.  New file.
59494         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
59495         __makecontext_ret.S.
59496         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
59497         __makecontext_ret to ...
59498         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
59499         ... here and call exit if uc_link is NULL.  New file.
59500         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
59501         __makecontext_ret.S.
59502
59503 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59504
59505         * elf/elf.h (R_390_IRELATIVE): New definition.
59506         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
59507         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
59508         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
59509         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
59510         (elf_machine_lazy_rel): Likewise.
59511         * sysdeps/s390/dl-irel.h: New file.
59512         * sysdeps/s390/s390-64/memcpy.S: New asm code.
59513         * sysdeps/s390/s390-64/memset.S: New asm code.
59514         * sysdeps/s390/s390-64/memcmp.S: New asm code.
59515         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
59516         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
59517         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
59518         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
59519         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
59520         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
59521         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
59522         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
59523         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
59524         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
59525         * sysdeps/s390/s390-32/memcpy.S: New asm code.
59526         * sysdeps/s390/s390-32/memset.S: New asm code.
59527         * sysdeps/s390/s390-32/memcmp.S: New asm code.
59528
59529 2012-07-17  Marek Polacek  <polacek@redhat.com>
59530
59531         [BZ #14349]
59532         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
59533         * sysdeps/s390/s390-64/configure.in: Likewise.
59534         * sysdeps/sparc/configure.in: Likewise.
59535         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
59536         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
59537         * sysdeps/i386/configure.in: Likewise.
59538         * sysdeps/x86_64/configure.in: Likewise.
59539         * sysdeps/sh/configure.in: Likewise.
59540         * sysdeps/s390/s390-32/configure: Regenerated.
59541         * sysdeps/s390/s390-64/configure: Likewise.
59542         * sysdeps/x86_64/configure: Likewise.
59543         * sysdeps/sh/configure: Likewise.
59544         * sysdeps/powerpc/powerpc64/configure: Likewise.
59545         * sysdeps/powerpc/powerpc32/configure: Likewise.
59546         * sysdeps/sparc/configure: Likwise.
59547         * sysdeps/i386/configure: Likewise.
59548
59549         * elf/dl-open.c: Comment fixes.
59550
59551 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
59552
59553         * Makefile [CXX] (check-data): Remove.
59554         [CXX] (c++-types.data): New vpath directive.
59555         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
59556         vpath.  Do not allow for C++ type data being missing.
59557         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
59558         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
59559         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
59560         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
59561         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
59562         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
59563         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
59564         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
59565         ... here.
59566         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
59567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
59568         ... here.
59569         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
59570         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
59571         ... here.
59572         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
59573         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
59574         ... here.
59575         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
59576         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
59577         ... here.
59578         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
59579         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
59580         ... here.
59581         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
59582         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
59583         ... here.
59584         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
59585         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
59586
59587         * elf/tls-macros.h (TLS_LE): Move architecture-specific
59588         definitions to architecture-specific files.
59589         (TLS_IE): Likewise.
59590         (TLS_LD): Likewise.
59591         (TLS_GD): Likewise.
59592         * sysdeps/i386/tls-macros.h: New file.
59593         * sysdeps/powerpc/tls-macros.h: Likewise.
59594         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
59595         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
59596         * sysdeps/sh/tls-macros.h: Likewise.
59597         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
59598         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
59599         * sysdeps/x86_64/tls-macros.h: Likewise.
59600
59601 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
59602
59603         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
59604         zero value for regular exit case.
59605
59606         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
59607         (__start_context): Preserve zero value for regular exit case.
59608
59609 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
59610             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59611
59612         * manual/setjmp.texi (setcontext): Clarify normal process
59613         termination when uc_link is the null pointer.
59614         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
59615         exit call.
59616
59617 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
59618
59619         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
59620         preprocessor.  Test for each exception mask separately.
59621
59622 2012-07-16  Andreas Jaeger  <aj@suse.de>
59623
59624         * po/ru.po: Update from translation team.
59625
59626 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
59627
59628         * conform/data/string.h-data (NULL): Use macro-constant.  Require
59629         equal to 0.
59630         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
59631         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
59632         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
59633         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
59634         [ISO || ISO99 || ISO11] (*_t): Do not allow.
59635
59636 2012-07-13  Andreas Jaeger  <aj@suse.de>
59637
59638         * po/fr.po: Update from translation team.
59639
59640 2012-07-12  Marek Polacek  <polacek@redhat.com>
59641
59642         [BZ #14173]
59643         * math/libm-test.inc (yn_test): Add test for BZ #14173.
59644         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
59645         loop condition.
59646
59647 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
59648
59649         [BZ #13717]
59650         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59651         Change to 2.4.1 where previously 2.4.0.
59652         * sysdeps/unix/sysv/linux/configure: Regenerated.
59653         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
59654         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
59655         version.
59656         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
59657         (__ASSUME_AT_CLKTCK): Remove.
59658         (__ASSUME_AT_PAGESIZE): Likewise.
59659         (__ASSUME_AT_XID): Likewise.
59660         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
59661         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
59662         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
59663         unconditionally.
59664         (HAVE_AUX_PAGESIZE): Likewise.
59665         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
59666         [__ASSUME_AT_CLKTCK]: Make code unconditional.
59667         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
59668
59669 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
59670
59671         [BZ #14307]
59672         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
59673         the temporary buffer used to invoke __gethostbyname2_r,
59674         __gethostbyaddr_r and gethostbyname4_r to make room for struct
59675         host_data / struct gaih_addrtuple.
59676         * resolv/nss_dns/dns-host.c (global scope): Move definition of
59677         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
59678         header file nss/nsswitch.h.
59679         * nss/nsswitch.h (global scope): Add definition of implementation
59680         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
59681         resolv/nss_dns/dns-host.c).
59682
59683 2012-07-11  Andreas Jaeger  <aj@suse.de>
59684
59685         * po/fr.po: Update from translation team.
59686
59687         * po/sv.po: Update from translation team
59688         * po/fr.po: Another update from translation team.
59689
59690 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59691
59692         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
59693         for subnormals or multiply small sinh result by itself.
59694         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
59695         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59696
59697 2012-07-11  David S. Miller  <davem@davemloft.net>
59698
59699         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59700
59701 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
59702
59703         [BZ #14347]
59704         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
59705         (INTERNAL_MARK): Shift it here.
59706
59707 2012-07-10  Marek Polacek  <polacek@redhat.com>
59708
59709         [BZ #14151]
59710         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
59711         libc_cv_asm_global_directive with .globl.
59712         * configure: Regenerated.
59713         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
59714         with .globl.
59715         * sysdeps/i386/configure: Regenerated.
59716         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
59717         with .globl.
59718         * sysdeps/x86_64/configure: Regenerated.
59719         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
59720         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
59721         * elf/tst-unique2mod2.c: Likewise.
59722         * elf/tst-unique2mod1.c: Likewise.
59723         * elf/tst-unique1mod2.c: Likewise.
59724         * elf/tst-unique1mod1.c: Likewise.
59725         * sysdeps/s390/s390-32/sysdep.h: Likewise.
59726         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
59727         * sysdeps/s390/s390-64/sysdep.h: Likewise.
59728         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
59729         * sysdeps/mach/sysdep.h: Likewise.
59730         * sysdeps/i386/sysdep.h: Likewise.
59731         * sysdeps/i386/i386-mcount.S: Likewise.
59732         * sysdeps/x86_64/_mcount.S: Likewise.
59733         * sysdeps/x86_64/sysdep.h: Likewise.
59734         * sysdeps/sh/_mcount.S: Likewise.
59735         * sysdeps/sh/sysdep.h: Likewise.
59736         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
59737         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
59738         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
59739         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
59740         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
59741         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
59742         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
59743         * locale/localeinfo.h: Likewise.
59744         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
59745         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
59746
59747 2012-07-09  Roland McGrath  <roland@hack.frob.com>
59748
59749         [BZ #14336]
59750         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
59751         system".
59752         * manual/message.texi (The Uniforum approach): Likewise.
59753         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
59754         (glibc iconv Implementation): Likewise.
59755
59756 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
59757
59758         [BZ #14337]
59759         * math/s_clog.c (__clog): Avoid scaling a value down where that
59760         could result in underflow.
59761         * math/s_clog10.c (__clog10): Likewise.
59762         * math/s_clog10f.c (__clog10f): Likewise.
59763         * math/s_clog10l.c (__clog10l): Likewise.
59764         * math/s_clogf.c (__clogf): Likewise.
59765         * math/s_clogl.c (__clogl): Likewise.
59766         * math/libm-test.inc (clog_test): Add more tests.
59767         (clog10_test): Likewise.
59768         * sysdeps/i386/fpu/libm-test-ulps: Update.
59769         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59770
59771 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
59772
59773         [BZ #14283]
59774         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
59775         by 7 not 8 to examine high bit of fractional part.
59776
59777         [BZ #14042]
59778         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
59779         for call to __mcount_internal.
59780         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
59781         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
59782         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
59783
59784 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
59785
59786         [BZ #14154]
59787         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
59788         approximation for values within 0x1p-13f of an odd multiple of
59789         pi/4.
59790         * math/libm-test.inc (tan_test): Do not allow spurious underflow
59791         exception.  Add more tests.
59792         * sysdeps/i386/fpu/libm-test-ulps: Update.
59793
59794         [BZ #6778]
59795         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
59796         inputs and return -1 for them.  Do not check for +Inf in case not
59797         reachable for +Inf.
59798         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
59799         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
59800         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
59801         and return -1 for them.  Do not check for +Inf in case not
59802         reachable for +Inf.
59803         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
59804         define.
59805         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
59806         and return -1 for them.  Do not check for +Inf in case not
59807         reachable for +Inf.
59808         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
59809         spurious underflow.
59810         * sysdeps/i386/fpu/libm-test-ulps: Update.
59811         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59812
59813 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
59814
59815         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
59816
59817 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
59818
59819         [BZ #14157]
59820         [BZ #14331]
59821         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
59822         could result in spurious underflow.  Scale down values above
59823         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
59824         * math/s_csqrtf.c (__csqrtf): Likewise.
59825         * math/s_csqrtl.c (__csqrtl): Likewise.
59826         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
59827         spurious underflow.
59828         * sysdeps/i386/fpu/libm-test-ulps: Update.
59829         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59830
59831 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
59832
59833         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
59834         xopen-msg.sed.
59835         * catgets/xopen-msg.awk: New file.
59836         * catgets/xopen-msg.sed: Removed.
59837
59838         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
59839         po2text.sed.
59840         * intl/po2test.awk: New file.
59841         * intl/po2test.sed: Removed.
59842
59843 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
59844
59845         [BZ #14328]
59846         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
59847         or multiply small sinh result by itself.
59848         * math/s_ctanf.c (__ctanf): Likewise.
59849         * math/s_ctanh.c (__ctanh): Likewise.
59850         * math/s_ctanhf.c (__ctanhf): Likewise.
59851         * math/s_ctanhl.c (__ctanhl): Likewise.
59852         * math/s_ctanl.c (__ctanl): Likewise.
59853         * math/libm-test.inc (ctan_test_tonearest): New function.
59854         (ctan_test_towardzero): Likewise.
59855         (ctan_test_downward): Likewise.
59856         (ctan_test_upward): Likewise.
59857         (ctanh_test_tonearest): Likewise.
59858         (ctanh_test_towardzero): Likewise.
59859         (ctanh_test_downward): Likewise.
59860         (ctanh_test_upward): Likewise.
59861         (main): Call these new functions.
59862         * sysdeps/i386/fpu/libm-test-ulps: Update.
59863         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59864
59865 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
59866
59867         * .gitignore: Delete /ports entry.
59868
59869 2012-07-03  Andreas Jaeger  <aj@suse.de>
59870
59871         * po/bg.po: Update from translation team.
59872         * po/cs.po: Likewise.
59873         * po/de.po: Likewise.
59874         * po/hr.po: Likewise.
59875         * po/nl.pl: Likewise.
59876         * po/pl.po: Likewise.
59877         * po/vi.po: Likewise.
59878
59879 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
59880
59881         * Makeconfig [!+link] (+link-before-libc): New variable.
59882         [!+link] (+link-after-libc): Likewise.
59883         [!+link] (+link-tests): Likewise.
59884         [!+link] (+link): Define in terms of $(+link-before-libc) and
59885         $(+link-after-libc).
59886         [!+link-static] (+link-static-before-libc): New variable.
59887         [!+link-static] (+link-static-after-libc): Likewise.
59888         [!+link-static] (+link-static-tests): Likewise.
59889         [!+link-static] (+link-static): Define in terms of
59890         $(+link-static-before-libc) and $(+link-static-after-libc).
59891         [build-shared] (link-libc-before-gnulib): New variable.
59892         [build-shared] (link-libc-tests): Likewise.
59893         [build-shared] (link-libc): Define in terms of
59894         $(link-libc-before-gnulib).
59895         [!build-shared] (link-libc-tests): New variable.
59896         (link-libc-static-tests): New variable.
59897         [!gnulib] (gnulib-arch): New variable.
59898         [!gnulib] (gnulib-tests): Likewise.
59899         [!gnulib] (static-gnulib-arch): Likewise.
59900         [!gnulib] (static-gnulib-tests): Likewise.
59901         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
59902         Define with "=" instead of ":=".
59903         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
59904         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
59905         * Rules (binaries-all-notests): New variable.
59906         (binaries-all-tests): Likewise.
59907         (binaries-static-notests): Likewise.
59908         (binaries-static-tests): Likewise.
59909         (binaries-all): Define using $(binaries-all-notests) and
59910         $(binaries-all-tests).
59911         (binaries-static): Define using $(binaries-static-notests) and
59912         $(binaries-static-tests).
59913         (binaries-shared-tests): New variable.
59914         (binaries-shared-notests): Likewise.
59915         (binaries-shared): Remove variable.
59916         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
59917         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
59918         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
59919         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
59920         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
59921         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
59922         * elf/Makefile (sln-modules): New variable.
59923         (extra-objs): Add $(sln-modules:=.o).
59924         (ldconfig-modules): Add static-stubs.
59925         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
59926         * elf/static-stubs.c: New file.
59927
59928         [BZ #14283]
59929         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
59930         by 7 not 8 to examine high bit of fractional part.  Use volatile
59931         variables when splitting into final array of floats if
59932         __FLT_EVAL_METHOD__ != 0.
59933         * math/libm-test.inc (cos_test): Add another test.
59934         (sin_test): Likewise.
59935         * sysdeps/i386/fpu/libm-test-ulps: Update.
59936
59937         [BZ #14273]
59938         * math/libm-test.inc (cosh_test): Add more tests.
59939
59940         * version.h (RELEASE): Set to "development".
59941         (VERSION): Set to "2.16.90".
59942
59943 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
59944
59945         * NEWS: Update copyright. Remove last-updated date.
59946         Mention math library bug fixes and timezone data changes.
59947         * README: Mention GNU/Hurd, x32, and HPPA support status.
59948
59949 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
59950
59951         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
59952
59953 2012-06-27  Andreas Jaeger  <aj@suse.de>
59954
59955         * manual/contrib.texi (Contributors): Add Samuel Thibault.
59956
59957 2012-06-25  Andreas Jaeger  <aj@suse.de>
59958
59959         * sysdeps/s390/fpu/libm-test-ulps: Update.
59960
59961 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
59962             Thomas Schwinge  <thomas@codesourcery.com>
59963
59964         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
59965         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
59966         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
59967         fanotify_mark.
59968
59969 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
59970
59971         * sysdeps/mach/start.c: Remove file.
59972         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
59973         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
59974         * sysdeps/sh/init-first.c: Likewise.
59975
59976         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
59977         registers for frame unwinding purposes, add CFI directives.
59978         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
59979         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
59980         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
59981         Likewise.
59982
59983         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
59984         __fortify_fail returning.
59985         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
59986
59987         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
59988         sysdeps/sh/____longjmp_chk.S.
59989         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
59990         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
59991         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
59992         (gen-as-const-headers): Append sigaltstack-offsets.sym.
59993
59994         * sysdeps/sh/abort-instr.h: New file.
59995         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
59996         process in case exit returns.
59997
59998         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
59999         initialize the GOT register before use.
60000
60001         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
60002         calculation of ARGC > 4.
60003
60004         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
60005         meaningful names to some local labels.
60006
60007 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
60008             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60009
60010         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
60011         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
60012         (__arch_compare_and_exchange_val_16_acq): Likewise.
60013         (__arch_compare_and_exchange_val_32_acq): Likewise.
60014         (atomic_exchange_and_add): Fix gUSA sequence.
60015         (atomic_add): Likewise.
60016         (atomic_add_negative): Likewise.
60017         (atomic_add_zero): Likewise.
60018         (atomic_bit_test_set): Likewise.
60019
60020 2012-06-22  Andreas Schwab  <schwab@redhat.com>
60021
60022         [BZ #13579]
60023         * include/link.h (struct link_map): Add l_free_initfini.
60024         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
60025         l_initfini.
60026         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
60027         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
60028         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
60029         set.
60030
60031 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
60032
60033         * configure.in: Use AC_LANG_SOURCE.
60034         * configure: Regenerate.
60035
60036 2012-06-22  Roland McGrath  <roland@hack.frob.com>
60037
60038         * configure.in (libc_cv_localstatedir): New substituted variable.
60039         * configure: Regenerated.
60040         * config.make.in (localstatedir): New variable, substituted from
60041         libc_cv_localstatedir.
60042         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
60043         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
60044         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
60045         * sysdeps/gnu/configure: Regenerated.
60046
60047 2012-06-21  Jeff Law  <law@redhat.com>
60048
60049         [BZ #14277]
60050         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
60051         free.  Simplify list management for _LIBC case.
60052
60053 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
60054
60055         [BZ #14273]
60056         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
60057         Clear sign bit of 64-bit integer value before comparing against
60058         overflow value.
60059
60060         * sysdeps/mach/configure: Regenerated.
60061
60062 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
60063
60064         [BZ #14278]
60065         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
60066
60067 2012-06-21  Jeff Law  <law@redhat.com>
60068
60069         [BZ #13882]
60070         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
60071         uint16_t for elements in the "seen" array to avoid char overflows.
60072         * elf/dl-fini.c (_dl_sort_fini): Likewise.
60073         * elf/dl-open.c (dl_open_worker): Likewise.
60074
60075 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
60076
60077         * scripts/list-sources.sh: Scan PORTS for translations.
60078         * po/libc.pot: Regenerated.
60079
60080 2012-06-21  Andreas Jaeger  <aj@suse.de>
60081
60082         [BZ #12194]
60083         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
60084         warning.
60085         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
60086         * bits/byteswap-16.h (__bswap_16): Likewise.
60087         * bits/byteswap.h (__bswap_constant_16): Likewise.
60088
60089 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
60090
60091         [BZ #14117]
60092         * sysdeps/i386/fpu_control.h: Removed.
60093         * sysdeps/x86_64/fpu_control.h: Moved to ...
60094         * sysdeps/x86/fpu_control.h: Here.
60095
60096         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
60097         (_FPU_SETCW): Likewise.
60098
60099 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
60100
60101         [BZ #14117]
60102         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
60103         * sysdeps/x86/fpu/bits/mathinline.h: This.
60104         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
60105
60106         [BZ #14050]
60107         [BZ #14117]
60108         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
60109         functions if __x86_64__ is defined.
60110
60111 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
60112
60113         * string/endian.h: Add !__ASSEMBLER__ condition for including
60114         conversion interfaces.
60115
60116 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
60117
60118         [BZ #14241]
60119         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
60120         of ABS(x) in calculating zero to negative powers other than odd
60121         integers.
60122         * math/libm-test.inc (pow_test): Add more tests.
60123
60124 2012-06-15  Andreas Jaeger  <aj@suse.de>
60125
60126         * manual/contrib.texi (Contributors): Update entry of Liubov
60127         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
60128         Machado Filho.
60129
60130 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
60131
60132         * string/string.h: Add __wur to GNU version of strerror_r.
60133
60134 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
60135
60136         [BZ #14229]
60137         * string/Makefile (tests): Add tst-strtok_r.
60138         * string/tst-strtok_r.c: New file.
60139         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
60140         RAX_LP/RDX_LP on SAVE_PTR.
60141
60142 2012-06-14  Roland McGrath  <roland@hack.frob.com>
60143
60144         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
60145
60146 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
60147
60148         * libm_test.inc (csqrt_test): Allow more spurious underflow
60149         exceptions.
60150         (j0_test): Likewise.
60151         (j1_test): Likewise.
60152         (y0_test): Likewise.
60153         (y1_test): Likewise.
60154
60155 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
60156
60157         * po/Makefile (libc.pot): Use UTF-8 charset.
60158
60159 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
60160
60161         [BZ #14210]
60162         Suppress sign-conversion warning from FD_SET.
60163         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
60164         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
60165         not unsigned long int.
60166         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
60167
60168 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
60169
60170         [BZ #14050]
60171         [BZ #14117]
60172         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
60173         __extern_always_inline instead of __extern_inline.
60174         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
60175         (__signbit): Likewise.
60176         (__signbitl): Support C++ namespace.
60177         (lrintf): New inline function.
60178         (lrint): Likewise.
60179         (llrintf): Likewise.
60180         (llrint): Likewise.
60181         (fmaxf): Likewise.
60182         (fmax): Likewise.
60183         (fminf): Likewise.
60184         (fmin): Likewise.
60185         (rint): Likewise.
60186         (rintf): Likewise.
60187         (ceil): Likewise.
60188         (ceilf): Likewise.
60189         (floor): Likewise.
60190         (floorf): Likewise.
60191         (nearbyint): Likewise.
60192         (nearbyintf): Likewise.
60193
60194 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
60195
60196         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
60197         non-default versions.
60198
60199 2012-06-11  Roland McGrath  <roland@hack.frob.com>
60200
60201         [BZ #14218]
60202         * manual/argp.texi (Argp): Reword argp_parse description slightly.
60203
60204 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
60205
60206         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
60207         (FE_UPWARD, FE_DOWNWARD): Don't define.
60208         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
60209         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
60210
60211         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
60212         reading it.
60213         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
60214         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
60215
60216 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60217
60218         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
60219         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
60220         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
60221         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
60222
60223 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
60224
60225         [BZ #14117]
60226         * sysdeps/i386/fpu/bits/fenv.h: Removed.
60227         * sysdeps/i386/fpu/Implies: New file.
60228         * sysdeps/x86_64/fpu/Implies: Likewise.
60229         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
60230         * sysdeps/x86/fpu/bits/fenv.h: This.
60231
60232         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
60233         __SSE_MATH__.
60234
60235 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
60236
60237         [BZ #14134]
60238         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
60239         character 0xffff that matches the last element of the
60240         conversion table.
60241
60242 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60243
60244         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
60245         fmodl commit.
60246
60247 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60248
60249         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
60250         values higher than 25.6283.
60251
60252 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60253
60254         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
60255         subnormal exponent extraction and add some __builtin_expect.
60256         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
60257         Fix for subnormal mantissa calculation.
60258
60259 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
60260
60261         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
60262         cpu2 is -1 and errno is not ENOSYS.
60263
60264 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
60265
60266         [BZ #14117]
60267         * sysdeps/i386/i486/bits/string.h: Renamed to ...
60268         * sysdeps/x86/bits/string.h: This.
60269         * sysdeps/x86_64/bits/string.h: Removed.
60270
60271         * sysdeps/i386/i486/bits/string.h: Define inline functions only
60272         if not compiling for x86-64, but compiling for >= i486.
60273
60274         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
60275         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
60276
60277         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
60278         New macro from Linux kernel 3.4.0.
60279         (FP_XSTATE_MAGIC2): Likewise.
60280         (FP_XSTATE_MAGIC2_SIZE): Likewise.
60281         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
60282         (struct _fpx_sw_bytes): New struct.
60283         (struct _xsave_hdr): Likewise.
60284         (struct _ymmh_state): Likewise.
60285         (struct _xstate): Likewise.
60286
60287         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
60288         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
60289         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
60290         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
60291         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
60292         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
60293
60294         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
60295         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
60296         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
60297         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
60298         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
60299         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
60300
60301 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
60302
60303         [BZ #13743]
60304         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
60305         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
60306         (sysdep_headers): Include sys/platform/ppc.h.
60307         * sysdeps/powerpc/test-gettimebase.c: Test for
60308         __ppc_get_timebase() to catch future ISA opcode/insn changes.
60309         * manual/Makefile (appendices): Include platform.texi.
60310         * manual/contrib.texi (Contributors): Update @node pointers.
60311         * manual/maint.texi (Maintenance): Likewise.
60312         (Platform): New node.
60313         * manual/platform.texi: New file.  Document the new features.
60314
60315 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
60316             Jakub Jelinek  <jakub@redhat.com>
60317
60318         [BZ #14188]
60319         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
60320         where __builtin_expect is unavailable.
60321
60322 2012-06-03  David S. Miller  <davem@davemloft.net>
60323
60324         * stdlib/longlong.h: Updated from GCC.
60325
60326 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
60327
60328         [BZ #14042]
60329         * sysdeps/powerpc/powerpc32/mcount.c: New file.
60330         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
60331         __mcount_internal.
60332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
60333         (GLIBC_2.16): Likewise.
60334
60335 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60336
60337         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
60338
60339 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60340
60341         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
60342         (default-abi): New variable.
60343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
60344         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
60345         variable.
60346         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
60347         Likewise.
60348         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
60349         Likewise.
60350         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
60351         Likewise.
60352
60353         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
60354         definition.  Document in comment.
60355
60356 2012-06-01  David S. Miller  <davem@davemloft.net>
60357
60358         * stdlib/longlong.h: Updated from GCC.
60359
60360 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60361
60362         [BZ #14117]
60363         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
60364         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
60365         sys/debugreg.h sys/io.h here.
60366         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
60367         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
60368         sys/io.h.
60369         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
60370         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
60371         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
60372         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
60373         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
60374         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
60375
60376         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
60377         Define only if __x86_64__ is defined.
60378
60379 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60380
60381         [BZ #14048]
60382         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
60383         Use int64_t for variable i.
60384         * math/libm-test.inc (fmod_test): Add more tests.
60385
60386         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
60387         z computation is not scheduled after fetestexcept.
60388         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
60389         Use math_force_eval instead of asm to ensure calculation scheduled
60390         before exception test.
60391         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
60392         Ensure a1 + u.d computation is not scheduled after fetestexcept.
60393
60394 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
60395
60396         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
60397         computation is not scheduled after fetestexcept.
60398
60399 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60400
60401         [BZ #14117]
60402         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
60403         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
60404
60405 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60406
60407         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
60408         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
60409
60410 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
60411
60412         [BZ #14117]
60413         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
60414         <bits/wordsize.h>.
60415         (__WCHAR_MIN): Support __WORDSIZE == 64.
60416         (__WCHAR_MAX): Likewise.
60417
60418         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
60419         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
60420
60421         [BZ #14183]
60422         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
60423         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
60424
60425         [BZ #14117]
60426         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
60427         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
60428
60429         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
60430         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
60431
60432         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
60433         Defined to 1 if __x86_64__ isn't defined.
60434         (_STAT_VER_LINUX_OLD): New.
60435         (st_atime): Remove duplicate.
60436         (st_mtime): Likewise.
60437         (st_ctime): Likewise.
60438
60439 2012-05-31  David S. Miller  <davem@davemloft.net>
60440
60441         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
60442         entries.
60443
60444 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
60445
60446         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
60447         gen-libm-test.pl.
60448
60449         [BZ #14132]
60450         * elf/dl-reloc.c: Include <_itoa.h>.
60451         (_dl_reloc_bad_type): Remove use of INTUSE.
60452         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
60453         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
60454         * stdio-common/psiginfo.c (psiginfo): Likewise.
60455         * stdio-common/psignal.c (psignal): Likewise.
60456         * string/strsignal.c (strsignal): Likewise.
60457         * include/signal.h (_sys_siglist): Declare hidden proto.
60458         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
60459         INTVARDEF with libc_hidden_data_def.
60460         * stdio-common/itoa-udigits.c: Likewise.
60461         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
60462         (_itoa_lower_digits_internal): Remove declaration.
60463         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
60464         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
60465         (_sys_sigabbrev_internal): Remove aliases.
60466         (_sys_siglist): Define hidden alias.
60467
60468 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
60469
60470         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
60471         bits/sysctl.h.
60472
60473 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
60474
60475         [BZ #14117]
60476         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
60477         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
60478
60479         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
60480         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
60481         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
60482         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
60483         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
60484         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
60485
60486         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
60487         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
60488         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
60489
60490         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
60491         with __addr.
60492         (insw): Likewise.
60493         (insl): Likewise.
60494         (outsb): Likewise.
60495         (outsw): Likewise.
60496         (outsl): Likewise.
60497
60498         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
60499         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
60500         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
60501
60502         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
60503         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
60504         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
60505         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
60506         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
60507         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
60508
60509         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
60510         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
60511
60512         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
60513         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
60514
60515         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
60516         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
60517         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
60518
60519         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
60520         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
60521         to ...
60522         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
60523
60524         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
60525         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
60526         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
60527
60528         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
60529         for x86-64.
60530         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
60531
60532 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
60533
60534         * math/math.h (M_El): Use two more decimal places.
60535         (M_LOG2El): Likewise.
60536         (M_LOG10El): Likewise.
60537         (M_LN2l): Likewise.
60538         (M_LN10l): Likewise.
60539         (M_PIl): Likewise.
60540         (M_PI_2l): Likewise.
60541         (M_PI_4l): Likewise.
60542         (M_1_PIl): Likewise.
60543         (M_2_PIl): Likewise.
60544         (M_2_SQRTPIl): Likewise.
60545         (M_SQRT2l): Likewise.
60546         (M_SQRT1_2l): Likewise.
60547
60548 2012-05-31  David S. Miller  <davem@davemloft.net>
60549
60550         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
60551         values between float registers.
60552         * sysdeps/sparc/sparc64/memset.S: Likewise.
60553         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
60554
60555 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
60556
60557         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
60558         -D_FORTIFY_SOURCE=1.
60559         (CPPFLAGS-tst-longjmp_chk.c): Define.
60560         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
60561         (CPPFLAGS-tst-longjmp_chk2.c): Define.
60562         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
60563         CFLAGS-tst-wchar-h.c.
60564
60565 2012-05-31  Marek Polacek  <polacek@redhat.com>
60566
60567         [BZ #14132]
60568         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
60569         __endmntent_internal): Remove declaration.
60570         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
60571         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
60572         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
60573
60574 2012-05-30  David S. Miller  <davem@davemloft.net>
60575
60576         * sysdeps/sparc/sparc32/soft-fp/q_util.c
60577         (___Q_simulate_exceptions): Use real FP ops rather than writing
60578         into the %fsr.
60579         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
60580         Likewise.
60581
60582 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60583
60584         [BZ #14117]
60585         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
60586         * sysdeps/x86/bits/xtitypes.h: This.
60587
60588         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
60589         * sysdeps/x86/bits/wordsize.h: This.
60590
60591         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
60592         * sysdeps/x86/bits/huge_vall.h: This.
60593
60594         * sysdeps/i386/bits/select.h: Removed.
60595         * sysdeps/x86_64/bits/select.h: Renamed to ...
60596         * sysdeps/x86/bits/select.h: This.
60597
60598         * sysdeps/i386/bits/setjmp.h: Removed.
60599         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
60600         * sysdeps/x86/bits/setjmp.h: This.
60601
60602         * sysdeps/i386/bits/mathdef.h: Removed.
60603         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
60604         * sysdeps/x86/bits/mathdef.h: This.
60605
60606 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
60607
60608         [BZ #14132]
60609         * include/sys/socket.h (__connect_internal)
60610         (__libc_sa_len_internal): Remove declaration.
60611         (__connect, __libc_sa_len): Declare hidden_proto.
60612         (SA_LEN): Remove use of INTUSE.
60613         * socket/connect.c: Add libc_hidden_def.
60614         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
60615         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
60616         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
60617         alias.
60618         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
60619         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
60620         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
60621         of adding _internal alias.
60622
60623 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60624
60625         [BZ #14117]
60626         * sysdeps/i386/bits/link.h: Removed.
60627         * sysdeps/i386/bits/linkmap.h: Likewise.
60628         * sysdeps/x86_64/bits/link.h: Renamed to ...
60629         * sysdeps/x86/bits/link.h: This.
60630         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
60631         * sysdeps/x86/bits/linkmap.h: This.
60632
60633         * sysdeps/i386/bits/endian.h: Removed.
60634         * sysdeps/x86_64/bits/endian.h: Renamed to ...
60635         * sysdeps/x86/bits/endian.h: This.
60636
60637         * sysdeps/i386/bits/byteswap.h: Removed.
60638         * sysdeps/i386/bits/byteswap-16.h: Likewise.
60639         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
60640         * sysdeps/x86/bits/byteswap.h: This.
60641         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
60642         * sysdeps/x86/bits/byteswap-16.h: This.
60643         * sysdeps/i386/Implies: Add x86.
60644         * sysdeps/x86_64/Implies: Likewise.
60645
60646 2012-05-30  David S. Miller  <davem@davemloft.net>
60647
60648         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
60649         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
60650         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
60651         (FP_TRAPPING_EXCEPTIONS): Define.
60652         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
60653         (FP_TRAPPING_EXCEPTIONS): Define.
60654         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
60655         subnormals only when inexact has been signalled or underflow
60656         exceptions are enabled.
60657         (_FP_PACK_CANONICAL): Likewise.
60658
60659 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60660
60661         [BZ #14183]
60662         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
60663         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
60664
60665 2012-05-30  Richard Henderson  <rth@twiddle.net>
60666
60667         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
60668         with #ifndef NOT_IN_libc.
60669
60670         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
60671         marked to avoid plt entry.
60672
60673 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
60674
60675         [BZ #14112]
60676         * Makeconfig (default-abi): New macro.
60677         (abi-includes): Likewise.
60678         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
60679         $(abi-$(default-abi)-lib-soname) for soname if defined.
60680         ($(common-objpfx)gnu/lib-names.stmp): Generate from
60681         abi-variants.
60682         * Makefile (installed-stubs): Likewise.
60683         * include/stubs-biarch.h: Removed.
60684         * scripts/lib-names.awk: Only handle one library at a time.
60685         * scripts/soversions.awk: Remove WORDSIZE support.
60686         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
60687         entries.
60688         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
60689         Removed.
60690         (syscall-list-default-condition): Likewise.
60691         (syscall-list-default-condition): Likewise.
60692         (syscall-list-includes): Likewise.
60693         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
60694         syscall-list-* with abi-*.  Handle undefined abi-variants.
60695         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
60696         * sysdeps/unix/sysv/linux/i386/Implies: New file.
60697         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
60698         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
60699         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
60700         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
60701         Removed.
60702         (syscall-list-32-options): Likewise.
60703         (syscall-list-32-condition): Likewise.
60704         (syscall-list-64-options): Likewise.
60705         (syscall-list-64-condition): Likewise.
60706         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
60707         macro.
60708         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
60709         Renamed to ...
60710         (abi-*): This.
60711         (abi-64-ld-soname): New macro.
60712         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
60713         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
60714         Renamed to ...
60715         (abi-*): This.
60716         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
60717         * sysdeps/x86_64/x32/shlib-versions: Likewise.
60718
60719 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
60720
60721         * sysdeps/unix/sysv/linux/kernel-features.h
60722         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
60723         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
60724         include <kernel-features.h>.
60725         [!__NR_ftruncate64]: Remove conditional code.
60726         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60727         [__NR_ftruncate64]: Make code unconditional.
60728         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60729         * sysdeps/unix/sysv/linux/truncate64.c: Do not
60730         include <kernel-features.h>.
60731         [!__NR_ftruncate64]: Remove conditional code.
60732         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60733         [__NR_ftruncate64]: Make code unconditional.
60734         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60735         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
60736         include <kernel-features.h>.
60737         [!__NR_ftruncate64]: Remove conditional code.
60738         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60739         [__NR_ftruncate64]: Make code unconditional.
60740         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60741         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
60742         include <kernel-features.h>.
60743         [!__NR_ftruncate64]: Remove conditional code.
60744         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60745         [__NR_ftruncate64]: Make code unconditional.
60746         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
60747
60748         * configure.in (libc_cv_fpie): Weaken to a compile test using
60749         LIBC_TRY_CC_OPTION.
60750         * configure: Regenerated.
60751
60752 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60753
60754         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
60755         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
60756         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
60757         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
60758         Refreshed.
60759         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
60760         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
60761         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
60762         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
60763         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
60764         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
60765         Refreshed.
60766
60767 2012-05-27  David S. Miller  <davem@davemloft.net>
60768
60769         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
60770         (___Q_zero): New.
60771         (__Q_simulate_exceptions): Return void.  Change to simulate
60772         exceptions by writing into the %fsr.
60773         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
60774         (__Qp_handle_exceptions): Likewise.
60775         (numbers): Delete.
60776         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
60777         __Qp_handle_exceptions.
60778         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
60779         __Qp_handle_exceptions.
60780         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
60781         as unused and give dummy FP_RND_NEAREST initializer.
60782         (FP_INHIBIT_RESULTS): Define.
60783         (___Q_simulate_exceptions): Update declaration.
60784         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
60785         formatting.
60786         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
60787         as unused and give dummy FP_RND_NEAREST initializer.
60788         (__Qp_handle_exceptions): Update declaration.
60789         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
60790         formatting.
60791
60792 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
60793
60794         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
60795         the temporary FPU control word.
60796         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
60797         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
60798         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
60799         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
60800         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
60801         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
60802         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
60803         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
60804         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
60805         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
60806         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
60807
60808 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60809
60810         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
60811         fields.
60812
60813 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
60814
60815         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
60816         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
60817         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
60818         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
60819         Likewise.
60820         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
60821         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
60822         Likewise.
60823
60824 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
60825
60826         * po/h.po: Update from translation team.
60827
60828 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
60829
60830         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
60831
60832         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
60833         handling of denormals.
60834         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
60835         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
60836         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
60837         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
60838         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
60839         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
60840         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
60841         Likewise.
60842
60843 2012-05-26  Marek Polacek  <polacek@redhat.com>
60844
60845         [BZ #14152]
60846         * math/libm-test.inc (fma_test): Don't always expect underflow
60847         exception.
60848
60849 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
60850
60851         [BZ #12416]
60852         * elf/tst-execstack.c: Include stackinfo.h.
60853         (do_test): Adjust test case to ensure that pthread_getattr_np
60854         behaviour remains the same after marking stack executable.
60855
60856 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
60857
60858         * sysdeps/unix/sysv/linux/kernel-features.h
60859         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
60860         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
60861         kernel-features.h.
60862         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
60863         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
60864         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
60865         kernel-features.h.
60866         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
60867         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
60868
60869 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
60870
60871         * configure.in: Define the default includes to being none.
60872         * configure: Regenerated.
60873
60874 2012-05-25  Roland McGrath  <roland@hack.frob.com>
60875
60876         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
60877         * sysdeps/x86_64/setjmp.S: Likewise.
60878         * sysdeps/i386/bsd-setjmp.S: Likewise.
60879         * sysdeps/i386/bsd-_setjmp.S: Likewise.
60880         * sysdeps/i386/setjmp.S: Likewise.
60881         * sysdeps/i386/__longjmp.S: Likewise.
60882         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
60883         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
60884
60885         * include/stap-probe.h: New file.
60886         * configure.in: Handle --enable-systemtap.
60887         * configure: Regenerated.
60888         * config.h.in (USE_STAP_PROBE): New #undef.
60889         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
60890         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
60891         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
60892
60893 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
60894
60895         [BZ #13717]
60896         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
60897         to 2.4.0 where earlier.
60898         * sysdeps/unix/sysv/linux/configure: Regenerated.
60899         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
60900         <kernel-features.h>.
60901         [__ASSUME_32BITUIDS]: Make code unconditional.
60902         [!__ASSUME_32BITUIDS]: Remove conditional code.
60903         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
60904         <kernel-features.h>.
60905         [__ASSUME_32BITUIDS]: Make code unconditional.
60906         [!__ASSUME_32BITUIDS]: Remove conditional code.
60907         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
60908         [__ASSUME_32BITUIDS]: Make code unconditional.
60909         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
60910         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
60911         <kernel-features.h>.
60912         [__ASSUME_32BITUIDS]: Make code unconditional.
60913         [!__ASSUME_32BITUIDS]: Remove conditional code.
60914         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
60915         <kernel-features.h>.
60916         [__ASSUME_32BITUIDS]: Make code unconditional.
60917         [!__ASSUME_32BITUIDS]: Remove conditional code.
60918         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
60919         <kernel-features.h>.
60920         [__ASSUME_32BITUIDS]: Make code unconditional.
60921         [!__ASSUME_32BITUIDS]: Remove conditional code.
60922         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
60923         <kernel-features.h>.
60924         [__ASSUME_32BITUIDS]: Make code unconditional.
60925         [!__ASSUME_32BITUIDS]: Remove conditional code.
60926         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
60927         <kernel-features.h>.
60928         [__ASSUME_32BITUIDS]: Make code unconditional.
60929         [!__ASSUME_32BITUIDS]: Remove conditional code.
60930         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
60931         <kernel-features.h>.
60932         [__ASSUME_32BITUIDS]: Make code unconditional.
60933         [!__ASSUME_32BITUIDS]: Remove conditional code.
60934         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
60935         <kernel-features.h>.
60936         [__ASSUME_32BITUIDS]: Make code unconditional.
60937         [!__ASSUME_32BITUIDS]: Remove conditional code.
60938         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
60939         <kernel-features.h>.
60940         [__ASSUME_32BITUIDS]: Make code unconditional.
60941         [!__ASSUME_32BITUIDS]: Remove conditional code.
60942         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
60943         <kernel-features.h>.
60944         [__ASSUME_32BITUIDS]: Make code unconditional.
60945         [!__ASSUME_32BITUIDS]: Remove conditional code.
60946         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
60947         <kernel-features.h>.
60948         [__ASSUME_32BITUIDS]: Make code unconditional.
60949         [!__ASSUME_32BITUIDS]: Remove conditional code.
60950         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
60951         <kernel-features.h>.
60952         [__NR_setresgid] (__setresgid): Do not declare.
60953         [__ASSUME_32BITUIDS]: Make code unconditional.
60954         [!__ASSUME_32BITUIDS]: Remove conditional code.
60955         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
60956         <kernel-features.h>.
60957         [__NR_setresuid] (__setresuid): Do not declare.
60958         [__ASSUME_32BITUIDS]: Make code unconditional.
60959         [!__ASSUME_32BITUIDS]: Remove conditional code.
60960         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
60961         <kernel-features.h>.
60962         [__ASSUME_32BITUIDS]: Make code unconditional.
60963         [!__ASSUME_32BITUIDS]: Remove conditional code.
60964         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
60965         <kernel-features.h>.
60966         [__ASSUME_32BITUIDS]: Make code unconditional.
60967         [!__ASSUME_32BITUIDS]: Remove conditional code.
60968         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
60969         <kernel-features.h>.
60970         [__ASSUME_32BITUIDS]: Make code unconditional.
60971         [!__ASSUME_32BITUIDS]: Remove conditional code.
60972         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
60973         <kernel-features.h>.
60974         [__ASSUME_32BITUIDS]: Make code unconditional.
60975         [!__ASSUME_32BITUIDS]: Remove conditional code.
60976         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
60977         <kernel-features.h>.
60978         [__ASSUME_32BITUIDS]: Make code unconditional.
60979         [!__ASSUME_32BITUIDS]: Remove conditional code.
60980         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
60981         <kernel-features.h>.
60982         [__ASSUME_32BITUIDS]: Make code unconditional.
60983         [!__ASSUME_32BITUIDS]: Remove conditional code.
60984         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
60985         <kernel-features.h>.
60986         [__ASSUME_32BITUIDS]: Make code unconditional.
60987         [!__ASSUME_32BITUIDS]: Remove conditional code.
60988         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
60989         <kernel-features.h>.
60990         [__ASSUME_32BITUIDS]: Make code unconditional.
60991         [!__ASSUME_32BITUIDS]: Remove conditional code.
60992         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
60993         <kernel-features.h>.
60994         [__ASSUME_32BITUIDS]: Make code unconditional.
60995         [!__ASSUME_32BITUIDS]: Remove conditional code.
60996         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
60997         <kernel-features.h>.
60998         [__ASSUME_32BITUIDS]: Make code unconditional.
60999         [!__ASSUME_32BITUIDS]: Remove conditional code.
61000         * sysdeps/unix/sysv/linux/kernel-features.h
61001         (__ASSUME_SETRESUID_SYSCALL): Remove.
61002         (__ASSUME_SETRESGID_SYSCALL): Likewise.
61003         (__ASSUME_32BITUIDS): Likewise.
61004         (__ASSUME_LDT_WORKS): Likewise.
61005         (__ASSUME_O_DIRECTORY): Likewise.
61006         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
61007         architecture but not kernel version.
61008         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
61009         (__ASSUME_MMAP2_SYSCALL): Likewise.
61010         (__ASSUME_STAT64_SYSCALL): Likewise.
61011         (__ASSUME_IPC64): Likewise.
61012         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
61013         <kernel-features.h>.
61014         [__ASSUME_32BITUIDS]: Make code unconditional.
61015         [!__ASSUME_32BITUIDS]: Remove conditional code.
61016         * sysdeps/unix/sysv/linux/opendir.c: Do not include
61017         <kernel-features.h>.
61018         [__ASSUME_O_DIRECTORY]: Make code unconditional.
61019         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
61020         132096]: Remove conditional code.
61021         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
61022         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
61023         <kernel-features.h>.
61024         [__ASSUME_32BITUIDS]: Make code unconditional.
61025         [!__ASSUME_32BITUIDS]: Remove conditional code.
61026         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
61027         <kernel-features.h>.
61028         [__ASSUME_32BITUIDS]: Make code unconditional.
61029         [!__ASSUME_32BITUIDS]: Remove conditional code.
61030         * sysdeps/unix/sysv/linux/setegid.c: Do not include
61031         <kernel-features.h>.
61032         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
61033         unconditional.
61034         (__setresgid): Do not declare.
61035         [__ASSUME_32BITUIDS]: Make code unconditional.
61036         [!__ASSUME_32BITUIDS]: Remove conditional code.
61037         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
61038         <kernel-features.h>.
61039         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
61040         unconditional.
61041         (__setresuid): Do not declare.
61042         [__ASSUME_32BITUIDS]: Make code unconditional.
61043         [!__ASSUME_32BITUIDS]: Remove conditional code.
61044         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
61045         <kernel-features.h>.
61046         [__ASSUME_32BITUIDS]: Make code unconditional.
61047         [!__ASSUME_32BITUIDS]: Remove conditional code.
61048         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
61049         <kernel-features.h>.
61050         [__ASSUME_32BITUIDS]: Make code unconditional.
61051         [!__ASSUME_32BITUIDS]: Remove conditional code.
61052
61053 2012-05-25  Richard Henderson  <rth@twiddle.net>
61054
61055         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
61056         dl_hwcap to ifunc resolver.
61057         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
61058         elf_ifunc_invoke.
61059         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
61060         dl_hwcap to ifunc resolver.
61061         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
61062
61063 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61064
61065         [BZ #14153]
61066         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
61067         for |x| <= 2**-26, not 2**-57.
61068         * math/libm-test.inc (acos_test): Do not allow spurious underflow
61069         exception.
61070
61071 2012-05-24  Jeff Law  <law@redhat.com>
61072
61073         * stdio-common/Makefile (tests): Add bug25.
61074         * stdio-common/bug25.c: New test.
61075
61076 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61077
61078         [BZ #13576]
61079         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
61080         multiple of MALLOC_ALIGNMENT in size.
61081         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
61082
61083 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61084
61085         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
61086         Require >= 256.
61087         (FILENAME_MAX): Use macro-int-constant.
61088         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
61089         (_IOFBF): Use macro-int-constant.
61090         (_IOLBF): Likewise.
61091         (_IONBF): Likewise.
61092         (SEEK_CUR): Likewise.
61093         (SEEK_END): Likewise.
61094         (SEEK_SET): Likewise.
61095         (TMP_MAX): Likewise.
61096         (EOF): Use macro-int-constant.  Require < 0.
61097         (NULL): Use macro-constant.  Require == 0.
61098         (stdin): Require type to be FILE *.
61099         (stdout): Likewise.
61100         (stderr): Likewise.
61101         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
61102         macro-int-constant.
61103         (EXIT_SUCCESS): Likewise.
61104         (NULL): Use macro-constant.  Require == 0.
61105         (RAND_MAX): Use macro-int-constant.
61106         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
61107         [C99-based standards] (strtof): Require function.
61108         [C99-based standards] (strtold): Likewise.
61109         [C99-based standards] (strtoll): Likewise.
61110         [C99-based standards] (strtoull): Likewise.
61111         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
61112         [ISO || ISO99 || ISO11] (limits.h): Likewise.
61113         [ISO || ISO99 || ISO11] (math.h): Likewise.
61114         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
61115         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
61116         [ISO || ISO99 || ISO11] (*_t): Do not allow.
61117
61118 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
61119
61120         [BZ #14132]
61121         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
61122         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
61123         * intl/dgettext.c (DCGETTEXT): Likewise.
61124         * intl/gettext.c (DCGETTEXT): Likewise.
61125         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
61126         * posix/regex_internal.h (gettext): Likewise.
61127         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
61128         Remove declaration.
61129         * include/argz.h (__argz_count_internal)
61130         (__argz_stringify_internal): Remove declaration.
61131         (__argz_count, __argz_stringify): Declare hidden proto.
61132         * intl/dcgettext.c: Remove use of INTDEF.
61133         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
61134         * string/argz-stringify.c: Likewise.
61135         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61136         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61137         Declare hidden proto.
61138         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61139         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61140         Declare hidden proto.
61141         * include/stdio.h (__asprintf_internal): Don't declare.
61142         (__asprintf): Don't define as macro.  Declare hidden proto.
61143         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
61144         (__fsetlocking): Declare hidden proto.
61145         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
61146         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
61147         hidden proto.
61148         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
61149         (_IO_setlinebuf): Remove use of INTUSE.
61150         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
61151         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
61152         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
61153         Remove declaration.
61154         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
61155         (_IO_do_flush): Remove use of INTUSE.
61156         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
61157         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
61158         (_IO_adjust_column, _IO_least_wmarker)
61159         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
61160         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
61161         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
61162         (_IO_default_doallocate, _IO_wdefault_doallocate)
61163         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
61164         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
61165         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
61166         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
61167         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
61168         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
61169         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
61170         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
61171         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
61172         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
61173         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
61174         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
61175         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
61176         proto.
61177         (_IO_flush_all_internal, _IO_adjust_column_internal)
61178         (_IO_default_uflow_internal, _IO_default_finish_internal)
61179         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
61180         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
61181         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
61182         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
61183         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
61184         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
61185         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
61186         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
61187         (_IO_file_close_internal, _IO_file_close_it_internal)
61188         (_IO_file_underflow_internal, _IO_file_overflow_internal)
61189         (_IO_file_init_internal, _IO_file_attach_internal)
61190         (_IO_file_fopen_internal, _IO_file_read_internal)
61191         (_IO_file_sync_internal, _IO_file_seek_internal)
61192         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
61193         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
61194         (_IO_str_underflow_internal, _IO_str_overflow_internal)
61195         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
61196         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
61197         (_IO_list_all_internal, _IO_link_in_internal)
61198         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
61199         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
61200         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
61201         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
61202         (_IO_do_write_internal, _IO_padn_internal)
61203         (_IO_getline_info_internal, _IO_getline_internal)
61204         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
61205         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
61206         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
61207         (_IO_vfscanf_internal, _IO_vfprintf_internal)
61208         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
61209         (_IO_init_internal, _IO_un_link_internal): Don't declare.
61210         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
61211         with libc_hidden_ver, remove use of INTUSE.
61212         * libio/genops.c: Likewise.
61213         * libio/freopen.c: Likewise.
61214         * libio/freopen64.c: Likewise.
61215         * libio/iofclose.c: Likewise.
61216         * libio/iofdopen.c: Likewise.
61217         * libio/iofflush.c: Likewise.
61218         * libio/iofflush_u.c: Likewise.
61219         * libio/iofgets.c: Likewise.
61220         * libio/iofgets_u.c: Likewise.
61221         * libio/iofopen.c: Likewise.
61222         * libio/iofopncook.c: Likewise.
61223         * libio/iofread.c: Likewise.
61224         * libio/iofread_u.c: Likewise.
61225         * libio/ioftell.c: Likewise.
61226         * libio/iofwrite.c: Likewise.
61227         * libio/iogetline.c: Likewise.
61228         * libio/iogets.c: Likewise.
61229         * libio/iogetwline.c: Likewise.
61230         * libio/iopadn.c: Likewise.
61231         * libio/iopopen.c: Likewise.
61232         * libio/ioseekoff.c: Likewise.
61233         * libio/ioseekpos.c: Likewise.
61234         * libio/iosetbuffer.c: Likewise.
61235         * libio/iosetvbuf.c: Likewise.
61236         * libio/ioungetc.c: Likewise.
61237         * libio/ioungetwc.c: Likewise.
61238         * libio/iovdprintf.c: Likewise.
61239         * libio/iovsprintf.c: Likewise.
61240         * libio/iovsscanf.c: Likewise.
61241         * libio/memstream.c: Likewise.
61242         * libio/obprintf.c: Likewise.
61243         * libio/oldfileops.c: Likewise.
61244         * libio/oldiofclose.c: Likewise.
61245         * libio/oldiofdopen.c: Likewise.
61246         * libio/oldiofopen.c: Likewise.
61247         * libio/oldiopopen.c: Likewise.
61248         * libio/oldstdfiles.c: Likewise.
61249         * libio/putc.c: Likewise.
61250         * libio/setbuf.c: Likewise.
61251         * libio/setlinebuf.c: Likewise.
61252         * libio/stdfiles.c: Likewise.
61253         * libio/strops.c: Likewise.
61254         * libio/vasprintf.c: Likewise.
61255         * libio/vscanf.c: Likewise.
61256         * libio/vsnprintf.c: Likewise.
61257         * libio/vswprintf.c: Likewise.
61258         * libio/wfiledoalloc.c: Likewise.
61259         * libio/wfileops.c: Likewise.
61260         * libio/wgenops.c: Likewise.
61261         * libio/wmemstream.c: Likewise.
61262         * libio/wstrops.c: Likewise.
61263         * libio/__fpurge.c: Likewise.
61264         * libio/__fsetlocking.c: Likewise.
61265         * assert/assert.c: Likewise.
61266         * debug/fgets_chk.c: Likewise.
61267         * debug/fgets_u_chk.c: Likewise.
61268         * debug/fread_chk.c: Likewise.
61269         * debug/fread_u_chk.c: Likewise.
61270         * debug/gets_chk.c: Likewise.
61271         * debug/obprintf_chk.c: Likewise.
61272         * debug/vasprintf_chk.c: Likewise.
61273         * debug/vdprintf_chk.c: Likewise.
61274         * debug/vsnprintf_chk.c: Likewise.
61275         * debug/vsprintf_chk.c: Likewise.
61276         * malloc/mtrace.c: Likewise.
61277         * misc/error.c: Likewise.
61278         * misc/syslog.c: Likewise.
61279         * stdio-common/asprintf.c: Likewise.
61280         * stdio-common/fxprintf.c: Likewise.
61281         * stdio-common/getw.c: Likewise.
61282         * stdio-common/isoc99_fscanf.c: Likewise.
61283         * stdio-common/isoc99_scanf.c: Likewise.
61284         * stdio-common/isoc99_vfscanf.c: Likewise.
61285         * stdio-common/isoc99_vscanf.c: Likewise.
61286         * stdio-common/isoc99_vsscanf.c: Likewise.
61287         * stdio-common/printf-prs.c: Likewise.
61288         * stdio-common/printf_fp.c: Likewise.
61289         * stdio-common/printf_fphex.c: Likewise.
61290         * stdio-common/printf_size.c: Likewise.
61291         * stdio-common/putw.c: Likewise.
61292         * stdio-common/scanf.c: Likewise.
61293         * stdio-common/sprintf.c: Likewise.
61294         * stdio-common/tmpfile.c: Likewise.
61295         * stdio-common/vfprintf.c: Likewise.
61296         * stdio-common/vfscanf.c: Likewise.
61297         * stdlib/strfmon_l.c: Likewise.
61298         * sunrpc/openchild.c: Likewise.
61299         * sunrpc/xdr_stdio.c: Likewise.
61300         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
61301         * sysdeps/mach/hurd/tmpfile.c: Likewise.
61302
61303 2012-05-24  Roland McGrath  <roland@hack.frob.com>
61304
61305         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
61306
61307         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
61308         in the third column, to generate for the shared library an IFUNC
61309         that uses _dl_vdso_vsym.
61310         * Makerules (COMPILE.c, compile-stdin.c): New variables.
61311         * Makeconfig (object-suffixes-noshared): New variable.
61312
61313         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
61314         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
61315         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
61316         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
61317
61318         [BZ #14132]
61319         * include/sys/time.h (__gettimeofday): Remove macro.
61320         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
61321         * time/gettimeofday.c (__gettimeofday): Remove #undef.
61322         Remove INTDEF.
61323         (__gettimeofday): Add libc_hidden_def.
61324         (gettimeofday): Add libc_hidden_weak.
61325         * sysdeps/mach/gettimeofday.c: Likewise.
61326         * sysdeps/posix/gettimeofday.c: Likewise.
61327         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
61328         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
61329         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
61330         (__gettimeofday_internal): Remove strong_alias.
61331         (__gettimeofday): Add libc_hidden_def.
61332         (gettimeofday): Add libc_hidden_weak.
61333         * sysdeps/unix/syscalls.list (gettimeofday):
61334         Remove __gettimeofday_internal alias.
61335
61336 2012-05-24  Daniel Jacobowitz  <drow@false.org>
61337             H.J. Lu  <hongjiu.lu@intel.com>
61338
61339         [BZ #12495]
61340         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
61341         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
61342         (largebin_index_32_big): New.
61343         (largebin_index): Use it for 16-byte alignment.
61344         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
61345         correction with front_misalign.
61346
61347 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61348
61349         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
61350         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
61351         Likewise.
61352         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
61353         Likewise.
61354         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
61355         Likewise.
61356         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
61357         Likewise.
61358         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
61359         Likewise.
61360         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
61361         Likewise.
61362         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
61363         Likewise.
61364         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
61365         Likewise.
61366         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
61367         Likewise.
61368         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
61369         Likewise.
61370         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
61371         Likewise.
61372         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
61373         Likewise.
61374
61375         * scripts/data/c++-types-x32-linux-gnu.data: New file.
61376         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
61377
61378 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61379
61380         [BZ #10846]
61381         [BZ #14036]
61382         * math/libm-test.inc (exp_test): Add test from bug 14036.
61383         (pow_test): Add test from bug 10846.
61384
61385         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
61386         and other flags.
61387         (special_function): Do not include flags in test name.
61388         (parse_args): Likewise.
61389         * sysdeps/i386/fpu/libm-test-ulps: Update.
61390         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
61391         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
61392         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
61393         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61394
61395         * math/gen-libm-test.pl (%beautify): Add entries for underflow
61396         exceptions.
61397         * math/libm-test.inc ("Philosophy"): Update comment about
61398         exception testing.
61399         (UNDERFLOW_EXCEPTION): New macro.
61400         (UNDERFLOW_EXCEPTION_OK): Likewise.
61401         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
61402         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
61403         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
61404         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
61405         (INVALID_EXCEPTION_OK): Update value.
61406         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
61407         (OVERFLOW_EXCEPTION_OK): Likewise.
61408         (IGNORE_ZERO_INF_SIGN): Likewise.
61409         (test_exceptions): Handle underflow exceptions.
61410         (acos_test): Update for underflow exception expectations.
61411         (cexp_test): Likewise.
61412         (clog_test): Likewise.
61413         (clog10_test): Likewise.
61414         (csqrt_test): Likewise.
61415         (ctan_test): Likewise.
61416         (ctanh_test): Likewise.
61417         (exp_test): Likewise.
61418         (exp10_test): Likewise.
61419         (exp2_test): Likewise.
61420         (expm1_test): Likewise.
61421         (fma_test): Likewise.
61422         (j0_test): Likewise.
61423         (jn_test): Likewise.
61424         (nexttoward_test): Likewise.
61425         (pow_test): Likewise.
61426         (scalbn_test): Likewise.
61427         (scalbln_test): Likewise.
61428         (tan_test): Likewise.
61429         (y1_test): Likewise.
61430         * sysdeps/i386/fpu/libm-test-ulps: Update.
61431         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61432
61433 2012-05-23  David S. Miller  <davem@davemloft.net>
61434
61435         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
61436         (__libc_sigaction): Remove unused local variables.
61437
61438 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61439
61440         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
61441
61442 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
61443
61444         mktime: avoid signed integer overflow
61445         * time/mktime.c (__mktime_internal): Do not mishandle the case
61446         where diff == INT_MIN.
61447
61448         mktime: simplify computation of average
61449         * time/mktime.c (ranged_convert): Use new time_t_avg function
61450         instead of rolling our own (probably-slower) code.
61451
61452         mktime: do not assume signed right shift propagates sign bit
61453         * time/mktime.c (isdst_differ): New static function.
61454         (__mktime_internal): No need to normalize tm_isdst now.
61455         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
61456         tm_isdst values.
61457
61458         mktime: merge another wrapv change from gnulib
61459         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
61460         from some compilers.
61461
61462         mktime: remove incorrect attempt at unusual arithmetics
61463         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
61464         The code didn't really work on such machines anyway.
61465         (TYPE_MINIMUM): Assume two's complement.
61466         (twos_complement_arithmetic): Verify that long_int and time_t
61467         are two's complement (or unsigned, in the latter case).
61468
61469         mktime: check signed shifts on long_int and time_t, too
61470         * time/mktime.c (SHR): Check that shifts work as desired
61471         on the types long_int and time_t too, as SHR is used on
61472         such types.
61473
61474         mktime: do not assume 'long' is wide enough
61475         * time/mktime.c (verify): Move decl up.
61476         (long_int): New type.
61477         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
61478         to remove assumption in the code that 'long' is wide enough to
61479         store year values.  This assumption is not true on x32 and on
61480         some non-glibc platforms.
61481
61482         mktime: merge wrapv change from gnulib
61483         * time/mktime.c (WRAPV): New macro.
61484         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
61485         (guess_time_tm, __mktime_internal): Do not assume that signed
61486         integer overflow wraps around; modern compilers generate code
61487         where this assumption is no longer valid.
61488
61489 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61490
61491         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
61492         Replace "jmp L(pseudo_end)" with "ret".
61493         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
61494         Likewise.
61495
61496 2012-05-23  Andreas Jaeger  <aj@suse.de>
61497
61498         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
61499         * sysdeps/unix/sysv/linux/poll.c: Remove file.
61500
61501 2012-05-23  Andreas Jaeger  <aj@suse.de>
61502             Maximilian Attems  <max@stro.at>
61503
61504         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
61505         New macros.
61506
61507 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
61508
61509         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
61510         code so that pseudo_end is just ret and the stack pointer is
61511         correct also for static library in error case.
61512
61513 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
61514
61515         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
61516         move to syscalls.list.
61517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
61518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
61519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
61520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
61521
61522         * manual/install.texi (Running make install): Do not mention Linux
61523         kernel version for which pt_chown is not needed.
61524         (Linux): Do not mention problems with nscd with 2.0 kernels.
61525         * INSTALL: Regenerated.
61526
61527 2012-05-23  Andreas Jaeger  <aj@suse.de>
61528
61529         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
61530         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
61531         macro.
61532         * sysdeps/unix/sysv/linux/s390/bits/mman.h
61533         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61534         * sysdeps/unix/sysv/linux/sh/bits/mman.h
61535         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61536         * sysdeps/unix/sysv/linux/i386/bits/mman.h
61537         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61538         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
61539         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61540         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
61541         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
61542         * sysdeps/unix/sysv/linux/bits/in.h
61543         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
61544
61545 2012-05-22  Roland McGrath  <roland@hack.frob.com>
61546
61547         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
61548         (PREPARE_VERSION): Just use assert instead, it will be elided
61549         under [NDEBUG] anyway.
61550
61551 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61552
61553         * sysdeps/unix/sysv/linux/Makefile: Include
61554         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
61555         (sysdep_routines): Remove sysctl.
61556         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
61557         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
61558         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
61559         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
61560         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
61561
61562 2012-05-22  Andreas Jaeger  <aj@suse.de>
61563
61564         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
61565         that pseudo_end is just ret and the stack pointer is correct also
61566         for static library in error case.
61567
61568 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
61569
61570         [BZ #14122]
61571         * nss/nsswitch.c (defconfig_entries): New variable.
61572         (__nss_database_lookup): Don't leak defconfig entries.
61573         (nss_parse_service_list): Don't leak on error paths.
61574         (free_database_entries): New function.
61575         (free_defconfig): New function.
61576         (free_mem): Move common code to free_database_entries.
61577
61578 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61579
61580         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
61581         Add arch_prctl.
61582         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
61583
61584         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
61585         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
61586         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
61587         New macro.
61588         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
61589         (INTERNAL_SYSCALL_TYPES): Likewise.
61590         (LOAD_ARGS_TYPES_[1-6]): Likewise.
61591         (LOAD_REGS_TYPES_[1-6]): Likewise.
61592         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
61593         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
61594
61595 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61596
61597         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
61598         copysignl for GLIBC_2_0.
61599         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
61600         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
61601         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
61602         logbl for GLIBC_2_0.
61603         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
61604         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
61605
61606 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61607
61608         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
61609         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
61610
61611         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
61612         Use "neg %eax".
61613
61614         * time/mktime.c: Update copyright years.
61615
61616 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61617
61618         mktime: merge comment-quoting-style change from gnulib
61619         * time/mktime.c: Quote 'like this' in comments.
61620         The GNU coding standards suggest that we no longer quote `like this',
61621         as "`" and "'" are typically rendered asymmetrically nowadays.
61622         The typical gnulib style is to quote 'like this' when quoting
61623         code, and "like this" when quoting English.
61624
61625         * time/mktime.c (compile-command): Add "-I.".
61626
61627         mktime: merge mktime-internal.h change from gnulib
61628         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
61629
61630         mktime: merge time_r change from gnulib
61631         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
61632
61633         mktime: merge DEBUG change from gnulib
61634         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
61635         case system <time.h> has a #define.
61636
61637         mktime: merge <sys/types.h> change from gnulib
61638         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
61639         since <time.t> is now guaranteed to define time_t.
61640
61641         mktime: merge HAVE_CONFIG_H change from gnulib
61642         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
61643
61644 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
61645
61646         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
61647         Use "neg %eax".
61648
61649         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
61650         __rlim_t cast.
61651         (struct rusage): Use anonymous union to pad each field to
61652         __syscall_slong_t.
61653
61654 2012-05-21  David S. Miller  <davem@davemloft.net>
61655
61656         * Makefules (o-iterator): Remove .s cases.
61657         (compile-command.s): Delete.
61658         (COMPILE.s): Delete.
61659         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
61660
61661 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
61662
61663         * configure.in (libc_cv_predef_stack_protector): Only consider
61664         "foobar" and "__stack_chk_fail" lines in libc_undefs.
61665         * configure: Regenerated.
61666
61667 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
61668
61669         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
61670         New macro.  Use R*LP on int and pointer.
61671         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
61672         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
61673         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
61674         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
61675
61676         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
61677         [__WORDSIZE_TIME64_COMPAT32] instead of
61678         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
61679         (struct utmp): Likewise.
61680         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
61681         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
61682         Renamed to ...
61683         (__WORDSIZE_TIME64_COMPAT32): This.
61684         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
61685         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
61686         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
61687         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
61688         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
61689         (__WORDSIZE_TIME64_COMPAT32): New macro.
61690
61691 2012-05-21  Andreas Jaeger  <aj@suse.de>
61692
61693         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
61694         only if [SHARED]. Add prototype for __wcschr_ia32.
61695
61696 2012-05-21  Roland McGrath  <roland@hack.frob.com>
61697
61698         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
61699         of %rbp unmolested in the jmp_buf while mangling the low bits.
61700         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
61701         unmolested high bits of %rbp while demangling the low bits.
61702         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
61703
61704 2012-05-21  Andreas Jaeger  <aj@suse.de>
61705
61706         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
61707         * sunrpc/svc_simple.c: Use it for registerrpc.
61708         * sunrpc/xcrypt.c: Use it for passwd2des.
61709
61710         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
61711
61712 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
61713
61714         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
61715         Don't define if [__SYSCALL_WORDSIZE != 32].
61716         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
61717         New macro.
61718
61719 2012-05-21  Bruno Haible  <bruno@clisp.org>
61720             Andreas Jaeger  <aj@suse.de>
61721
61722         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
61723         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
61724         inptr and inend for must_buffer_ch.
61725         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
61726         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
61727         * stdio-common/Makefile (tests): Remove bug15.
61728         (bug15-ENV): Remove macro.
61729         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
61730         anymore.
61731
61732 2012-05-19  Andreas Jaeger  <aj@suse.de>
61733             Roland McGrath  <roland@hack.frob.com>
61734
61735         * manual/contrib.texi: Completely rewritten. It contains now an
61736         alphabetical list of contributors and their contributions.
61737
61738 2012-05-21  Richard Henderson  <rth@twiddle.net>
61739
61740         * misc/getauxval.c (__getauxval): Use unsigned long int.
61741         * misc/sys/auxv.h: Include <sys/cdefs.h>.
61742         (getauxval): Use unsigned long int.
61743
61744 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
61745
61746         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
61747
61748 2012-05-21  Roland McGrath  <roland@hack.frob.com>
61749
61750         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
61751         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
61752         __alignof__ (long double).
61753
61754 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61755
61756         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
61757
61758 2012-05-20  Richard Henderson  <rth@twiddle.net>
61759
61760         * misc/getauxval.c: New file.
61761         * misc/sys/auxv.h: New file.
61762         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
61763         (routines): Add getauxval.
61764         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
61765         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
61766         * elf/dl-sysdep.c (_dl_auxv): Remove.
61767         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
61768         * elf/dl-support.c (_dl_auxv): New variable.
61769         (_dl_aux_init): Initialize it.
61770         * manual/startup.texi (Auxiliary Vector): New node.
61771         * sysdeps/generic/bits/hwcap.h: New file.
61772         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
61773         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
61774         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
61775         * sysdeps/sparc/sysdep.h: ... here.  Include it.
61776         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
61777         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
61778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
61779         Update.
61780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
61781         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
61782         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
61783         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
61784         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
61785         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
61786         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
61787         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
61788
61789 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61790
61791         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
61792
61793 2012-05-19  David S. Miller  <davem@davemloft.net>
61794
61795         * sysdeps/sparc/fpu/libm-test-ulps: Update.
61796
61797 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
61798
61799         [BZ #14123]
61800         * math/s_ccosh.c: Include <float.h>
61801         (__ccosh): Avoid internal overflow calculating sinh and cosh
61802         values before multiplying by sin and cos values.
61803         * math/s_ccoshf.c: Likewise.
61804         * math/s_ccoshl.c: Likewise.
61805         * math/s_csin.c: Likewise.
61806         * math/s_csinf.c: Likewise.
61807         * math/s_csinl.c: Likewise.
61808         * math/s_csinh.c: Likewise.
61809         * math/s_csinhf.c: Likewise.
61810         * math/s_csinhl.c: Likewise.
61811         * math/libm-test.inc (ccos_test): Add more tests.
61812         (ccosh_test): Likewise.
61813         (csin_test): Likewise.
61814         (csinh_test): Likewise.
61815         * sysdeps/i386/fpu/libm-test-ulps: Update.
61816         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61817
61818 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
61819
61820         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
61821         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
61822
61823         * sysdeps/x86_64/x32/_itoa.h: Add comment.
61824
61825 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
61826
61827         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
61828         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
61829         * sysdeps/powerpc/soft-fp/Versions: Likewise.
61830         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
61831         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
61832         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
61833         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
61834         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
61835         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
61836         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
61837         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
61838         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
61839         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
61840         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
61841         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
61842         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
61843         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
61844         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
61845         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
61846         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
61847         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
61848         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
61849         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
61850         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
61851         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
61852         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
61853         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
61854         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
61855         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
61856         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
61857         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
61858
61859 2012-05-18  Andreas Jaeger  <aj@suse.de>
61860
61861         * csu/.gitignore: Delete.
61862
61863 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
61864
61865         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
61866         (timex): Use __syscall_slong_t.
61867
61868 2012-05-18  Andreas Jaeger  <aj@suse.de>
61869             Carlos O'Donell  <carlos_odonell@mentor.com>
61870
61871         * manual/install.texi (Configuring and compiling): Update
61872         description about files modified in the source directory.
61873         * INSTALL: Regenerated.
61874
61875 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
61876
61877         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
61878         value.  Use "or" to set return value to -1.
61879         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
61880         negate return value.
61881
61882 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
61883
61884         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
61885         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
61886         failure if the compiler has Graphite support disabled.
61887         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
61888         Likewise.
61889         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
61890         (CFLAGS-memmove.c): Likewise.
61891         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
61892         Likewise.
61893
61894 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
61895
61896         * sysdeps/x86_64/x32/_itoa.h: New file.
61897
61898         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
61899         getdents system call only if kernel and user dirents have the
61900         same d_ino and d_off.
61901
61902         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
61903         LLONG_MAX != LONG_MAX.
61904         (_itoa_word): Use _ITOA_WORD_TYPE on value.
61905         (_fitoa_word): Likewise.
61906
61907         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
61908         years.
61909         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
61910         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
61911         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
61912
61913         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
61914         include <bits/wordsize.h>.  Check __x86_64__ instead of
61915         __WORDSIZE.
61916         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
61917         if __x86_64__ is defined.  Use anonymous union on fpstate.
61918
61919         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
61920         anonymous union.
61921
61922 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
61923
61924         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
61925         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
61926         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
61927         Refer to _rtld_local_ro instead of _rtld_global_ro.
61928         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
61929         Likewise.
61930         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
61931         Likewise.
61932         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
61933         Likewise.
61934         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
61935         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
61936         of _rtld_global, and rtld_progname instead of _dl_argv[0].
61937
61938         [BZ #10882]
61939         * sysdeps/powerpc/powerpc32/dl-machine.c
61940         (__elf_machine_runtime_setup) [PROF]: Don't reference
61941         _dl_prof_resolve.
61942
61943 2012-05-18  Andreas Jaeger  <aj@suse.de>
61944
61945         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
61946         function only available for GCCs before 3.4 since GCC 3.4
61947         introduced a builtin.
61948         (lrint): Likewise.
61949         (llrintf): Likewise.
61950         (llrint): Likewise.
61951         (fmaxf): Likewise.
61952         (fmax): Likewise.
61953         (fminf): Likewise.
61954         (fmin): Likewise.
61955         (rint): Likewise.
61956         (rintf): Likewise.
61957         (nearbyint): Likewise.
61958         (nearbyintf): Likewise.
61959         (ceil): Likewise.
61960         (ceilf): Likewise.
61961         (floor): Likewise.
61962         (floorf): Likewise.
61963
61964 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
61965
61966         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
61967         on both fields and cast pointer to __syscall_ulong_t.
61968
61969         * bits/types.h (__fsword_t): New type.
61970         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
61971         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
61972         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
61973         (__FSWORD_T_TYPE): Likewise.
61974         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
61975         (__FSWORD_T_TYPE): Likewise.
61976         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
61977         (__FSWORD_T_TYPE): Likewise.
61978         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
61979         (__FSWORD_T_TYPE): Likewise.
61980         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
61981         __SWORD_TYPE with __fsword_t.
61982         (statfs64): Likewise.
61983
61984 2012-05-17  David S. Miller  <davem@davemloft.net>
61985
61986         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
61987
61988 2012-05-17  Andreas Jaeger  <aj@suse.de>
61989
61990         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
61991         warning.
61992
61993 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
61994
61995         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
61996
61997 2012-05-17  Andreas Jaeger  <aj@suse.de>
61998
61999         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
62000         when it is used.
62001
62002 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62003
62004         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
62005
62006 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62007
62008         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
62009         * sysdeps/x86_64/tst-mallocalign1.c: New file.
62010
62011 2012-05-17  Andreas Jaeger  <aj@suse.de>
62012             Carlos O'Donell  <carlos_odonell@mentor.com>
62013
62014         [BZ #14059]
62015         * sysdeps/x86_64/multiarch/init-arch.h
62016         (bit_YMM_Usable): Rename to...
62017         (bit_AVX_Usable): ... this.
62018         (bit_FMA4_Usable): New macro.
62019         (bit_XMM_state): New macro.
62020         (bit_YMM_state): New macro.
62021         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
62022         [__ASSEMBLER__] (index_AVX_Usable): ... this.
62023         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
62024         (CPUID_OSXSAVE): New macro.
62025         (CPUID_AVX): New macro.
62026         (CPUID_FMA4): New macro.
62027         (index_YMM_Usable): Rename to...
62028         (index_AVX_Usable): ... this.
62029         (HAS_AVX): Use HAS_ARCH_FEATURE.
62030         (HAS_FMA4): Likewise.
62031         (HAS_YMM_USABLE): Remove.
62032         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
62033         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
62034         are present.
62035         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
62036         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
62037         * sysdeps/x86_64/multiarch/Makefile: Likewise.
62038         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
62039         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
62040
62041 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62042
62043         * math/libm-test.c: Support platforms without multiple rounding modes.
62044         * math/bug-nextafter.c: Support platforms without FP exceptions.
62045         * math/bug-nexttoward.c: Likewise.
62046         * math/test-fenv.c: Likewise.
62047         * math/test-misc.c: Likewise.
62048         * stdlib/bug-getcontext.c: Likewise.
62049
62050 2012-05-17  Andreas Jaeger  <aj@suse.de>
62051
62052         * manual/examples/search.c (critter_cmp): Change signature to
62053         avoid warnings.
62054         * manual/string.texi (Collation Functions): Likewise.
62055
62056 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62057
62058         * bits/types.h: Fold copyright years.
62059         * bits/typesizes.h: Likewise.
62060         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
62061         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
62062         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
62063         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
62064         * time/time.h: Likewise.
62065
62066 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
62067
62068         [BZ #208]
62069         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
62070         in instead of returning them.  Return void.
62071         (__libc_mallinfo): Accumulate over all arenas.
62072         (__malloc_stats): Adjust for change in int_mallinfo interface.
62073
62074 2012-05-16  Roland McGrath  <roland@hack.frob.com>
62075
62076         [BZ #10375]
62077         * configure.in (NM): Add AC_CHECK_TOOL for it.
62078         (libc_extra_cflags): New substituted variable.
62079         Check for -fstack-protector being used implicitly.
62080         * configure: Regenerated.
62081         * config.make.in (config-extra-cflags): New variable,
62082         gets @libc_extra_cflags@.
62083         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
62084
62085         [BZ #10375]
62086         * configure.in: Check for _FORTIFY_SOURCE being predefined.
62087         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
62088         * configure: Regenerated.
62089         * config.make.in (CPPUNDEFS): New substituted variable.
62090         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
62091         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
62092         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
62093
62094 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62095
62096         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
62097         (mq_attr): Use __syscall_slong_t.
62098
62099 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62100
62101         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
62102         Check __x86_64__ instead of __WORDSIZE.
62103         (_STAT_VER_LINUX): Likewise.
62104         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
62105         __syscall_ulong_t and __syscall_slong_t.
62106         (stat64): Likewise.
62107
62108 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62109
62110         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
62111
62112 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62113
62114         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
62115
62116 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62117
62118         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
62119         __syscall_ulong_t.
62120
62121         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
62122         include <bits/wordsize.h>.  Check __x86_64__ instead of
62123         __WORDSIZE.
62124         (greg_t): Use "__extension__ long long int" if __x86_64__ is
62125         defined.
62126         (mcontext_t): Replace "unsigned long" with "unsigned long long".
62127
62128         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
62129         include <bits/wordsize.h>.  Check __x86_64__ instead of
62130         __WORDSIZE.
62131         (user_regs_struct): Use "__extension__ unsigned long long"
62132         instead of "unsigned long" if __x86_64__ is defined.
62133         (user): Likewise.  Pad after pointer field if __ILP32__ is
62134         defined.
62135
62136 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
62137
62138         * configure.in (makeinfo): Require version 4.5 or later.  Allow
62139         versions 5 to 9.
62140         * configure: Regenerated.
62141         * manual/install.texi (texinfo): Increase version requirement to
62142         4.5 or later.
62143         * INSTALL: Regenerated.
62144
62145         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
62146
62147 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62148
62149         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
62150
62151         * sysdeps/x86_64/x32/ffs.c: New file.
62152
62153         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
62154         __syscall_ulong_t.
62155         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
62156         defined.  Use __syscall_ulong_t.
62157         (shminfo): Use __syscall_ulong_t.
62158         (shm_info): Likewise.
62159
62160         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
62161         __syscall_ulong_t.
62162
62163         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
62164         <bits/wordsize.h>.
62165         (msgqnum_t): Use __syscall_ulong_t.
62166         (msglen_t): Likewise.
62167         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
62168         __syscall_ulong_t.
62169
62170         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
62171         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62172
62173         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
62174
62175         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
62176         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
62177
62178         * sysvipc/sys/msg.h (msgbuf): Replace long int with
62179         __syscall_slong_t.
62180
62181         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
62182         include <bits/wordsize.h>.  Check __x86_64__ instead of
62183         __WORDSIZE.
62184
62185         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
62186         "unsigned long long int" if __x86_64__ is defined.
62187         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
62188
62189         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
62190         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62191         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
62192
62193         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
62194         <stdint.h>.
62195         (GET_PC): Cast to uintptr_t first.
62196         (GET_FRAME): Likewise.
62197         (GET_STACK): Likewise.
62198
62199         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
62200         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
62201         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
62202         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
62203         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
62204         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
62205         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
62206         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
62207         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
62208         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
62209         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
62210         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
62211         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
62212         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
62213         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
62214         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
62215         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
62216         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
62217         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
62218         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
62219         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
62220         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
62221         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
62222         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
62223         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
62224         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
62225         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
62226         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
62227         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
62228
62229 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
62230
62231         * Makerules (+depfiles): Also collect depfiles from .oS in
62232         $(extra-objs).
62233         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
62234         .oS, $(libnldbl-routines)).
62235
62236         * Makerules (native-compile-mkdep-flags): Define.
62237         * sunrpc/Makefile (extra-objs): Add $(addprefix
62238         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
62239         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
62240         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
62241         calling $(make-target-directory).
62242
62243 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62244
62245         * bits/types.h (__snseconds_t): Removed.
62246         * time/time.h (struct timespec): Replace __snseconds_t with
62247         __syscall_slong_t.
62248         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
62249         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
62250         Likewise.
62251         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62252         (__SNSECONDS_T_TYPE): Likewise.
62253         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62254         (__SNSECONDS_T_TYPE): Likewise.
62255         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62256         (__SNSECONDS_T_TYPE): Likewise.
62257
62258 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62259
62260         * sysdeps/mach/hurd/bits/typesizes.h
62261         (__SYSCALL_SLONG_TYPE): New macro.
62262         (__SYSCALL_ULONG_TYPE): Likewise.
62263
62264 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62265
62266         * bits/types.h (__syscall_slong_t): New type.
62267         (__syscall_ulong_t): Likewise.
62268
62269         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
62270         (__SYSCALL_ULONG_TYPE): Likewise.
62271         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62272         (__SYSCALL_SLONG_TYPE): Likewise.
62273         (__SYSCALL_ULONG_TYPE): Likewise.
62274         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62275         (__SYSCALL_SLONG_TYPE): Likewise.
62276         (__SYSCALL_ULONG_TYPE): Likewise.
62277         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62278         (__SYSCALL_SLONG_TYPE): Likewise.
62279         (__SYSCALL_ULONG_TYPE): Likewise.
62280
62281 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62282
62283         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
62284         Add sigaltstack-offsets.sym.
62285         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
62286         <sigaltstack-offsets.h>.
62287         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
62288         longjmp_msg pointer.
62289         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
62290         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
62291         signal stack.
62292         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
62293
62294 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62295
62296         * elf/stackguard-macros.h: Remove file.
62297         * sysdeps/generic/stackguard-macros.h: New file.
62298         * sysdeps/i386/stackguard-macros.h: Likewise.
62299         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
62300         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
62301         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
62302         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
62303         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
62304         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
62305         * sysdeps/x86_64/stackguard-macros.h: Likewise.
62306         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
62307         <elf/stackguard-macros.h>.
62308
62309         [BZ #14109]
62310         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
62311         __aligned__ in attribute.
62312         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
62313         (gregset_t): Likewise.
62314
62315 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62316
62317         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
62318         * sysdeps/x86_64/64/Implies-after: Here.  New file.
62319         * sysdeps/x86_64/x32/Implies-after: New file.
62320
62321 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62322
62323         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
62324         and access return value for _dl_profile_fixup.  Use R10_LP to
62325         load frame size.
62326
62327 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62328
62329         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
62330
62331 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62332
62333         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
62334         * sysdeps/x86_64/x32/sysdep.h: New file.
62335
62336 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62337
62338         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
62339         * sysdeps/x86_64/setjmp.S: Likewise.
62340
62341 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62342
62343         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
62344         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
62345         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
62346         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
62347         remove unused global constant.
62348
62349 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
62350
62351         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
62352         include of <not-cancel.h>.
62353
62354 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62355
62356         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
62357
62358 2012-05-15  Jeff Law  <law@redhat.com>
62359             Andreas Jaeger  <aj@suse.de>
62360
62361         [BZ #13594]
62362         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
62363         out from...
62364         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
62365         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
62366         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
62367         code changing __hst_map_handle.map.
62368
62369 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62370
62371         * configure.in (sysnames): Look for Implies-before and Implies-after
62372         files.
62373         * configure: Regenerated.
62374
62375 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62376
62377         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
62378         8-byte data alignment with LP_SIZE alignment.
62379
62380 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62381
62382         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
62383         into R10_LP.
62384
62385 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62386
62387         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
62388
62389 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62390
62391         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
62392         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
62393         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
62394         Likewise.
62395         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
62396
62397 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62398
62399         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
62400         (stackinfo_sub_sp): Likewise.
62401
62402 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62403
62404         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
62405         RAX_LP.
62406
62407 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62408
62409         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
62410         into R*_LP.
62411
62412 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62413
62414         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
62415         sizes into R*_LP.
62416
62417 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62418
62419         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
62420
62421 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62422
62423         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
62424         into R11_LP and load __x86_64_shared_cache_size_half into
62425         R8_LP.
62426
62427 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62428
62429         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
62430         R8_LP.
62431
62432 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62433
62434         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
62435         logb for POWER7.
62436         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
62437         logbf for POWER7.
62438         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
62439         logbl for POWER7.
62440         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
62441         powerpc32/power7/fpu/s_logb.c via #include.
62442         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
62443         powerpc32/power7/fpu/s_logbf.c via #include.
62444         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
62445         powerpc32/power7/fpu/s_logbl.c via #include.
62446
62447 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62448
62449         * README.libm: Remove file.
62450
62451 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62452
62453         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
62454         count for x32.  Use R*_LP and omit operand-size suffix.
62455
62456 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62457
62458         * shlib-versions: Move x86_64-.*-linux.* entries to ...
62459         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
62460         * sysdeps/x86_64/x32/shlib-versions: New file.
62461
62462 2012-05-14  Roland McGrath  <roland@hack.frob.com>
62463
62464         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
62465         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
62466         Use _dl_fatal_printf instead.
62467
62468 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
62469
62470         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
62471         set if not set by the user.  Do not allow for being unset.
62472         * sysdeps/unix/sysv/linux/configure: Regenerated.
62473
62474 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62475
62476         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
62477         the `q' suffix from lea and replace .quad with ASM_ADDR.
62478
62479 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62480
62481         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
62482         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
62483         instead of $17.
62484         (PTR_DEMANGLE): Likewise.
62485
62486 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62487
62488         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
62489         (LP_OP): Likewise.
62490         (ASM_ADDR): Likewise.
62491         (RAX_LP): Likewise.
62492         (RBP_LP): Likewise.
62493         (RBX_LP): Likewise.
62494         (RCX_LP): Likewise.
62495         (RDI_LP): Likewise.
62496         (RSI_LP): Likewise.
62497         (RSP_LP): Likewise.
62498         (R8_LP): Likewise.
62499         (R9_LP): Likewise.
62500         (R10_LP): Likewise.
62501         (R10_LP): Likewise.
62502         (R11_LP): Likewise.
62503         (R12_LP): Likewise.
62504         (R13_LP): Likewise.
62505         (R14_LP): Likewise.
62506         (R15_LP): Likewise.
62507
62508 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62509
62510         * sysdeps/x86_64/x32/dl-machine.h: New file.
62511
62512 2012-05-14  Andreas Jaeger  <aj@suse.de>
62513
62514         * manual/Makefile (subdir): Remove export of subdir.
62515         (all): Remove target.
62516         (.PHONY): Remove all from list.
62517         (mkinstalldirs): Remove.
62518         (.PHONY): Remove installdirs from list.
62519         ($(inst_infodir)/libc.info): Use make-target-directory.
62520         (installdirs): Remove.
62521         (subdir_%): Remove.
62522         (glibc-targets): Remove.
62523         (lib): Remove.
62524         (stubs): Remove.
62525         ($(objpfx)stubs ../po/manual.pot): Remove.
62526         ($(objpfx)stamp%): Remove.
62527         (make-target-directory): Remove.
62528         (subdir_install): Remove.
62529         (routines): Remove.
62530         (aux): Remove.
62531         (sources): Remove.
62532         (objects): Remove.
62533         (headers): Remove.
62534
62535         [BZ #13750]
62536         * manual/.gitignore: Remove, it's not needed anymore.
62537         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
62538         all files in it.
62539         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
62540         directory.
62541         (texis): Renamed to $(objpfx)texis.
62542         (texis-path): New, contains path to generated files.
62543         (chapters.%): Use texis-path for complete path, add extra argument
62544         libc-texinfo.sh.
62545         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
62546         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
62547         (summary,texi, stamp-summary): Use complete path of
62548         files. Generate files in build dir.
62549         (dir-add.texi): Build in build dir.
62550         (libm-err.texi,stamp-libm-err): Likewise.
62551         (version.texi, stamp-version): Likewise.
62552         (.%c.texi): Likewise.
62553         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
62554         (mostlyclean): Remove target.
62555         (realclean): Remove target.
62556         (generated): Add new variable with contents from mostlyclean and
62557         realclean, remove entries duplicated in common-mostlyclean, add
62558         stamp-libm-err and stamp-version.
62559         (generated-dirs): Add libc directory.
62560         ($(inst_infodir)/libc.info): Install files from build dir.
62561
62562         * manual/install.texi (Configuring and compiling): Adjust since
62563         the info files are not part of the tar ball anymore.
62564
62565 2012-05-14  Andreas Jaeger  <aj@suse.de>
62566
62567         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
62568         variable.
62569
62570 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
62571
62572         [BZ #13717]
62573         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
62574         to 2.2.0 where earlier.
62575         * sysdeps/unix/sysv/linux/configure: Regenerated.
62576         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
62577         Remove conditional code.
62578         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
62579         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
62580         Remove conditional code.
62581         [!__NR_lchown]: Likewise.
62582         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62583         [__NR_lchown]: Likewise.
62584         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
62585         comment referencing __ASSUME_LCHOWN_SYSCALL.
62586         * sysdeps/unix/sysv/linux/i386/sigaction.c
62587         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62588         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62589         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
62590         Remove conditional code.
62591         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
62592         (__protocol_available): Remove #if 0 code.
62593         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
62594         conditional code.
62595         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
62596         * sysdeps/unix/sysv/linux/kernel-features.h
62597         (__ASSUME_GETCWD_SYSCALL): Don't define.
62598         (__ASSUME_REALTIME_SIGNALS): Likewise.
62599         (__ASSUME_PREAD_SYSCALL): Likewise.
62600         (__ASSUME_PWRITE_SYSCALL): Likewise.
62601         (__ASSUME_POLL_SYSCALL): Likewise.
62602         (__ASSUME_LCHOWN_SYSCALL): Likewise.
62603         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
62604         non-SPARC.
62605         (__ASSUME_SIOCGIFNAME): Don't define.
62606         (__ASSUME_MSG_NOSIGNAL): Likewise.
62607         (__ASSUME_SENDFILE): Define unconditionally.
62608         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
62609         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
62610         conditional code.
62611         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
62612         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
62613         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
62614         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62615         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
62616         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
62617         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
62618         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
62619         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62620         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62621         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
62622         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62623         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
62625         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62626         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
62628         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62629         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
62631         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62632         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
62634         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
62635         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
62637         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62638         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
62640         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62641         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62642         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
62643         Remove conditional code.
62644         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62645         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
62646         Remove conditional code.
62647         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62648         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
62649         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
62650         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
62651         Remove conditional code.
62652         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62653         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
62654         Remove conditional code.
62655         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62656         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
62657         Remove conditional code.
62658         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62659         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
62660         Remove conditional code.
62661         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
62662         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
62663         Remove conditional code.
62664         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62665         * sysdeps/unix/sysv/linux/sh/pwrite64.c
62666         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
62667         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
62668         * sysdeps/unix/sysv/linux/sigaction.c
62669         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62670         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62671         * sysdeps/unix/sysv/linux/sigpending.c
62672         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62673         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62674         * sysdeps/unix/sysv/linux/sigprocmask.c
62675         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62676         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62677         * sysdeps/unix/sysv/linux/sigsuspend.c
62678         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
62679         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
62680         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
62681         (__libc_missing_rt_sigs): Remove.
62682         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
62683         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
62684         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
62685         Remove conditional code.
62686         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
62687         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
62688         return 1.
62689         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
62690         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
62691         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
62692         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
62693
62694 2012-05-14  Andreas Jaeger  <aj@suse.de>
62695
62696         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
62697         it's not used in glibc.
62698         (__coshm1): Likewise.
62699         (__acosh1p): Likewise.
62700         (__sgn): Likewise.
62701
62702         * manual/string.texi (Copying and Concatenation): Add missing
62703         variable in concat example.
62704         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
62705
62706 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62707
62708         [BZ #14103]
62709         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
62710         __builtin_clzl with __builtin_clzll.
62711
62712 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
62713
62714         [BZ #14104]
62715         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
62716         libc_freeres_ptr.
62717
62718 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
62719
62720         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
62721         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
62722         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
62723         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
62724
62725 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
62726
62727         * NEWS: Update ia64 info.
62728
62729 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
62730
62731         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
62732         used as bcopy.
62733
62734 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
62735
62736         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
62737         * sysdeps/unix/syscalls.list (dup3): Likewise.
62738         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
62739         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
62740
62741 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
62742
62743         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
62744         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
62745
62746 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
62747
62748         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
62749         thread pointer.
62750         (TLS_IE): Use mov/add instead of movq/addq to load thread
62751         pointer.
62752         (TLS_GD_PREFIX): New.
62753         (TLS_GD): Use it.
62754
62755 2012-05-11  David S. Miller  <davem@davemloft.net>
62756
62757         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
62758         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
62759         (_FPU_SETCW): Likewise.
62760
62761 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
62762
62763         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
62764         is 32-byte aligned.
62765
62766 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
62767
62768         [BZ #11837]
62769         * iconvdata/gb18030.c: Update tables.
62770         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
62771         characters specially.
62772         (BODY for TO_LOOP): Add encoding of missing ranges.
62773
62774 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
62775
62776         [BZ #13673]
62777         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
62778         * sysdeps/mach/hurd/dup3.c: Likewise.
62779         * sysdeps/mach/hurd/readlinkat.c: Likewise.
62780         * sysdeps/powerpc/memmove.c:: Likewise.
62781
62782 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
62783
62784         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
62785         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
62786
62787 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
62788
62789         * elf/elf.h (R_X86_64_RELATIVE64): New.
62790         (R_X86_64_NUM): Updated.
62791         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
62792         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
62793         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
62794         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
62795         tst-quad1pie tst-quad2pie
62796         (modules-names): Add tst-quadmod1 tst-quadmod2.
62797         ($(objpfx)tst-quad1): New dependency.
62798         ($(objpfx)tst-quad2): Likewise.
62799         ($(objpfx)tst-quad1pie): Likewise.
62800         ($(objpfx)tst-quad2pie): Likewise.
62801         * sysdeps/x86_64/tst-quad1.c: New file.
62802         * sysdeps/x86_64/tst-quad1pie.c: New file.
62803         * sysdeps/x86_64/tst-quad2.c: Likewise.
62804         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
62805         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
62806         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
62807         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
62808         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
62809
62810 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62811
62812         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
62813         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
62814         * streams/stropts.h (t_scalar_t): Define type.
62815
62816         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
62817         (_PATH_PRESERVE): Set to "/var/lib".
62818         (_PATH_RWHODIR): Set to "/var/spool/rwho".
62819
62820         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
62821         instead of int.
62822
62823         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
62824         if __dir_mkfile succeeded.
62825
62826         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
62827         checking for _hurd_dtablesize.  Unlock it right after having
62828         finished _hurd_dtable allocation.
62829
62830 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62831
62832         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
62833         * sysdeps/mach/hurd/configure: Regenerated.
62834         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
62835         special-casing to...
62836         * sysdeps/gnu/configure.in: ... this new file.
62837         * sysdeps/unix/sysv/linux/configure: Regenerated.
62838         * sysdeps/gnu/configure: New generated file.
62839
62840         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
62841         for Linux: use nsec instead of usec, as well as:
62842         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
62843         members of type struct timespec.
62844         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
62845         New macros.
62846         (struct stat64): Likewise.
62847         (_STATBUF_ST_NSEC): New macro.
62848         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
62849
62850         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
62851         __strtoul_internal rather than strtoul.
62852
62853 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62854
62855         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
62856         and reject them.
62857
62858 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62859
62860         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
62861         which preserves existing values.
62862         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
62863
62864 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62865
62866         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
62867         TIMEOUT values.  Return EINVAL for NFDS values either negative or
62868         greater than FD_SETSIZE.
62869
62870 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62871
62872         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
62873         allocated, call __vm_protect to finish enabling the existing space, and
62874         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
62875         allocate the remainder.
62876
62877 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62878
62879         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
62880         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
62881
62882 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62883
62884         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
62885         sysdeps/mach/hurd/readlink.c.
62886
62887         * posix/tst-sysconf.c (posix_options): Only use
62888         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
62889         _POSIX_SYNCHRONIZED_IO when they are defined
62890         * sysdeps/mach/hurd/bits/posix_opt.h:
62891         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
62892         (_XOPEN_REALTIME): Undefine macro.
62893         (_XOPEN_REALTIME_THREADS): Undefine macro.
62894         (_XOPEN_SHM): Undefine macro.
62895         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
62896         macro to -1.
62897         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
62898         macro to -1.
62899         (_POSIX_ASYNC_IO): Undefine macro.
62900         (_POSIX_PRIORITIZED_IO): Undefine macro.
62901         (_POSIX_SPIN_LOCKS): Define macro to -1.
62902
62903         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
62904         SA_NODEFER, SA_RESETHAND.
62905         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
62906         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
62907         F_DUPFD_CLOEXEC.
62908
62909 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62910
62911         * elf/Makefile (pldd-modules): Define unconditionally.
62912
62913 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62914
62915         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
62916
62917 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62918
62919         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
62920         Return ENOENT when name is empty.
62921         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
62922
62923 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62924
62925         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
62926
62927         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
62928
62929 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62930
62931         Fix mlock in all cases except non-readable pages.
62932         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
62933         instead of VM_PROT_ALL as parameter to __vm_wire function.
62934
62935         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
62936         (__mkdir): When path is `/', just fail with EEXIST.
62937         * sysdeps/mach/hurd/mkdirat.c: Likewise.
62938
62939 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62940
62941         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
62942         <sys/uio.h> (for writev).
62943         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
62944         and <sys/param.h> (for MIN).
62945
62946 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62947
62948         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
62949         REQUESTED_TIME.  Properly set the remaining time and return EINTR
62950         if interrupted.
62951
62952 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62953
62954         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
62955         Depend on against $(link-rpcuserlibs).
62956
62957 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62958
62959         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
62960         (__libc_stack_end): Do not use attribute_relro.
62961         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
62962         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
62963         to libthread-provided value.
62964         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
62965         attribute_relro.
62966
62967 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62968
62969         [BZ #3748]
62970         * bits/libc-lock.h (__libc_once_get): New macro.
62971         * sysdeps/mach/bits/libc-lock.h: Likewise.
62972         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
62973         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
62974         instead of using implementation details.
62975
62976         * libio/fileops.c: Unconditionally include <kernel-features.h>.
62977         * libio/freopen.c: Likewise.
62978         * libio/freopen64.c: Likewise.
62979         * misc/syslog.c: Likewise.
62980         * nscd/connections.c: Likewise.
62981         * nscd/netgroupcache.c: Likewise.
62982         * sysdeps/posix/getcwd.c: Likewise.
62983
62984 2012-05-10  Roland McGrath  <roland@hack.frob.com>
62985
62986         * math/w_ilogbf.c: Add #include <limits.h>.
62987
62988 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
62989
62990         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
62991         path instead of returning without unlocking.
62992
62993         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
62994         immediate-write ioctls.
62995         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
62996
62997 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
62998
62999         * sysdeps/mach/hurd/i386/init-first.c (init): Use
63000         __builtin_frame_address instead of making assumptions about the
63001         location of the return address relative to DATA.  Force early load of
63002         the return address.
63003         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
63004         __builtin_frame_address.
63005
63006         dup3 for GNU Hurd.
63007         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
63008         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
63009         implement dup3 and do some further code clean-ups.
63010         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
63011         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
63012
63013 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63014
63015         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
63016
63017         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
63018         HURD_CRITICAL_END around holding _hurd_dtable_lock.
63019         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
63020         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
63021         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
63022         d->port.lock.
63023
63024         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
63025         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
63026         when handler == SIG_ERR, not when handler != SIG_ERR.
63027
63028 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63029
63030         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
63031         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
63032         definitions.
63033
63034         accept4 for GNU Hurd.
63035         * include/sys/socket.h (__libc_accept4): New prototype.
63036         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
63037         to implement __libc_accept4.
63038         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
63039         __libc_accept4.
63040         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
63041
63042         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
63043         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
63044         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
63045         signal-defines.sym.
63046
63047 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63048
63049         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
63050
63051 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63052
63053         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
63054         assertion on O_CLOEXEC flag.
63055         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
63056         * hurd/intern-fd.c: Likewise.
63057         * hurd/port2fd.c: Likewise.
63058
63059 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63060
63061         [BZ #3906]
63062         * bits/in.h (IPV6_PKTINFO): Define new macro.
63063         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
63064
63065 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63066
63067         [BZ #13954]
63068         [BZ #13955]
63069         [BZ #13956]
63070         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
63071         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
63072         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
63073         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
63074         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
63075         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
63076         * math/libm-test.inc (logb_test) : Additional logb tests.
63077
63078 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
63079             Andreas Jaeger  <aj@suse.de>
63080
63081         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
63082         * configure: Regenerated.
63083         * config.h.in (LINK_OBSOLETE_RPC): New macro.
63084         * config.make.in (link-obsolete-rpc): New substituted variable.
63085         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
63086         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
63087         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63088         (shared-only-routines): Don't set it under [link-obsolete-rpc],
63089         so that libc.a contains the symbols.
63090         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63091         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
63092         * sunrpc/auth_none.c: Likewise.
63093         * sunrpc/auth_unix.c: Likewise.
63094         * sunrpc/authdes_prot.c: Likewise.
63095         * sunrpc/authuxprot.c: Likewise.
63096         * sunrpc/clnt_gen.c: Likewise.
63097         * sunrpc/clnt_perr.c: Likewise.
63098         * sunrpc/clnt_raw.c: Likewise.
63099         * sunrpc/clnt_simp.c: Likewise.
63100         * sunrpc/clnt_tcp.c: Likewise.
63101         * sunrpc/clnt_udp.c: Likewise.
63102         * sunrpc/clnt_unix.c: Likewise.
63103         * sunrpc/des_crypt.c: Likewise.
63104         * sunrpc/des_soft.c: Likewise.
63105         * sunrpc/get_myaddr.c: Likewise.
63106         * sunrpc/key_call.c: Likewise.
63107         * sunrpc/key_prot.c: Likewise.
63108         * sunrpc/netname.c: Likewise.
63109         * sunrpc/pm_getmaps.c: Likewise.
63110         * sunrpc/pm_getport.c: Likewise.
63111         * sunrpc/pmap_clnt.c: Likewise.
63112         * sunrpc/pmap_prot.c: Likewise.
63113         * sunrpc/pmap_prot2.c: Likewise.
63114         * sunrpc/pmap_rmt.c: Likewise.
63115         * sunrpc/publickey.c: Likewise.
63116         * sunrpc/rpc_cmsg.c: Likewise.
63117         * sunrpc/rpc_common.c: Likewise.
63118         * sunrpc/rpc_dtable.c: Likewise.
63119         * sunrpc/rpc_prot.c: Likewise.
63120         * sunrpc/rpc_thread.c: Likewise.
63121         * sunrpc/rtime.c: Likewise.
63122         * sunrpc/svc.c: Likewise.
63123         * sunrpc/svc_auth.c: Likewise.
63124         * sunrpc/svc_raw.c: Likewise.
63125         * sunrpc/svc_run.c: Likewise.
63126         * sunrpc/svc_tcp.c: Likewise.
63127         * sunrpc/svc_udp.c: Likewise.
63128         * sunrpc/svc_unix.c: Likewise.
63129         * sunrpc/svcauth_des.c: Likewise.
63130         * sunrpc/xcrypt.c: Likewise.
63131         * sunrpc/xdr.c: Likewise.
63132         * sunrpc/xdr_array.c: Likewise.
63133         * sunrpc/xdr_float.c: Likewise.
63134         * sunrpc/xdr_intXX_t.c: Likewise.
63135         * sunrpc/xdr_mem.c: Likewise.
63136         * sunrpc/xdr_rec.c: Likewise.
63137         * sunrpc/xdr_ref.c: Likewise.
63138         * sunrpc/xdr_sizeof.c: Likewise.
63139         * sunrpc/xdr_stdio.c: Likewise.
63140
63141 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63142
63143         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
63144         change.  Update copyright years.
63145
63146 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63147
63148         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
63149
63150 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
63151             Joseph Myers  <joseph@codesourcery.com>
63152             Paul Pluzhnikov  <ppluzhnikov@google.com>
63153
63154         [BZ #14012]
63155         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
63156         requiring rpcgen.
63157         [cross-compiling] (extra-libs): Likewise.
63158         [cross-compiling] (extra-libs-others): Likewise.
63159         [cross-compiling] (librpcsvc-routines): Likewise.
63160         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
63161         [cross-compiling] (omit-deps): Likewise.
63162         (sunrpc-CPPFLAGS): New variable.
63163         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
63164         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
63165         (cross-rpcgen-objs): New variable.
63166         (extra-objs): Append $(cross-rpcgen-objs).
63167         ($(cross-rpcgen-objs)): New rule.
63168         ($(objpfx)cross-rpcgen): Likewise.
63169         (rpcgen-cmd): Define to use $(built-program-file).  Expand
63170         comment.
63171         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
63172         ($(objpfx)x%.stmp): Likewise.
63173         * sunrpc/proto.h [IS_IN_build] (_): Define.
63174         [IS_IN_build] (_libc_intl_domainname): Likewise.
63175
63176 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63177
63178         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
63179         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
63180         and R_X86_64_TPOFF64.
63181
63182 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63183
63184         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
63185         sysdeps/unix/sysv/syscalls.list.
63186         (stime): Likewise.
63187         (utime): Likewise.
63188         * sysdeps/unix/sysv/syscalls.list: Remove file.
63189
63190 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63191
63192         [BZ #3440]
63193         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
63194         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
63195         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
63196         (__LC_IDENTIFICATION): Make these macros useful in #if
63197         expressions, as required by C99.
63198
63199 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
63200
63201         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
63202         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
63203         after this.
63204
63205 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
63206
63207         * stdlib/longlong.h: Updated from GCC.
63208
63209 2012-05-09  Andreas Jaeger  <aj@suse.de>
63210
63211         * nscd/nscd.c (run_modes): Make named enum, reorder so that
63212         default is first entry.
63213         (run_mode): Set type.
63214         (main): Remove informal message about syslog.
63215         (options): Fix typo.
63216
63217         [BZ #14053]
63218         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
63219         to asm.
63220         (lrint): Likewise.
63221         (llrintf): Likewise.
63222         (llrint): Likewise.
63223         (rint): Likewise.
63224         (rintf): Likewise.
63225         (nearbyint): Likewise.
63226         (nearbyintf): Likewise.
63227
63228 2012-05-09  Andreas Jaeger  <aj@suse.de>
63229             Pedro Alves  <palves@redhat.com>
63230
63231         * nscd/nscd.c (run_mode): Use enum.
63232         (main): Cleanup coding style issue.
63233
63234 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
63235             Andreas Jaeger  <aj@suse.de>
63236
63237         * nscd/nscd.c (go_background): Replaced with...
63238         (run_mode): ... this.
63239         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
63240         (options): Add -F --foreground.
63241         (main): Implement it.
63242         (parse_opt): Parse it.
63243
63244 2012-05-09  Andreas Jaeger  <aj@suse.de>
63245
63246         [BZ #14083]
63247         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
63248         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
63249         -Wconversion warning.
63250         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
63251         Likewise.
63252
63253 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
63254
63255         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
63256         == 0.
63257         (LC_ALL): Use macro-int-constant.
63258         (LC_COLLATE): Likewise.
63259         (LC_CTYPE): Likewise.
63260         (LC_MESSAGES): Likewise.
63261         (LC_MONETARY): Likewise.
63262         (LC_NUMERIC): Likewise.
63263         (LC_TIME): Likewise.
63264         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
63265         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63266         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63267         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
63268         Specify type.
63269         [C99-based standards] (float_t): Expect type.
63270         [C99-based standards] (double_t): Expect type.
63271         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
63272         type.
63273         [C99-based standards] (HUGE_VALL): Likewise.
63274         [C99-based standards] (INFINITY): Likewise.
63275         [C99-based standards] (NAN): Likewise.
63276         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
63277         [C99-based standards] (FP_NAN): Likewise.
63278         [C99-based standards] (FP_NORMAL): Likewise.
63279         [C99-based standards] (FP_SUBNORMAL): Likewise.
63280         [C99-based standards] (FP_ZERO): Likewise.
63281         [C99-based standards] (FP_FAST_FMA): Use
63282         optional-macro-int-constant.  Specify type.  Require == 1.
63283         [C99-based standards] (FP_FAST_FMAF): Likewise.
63284         [C99-based standards] (FP_FAST_FMAL): Likewise.
63285         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
63286         [C99-based standards] (FP_ILOGBNAN): Likewise.
63287         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
63288         Specify type.
63289         [C99-based standards] (MATH_ERREXCEPT): Likewise.
63290         [C99-based standards] (math_errhandling): Specify type.
63291         [ISO99 || ISO11] (signgam): Do not allow.
63292         [non-C99-based standards] (copysignf): Do not allow.
63293         [non-C99-based standards] (exp2f): Likewise.
63294         [non-C99-based standards] (log2f): Likewise.
63295         [non-C99-based standards] (modff): Allow.
63296         [non-C99-based standards] (erff): Do not allow.
63297         [non-C99-based standards] (erfcf): Likewise.
63298         [non-C99-based standards] (gammaf): Likewise.
63299         [non-C99-based standards] (hypotf): Likewise.
63300         [non-C99-based standards] (j0f): Likewise.
63301         [non-C99-based standards] (j1f): Likewise.
63302         [non-C99-based standards] (jnf): Likewise.
63303         [non-C99-based standards] (lgammaf): Likewise.
63304         [non-C99-based standards] (tgammaf): Likewise.
63305         [non-C99-based standards] (y0f): Likewise.
63306         [non-C99-based standards] (y1f): Likewise.
63307         [non-C99-based standards] (ynf): Likewise.
63308         [non-C99-based standards] (isnanf): Likewise.
63309         [non-C99-based standards] (acoshf): Likewise.
63310         [non-C99-based standards] (asinhf): Likewise.
63311         [non-C99-based standards] (atanhf): Likewise.
63312         [non-C99-based standards] (cbrtf): Likewise.
63313         [non-C99-based standards] (expm1f): Likewise.
63314         [non-C99-based standards] (ilogbf): Likewise.
63315         [non-C99-based standards] (log1pf): Likewise.
63316         [non-C99-based standards] (logbf): Likewise.
63317         [non-C99-based standards] (nextafterf): Likewise.
63318         [non-C99-based standards] (remainderf): Likewise.
63319         [non-C99-based standards] (rintf): Likewise.
63320         [non-C99-based standards] (scalbf): Likewise.
63321         [non-C99-based standards] (copysignl): Likewise.
63322         [non-C99-based standards] (exp2l): Likewise.
63323         [non-C99-based standards] (log2l): Likewise.
63324         [non-C99-based standards] (modfl): Allow.
63325         [non-C99-based standards] (erfl): Do not allow.
63326         [non-C99-based standards] (erfcl): Likewise.
63327         [non-C99-based standards] (gammal): Likewise.
63328         [non-C99-based standards] (hypotl): Likewise.
63329         [non-C99-based standards] (j0l): Likewise.
63330         [non-C99-based standards] (j1l): Likewise.
63331         [non-C99-based standards] (jnl): Likewise.
63332         [non-C99-based standards] (lgammal): Likewise.
63333         [non-C99-based standards] (tgammal): Likewise.
63334         [non-C99-based standards] (y0l): Likewise.
63335         [non-C99-based standards] (y1l): Likewise.
63336         [non-C99-based standards] (ynl): Likewise.
63337         [non-C99-based standards] (isnanl): Likewise.
63338         [non-C99-based standards] (acoshl): Likewise.
63339         [non-C99-based standards] (asinhl): Likewise.
63340         [non-C99-based standards] (atanhl): Likewise.
63341         [non-C99-based standards] (cbrtl): Likewise.
63342         [non-C99-based standards] (expm1l): Likewise.
63343         [non-C99-based standards] (ilogbl): Likewise.
63344         [non-C99-based standards] (log1pl): Likewise.
63345         [non-C99-based standards] (logbl): Likewise.
63346         [non-C99-based standards] (nextafterl): Likewise.
63347         [non-C99-based standards] (remainderl): Likewise.
63348         [non-C99-based standards] (rintl): Likewise.
63349         [non-C99-based standards] (scalbl): Likewise.
63350         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63351         [non-C99-based standards] (FP_*): Do not allow.
63352         [C99-based standards] (FP_*): Change to
63353         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63354         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63355         allow.
63356         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
63357         (SIG_ERR): Likewise.
63358         [X/Open-based standards] (SIG_HOLD): Likewise.
63359         (SIG_IGN): Likewise.
63360         (SIGABRT): Use macro-int-constant.  Specify type.  Require
63361         positive value.
63362         (SIGFPE): Likewise.
63363         (SIGILL): Likewise.
63364         (SIGINT): Likewise.
63365         (SIGSEGV): Likewise.
63366         (SIGTER): Likewise.
63367         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
63368         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
63369         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
63370         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
63371         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
63372         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
63373         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
63374         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
63375         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
63376         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
63377         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
63378         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
63379         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
63380         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
63381         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
63382         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
63383         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
63384         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
63385         [X/Open-based standards] (SIGTRAP): Likewise.
63386         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
63387         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
63388         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
63389         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
63390         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63391         allow.
63392
63393 2012-05-08  Ian Wienand  <ianw@vmware.com>
63394
63395         [BZ #14080]
63396         * time/tzset.c (__tzset_parse_tz): Update default rules for
63397         daylight time changes in the Energy Policy Act of 2005.
63398
63399 2012-05-09  Andreas Jaeger  <aj@suse.de>
63400
63401         [BZ #13983]
63402         * elf/ldconfig.c (parse_conf): Change string to make clear that
63403         ldconfig only issued a warning if ld.so.conf does not exist.
63404
63405 2012-05-08  David S. Miller  <davem@davemloft.net>
63406
63407         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
63408         movxtod instead of popping the value on the stack.
63409
63410         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63411
63412 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
63413
63414         * config.h.in: Add HAVE_ARM_PCS_VFP.
63415
63416 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
63417
63418         [BZ #13979]
63419         * include/features.h: Warn if user requests __FORTIFY_SOURCE
63420         checking but the checks are disabled for any reason.
63421
63422 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
63423
63424         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
63425         and ELF64_R_TYPE with ELFW(R_TYPE).
63426
63427 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
63428
63429         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
63430         (ulimit): Likewise.
63431
63432         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
63433         (settimeofday): Likewise.
63434
63435 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
63436
63437         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
63438         a struct th_u2 inside the union, and move tu_block/tu_code into
63439         a new th_u3 union of tu_block/tu_code inside of that.  Move
63440         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
63441         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
63442         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
63443         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
63444         (th_stuff): Change to th_u1.tu_stuff.
63445         (th_data): Define.
63446         (th_msg): Change to th_u1.th_u2.tu_data.
63447
63448 2012-05-07  David S. Miller  <davem@davemloft.net>
63449
63450         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63451
63452         [BZ #14074]
63453         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
63454         (SETUP_PIC_REG): Use it.
63455         (SETUP_PIC_REG_LEAF): Use it.
63456
63457 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
63458
63459         [BZ #13885]
63460         [BZ #13923]
63461         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63462         USE_AS_EXPM1L.
63463         (EXPL_FINITE): Likewise.
63464         (FLDLOG): Likewise.
63465         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
63466         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
63467         e_expl.S.
63468         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63469         USE_AS_EXPM1L.
63470         (EXPL_FINITE): Likewise.
63471         (FLDLOG): Likewise.
63472         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
63473         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
63474         e_expl.S.
63475         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
63476         test of -max_value argument for long double.
63477         * sysdeps/i386/fpu/libm-test-ulps: Update.
63478         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63479
63480 2012-05-06  David S. Miller  <davem@davemloft.net>
63481
63482         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
63483         quad soft-float symbols whose references which are compiler
63484         generated.
63485         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
63486
63487 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
63488
63489         [BZ #13884]
63490         [BZ #13914]
63491         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63492         USE_AS_EXP10L.
63493         (EXPL_FINITE): Likewise.
63494         (FLDLOG): Likewise.
63495         (c0): Likewise.
63496         (c1): Likewise.
63497         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
63498         Adjust comments for base varying.
63499         (__expl_finite): Change alias to EXPL_FINITE.
63500         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
63501         e_expl.S.
63502         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
63503         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
63504         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
63505         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
63506         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
63507         USE_AS_EXP10L.
63508         (EXPL_FINITE): Likewise.
63509         (FLDLOG): Likewise.
63510         (c0): Likewise.
63511         (c1): Likewise.
63512         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
63513         Adjust comments for base varying.
63514         (__expl_finite): Change alias to EXPL_FINITE.
63515         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
63516         tests for bugs.
63517         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
63518
63519         [BZ #14064]
63520         * math/libm-test.inc (check_float_internal): Correct ulp
63521         calculation for subnormal expected results.
63522
63523 2012-05-06  Andreas Jaeger  <aj@suse.de>
63524
63525         * Makeconfig (+math-flags): New, set to -frounding-math.
63526         (+cflags): Add +math-flags so that all of glibc gets compiled with
63527         it.
63528
63529         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
63530
63531 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
63532
63533         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
63534         Disable one test.
63535
63536         [BZ #13787]
63537         [BZ #13922]
63538         [BZ #14036]
63539         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
63540         (__ieee754_expl): Allow for and saturate large arguments.
63541         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
63542         (u_threshold): Likewise.
63543         (__exp): Call __ieee754_exp before checking for overflow and
63544         underflow.
63545         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
63546         (u_threshold): Likewise.
63547         (__expf): Call __ieee754_expf before checking for overflow and
63548         underflow.
63549         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
63550         (u_threshold): Likewise.
63551         (__expl): Call __ieee754_expl before checking for overflow and
63552         underflow.
63553         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
63554         (__ieee754_expl): Allow for and saturate large arguments.
63555         * math/libm-test.inc (exp_test): Add another test.  Do not allow
63556         missing overflow exception on overflow.
63557         (expm1_test): Do not allow missing overflow exception on overflow.
63558
63559         * sysdeps/i386/fpu/e_expl.c: Move to ...
63560         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
63561         rather than using inline asm.
63562         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
63563         * sysdeps/x86_64/fpu/e_expl.S: Copy from
63564         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
63565
63566         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
63567         (nice): Likewise.
63568         (poll): Likewise.
63569         (signal): Likewise.
63570         (time): Likewise.
63571         (times): Likewise.
63572
63573 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63574
63575         * sysdeps/unix/syscalls.list (adjtime): Add entry from
63576         sysdeps/unix/common/syscalls.list.
63577         (fchmod): Likewise.
63578         (fchown): Likewise.
63579         (ftruncate): Likewise.
63580         (getrusage): Likewise.
63581         (gettimeofday): Likewise.
63582         (setpgid): Likewise.
63583         (setregid): Likewise.
63584         (setreuid): Likewise.
63585         (sigaction): Likewise.
63586         (truncate): Likewise.
63587         (vhangup): Likewise.
63588         * sysdeps/unix/common/syscalls.list: Remove file.
63589         * sysdeps/unix/bsd/Implies: Don't include unix/common.
63590         * sysdeps/unix/sysv/linux/Implies: Likewise.
63591
63592 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
63593
63594         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
63595         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
63596         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
63597         Moved to ...
63598         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
63599         Here.
63600         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
63601         to ...
63602         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
63603         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
63604         to ...
63605         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
63606         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
63607         to ...
63608         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
63609         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
63610         to ...
63611         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
63612         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
63613         to ...
63614         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
63615         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
63616         to ...
63617         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
63618         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
63619         to ...
63620         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
63621         Here.
63622         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
63623         to ...
63624         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
63625         Here.
63626         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
63627         to ...
63628         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
63629         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
63630         Moved to ...
63631         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
63632         Here.
63633         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
63634         to ...
63635         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
63636
63637 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63638
63639         * sysdeps/unix/common/bits/dirent.h: Remove file.
63640         * sysdeps/unix/common/bits/fcntl.h: Likewise.
63641
63642         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
63643         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
63644         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
63645         * sysdeps/unix/bsd/isatty.c: Likewise.
63646         * sysdeps/unix/bsd/tcdrain.c: Likewise.
63647         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
63648         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
63649
63650 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63651
63652         [BZ #13563]
63653         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
63654         long double comparison inaccuracies.
63655         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
63656         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
63657
63658 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
63659
63660         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
63661         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
63662
63663 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
63664
63665         [BZ #14049]
63666         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
63667         nonzero digits before rounding a hex value.
63668         * stdlib/tst-strtod.c (tests): Add another test.
63669
63670 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
63671
63672         * sysdeps/s390/fpu/libm-test-ulps: Update.
63673
63674 2012-05-03  Andreas Jaeger  <aj@suse.de>
63675
63676         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
63677         does not get optimized out.
63678         (malloc_opt_barrier): New.
63679
63680 2012-05-03  Andreas Jaeger  <aj@suse.de>
63681             Roland McGrath  <roland@hack.frob.com>
63682
63683         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
63684         intermediate file deletion.
63685         (generated): Add .symlist files.
63686
63687 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
63688
63689         [BZ #13775]
63690         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
63691         Redirect under this condition.
63692         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
63693         [__USE_GNU] (__dprintf_chk): Not under this condition.
63694         [__USE_GNU] (__vdprintf_chk): Likewise.
63695         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
63696         under this condition.
63697         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
63698         [__USE_XOPEN2K8] (dprintf): Define under this condition.
63699         [__USE_XOPEN2K8] (vdprintf): Likewise.
63700         [__USE_GNU] (__dprintf_chk): Not under this condition.
63701         [__USE_GNU] (__vdprintf_chk): Likewise.
63702         [__USE_GNU] (dprintf): Likewise.
63703         [__USE_GNU] (vdprintf): Likewise.
63704
63705 2012-05-03  Roland McGrath  <roland@hack.frob.com>
63706
63707         * elf/Makefile (common-generated): Set this instead of generated for
63708         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
63709         $(all-built-dso)-derived lists.
63710
63711 2012-05-03  Andreas Jaeger  <aj@suse.de>
63712
63713         * sysdeps/i386/fpu/libm-test-ulps: Update.
63714
63715         * FAQ: Removed.
63716         * FAQ.in: Likewise.
63717         * scripts/gen-FAQ.pl: Likewise.
63718         * manual/install.texi (Installation): Point to online location of
63719         FAQ.
63720         * Makefile (files-for-dist): Remove FAQ.
63721         (FAQ): Remove.
63722
63723 2012-05-02  Allan McRae  <allan@archlinux.org>
63724
63725         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
63726         (LDFLAGS-reldepmod5.so): Likewise.
63727         (LDFLAGS-reldep6mod1.so): Likewise.
63728         (LDFLAGS-reldep6mod4.so): Likewise.
63729         (LDFLAGS-reldep8mod3.so): Likewise.
63730         (LDFLAGS-unload4mod1.so): Likewise.
63731         (LDFLAGS-unload4mod2.so): Likewise.
63732         (LDFLAGS-tst-initorder): Likewise.
63733         (LDFLAGS-tst-initordera2.so): Likewise.
63734         (LDFLAGS-tst-initordera3.so): Likewise.
63735         (LDFLAGS-tst-initordera4.so): Likewise.
63736         (LDFLAGS-tst-initorderb2.so): Likewise.
63737         (LDFLAGS-noload): Likewise.
63738         (LDFLAGS-next): Likewise.
63739         (LDFLAGS-order2mod1.so): Likewise.
63740         (LDFLAGS-order2mod2.so): Likewise.
63741         (LDFLAGS-tst-initorder2): Likewise.
63742         (LDFLAGS-tst-initorder2a.so): Likewise.
63743         (LDFLAGS-tst-initorder2b.so): Likewise.
63744         (LDFLAGS-tst-initorder2c.so): Likewise.
63745         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
63746
63747 2012-05-02  David S. Miller  <davem@davemloft.net>
63748
63749         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63750
63751 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
63752
63753         [BZ #14055]
63754         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
63755
63756 2012-05-02  Andreas Jaeger  <aj@suse.de>
63757
63758         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
63759         since we manipulate rounding mode.
63760         (CPPFLAGS-test-idouble.c): Likewise.
63761         (CPPFLAGS-test-ifloat.c): Likewise.
63762         (CFLAGS-test-ldouble.c): Likewise.
63763         (CFLAGS-test-double.c): Likewise.
63764         (CFLAGS-test-float.c): Likewise.
63765         (CFLAGS-test-misc.c): Likewise.
63766         (CFLAGS-test-test-fenv.c): Likewise.
63767
63768 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63769
63770         [BZ #2550]
63771         [BZ #2570]
63772         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
63773         comparisons to determine direction to adjust input.
63774
63775 2012-05-01  Roland McGrath  <roland@hack.frob.com>
63776
63777         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
63778         output to the target.
63779
63780         * scripts/localplt.awk: New file.
63781         * elf/Makefile ($(objpfx)check-localplt): Target removed.
63782         (check-localplt-CFLAGS): Variable removed.
63783         ($(all-built-dso:=.jmprel)): New static pattern rule.
63784         (generated): Add those targets.
63785         (localplt-built-dso): New variable.
63786         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
63787
63788         * elf/check-localplt.c: File removed.
63789
63790         * scripts/check-execstack.awk: New file.
63791         * elf/Makefile ($(objpfx)check-execstack): Target removed.
63792         (check-execstack-CFLAGS): Variable removed.
63793         ($(objpfx)check-execstack.h): Target removed.
63794         ($(objpfx)execstack-default): New target.
63795         (generated): Add that instead of check-execstack.h.
63796         ($(all-built-dso:=.phdr)): New static pattern rule.
63797         (generated): Add those targets.
63798         * elf/check-execstack.c: File removed.
63799
63800         * scripts/check-textrel.awk: New file.
63801         * elf/Makefile ($(objpfx)check-textrel): Target removed.
63802         (check-textrel-CFLAGS): Variable removed.
63803         (all-built-dso): Use := to define.o
63804         ($(all-built-dso:=.dyn)): New static pattern rule.
63805         (generated): Add those targets.
63806         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
63807         * config.make.in (READELF): New substituted variable.
63808         * elf/check-textrel.c: File removed.
63809
63810 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
63811
63812         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63813         allow.
63814         * conform/data/ctype.h-data [C99-based standards] (isblank):
63815         Expect function.
63816         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
63817         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
63818         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63819         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
63820         Specify type.  Require positive value.
63821         (EILSEQ): Likewise.
63822         (ERANGE): Likewise.
63823         [ISO || POSIX] (EILSEQ): Do not expect.
63824         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
63825         Specify type.  Require positive value.
63826         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
63827         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
63828         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
63829         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
63830         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
63831         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
63832         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
63833         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
63834         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
63835         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
63836         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
63837         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
63838         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
63839         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
63840         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
63841         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
63842         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
63843         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
63844         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
63845         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
63846         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
63847         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
63848         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
63849         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
63850         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
63851         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
63852         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
63853         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
63854         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
63855         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
63856         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
63857         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
63858         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
63859         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
63860         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
63861         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
63862         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
63863         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
63864         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
63865         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
63866         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
63867         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
63868         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
63869         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
63870         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
63871         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
63872         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
63873         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
63874         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
63875         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
63876         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
63877         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
63878         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
63879         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
63880         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
63881         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
63882         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
63883         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
63884         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
63885         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
63886         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
63887         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
63888         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
63889         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
63890         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
63891         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
63892         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
63893         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
63894         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
63895         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
63896         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
63897         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
63898         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
63899         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
63900         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
63901         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
63902         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
63903         Require >= 2.
63904         (FLT_ROUNDS): Expect as macro, not constant.
63905         (FLT_MANT_DIG): Use macro-int-constant.
63906         (DBL_MANT_DIG): Likewise.
63907         (LDBL_MANT_DIG): Likewise.
63908         (FLT_DIG): Likewise.
63909         (DBL_DIG): Likewise.
63910         (LDBL_DIG): Likewise.
63911         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
63912         (DBL_MIN_EXP): Likewise.
63913         (LDBL_MIN_EXP): Likewise.
63914         (FLT_MAX_EXP): Use macro-int-constant.
63915         (DBL_MAX_EXP): Likewise.
63916         (LDBL_MAX_EXP): Likewise.
63917         (FLT_MAX_10_EXP): Likewise.
63918         (DBL_MAX_10_EXP): Likewise.
63919         (LDBL_MAX_10_EXP): Likewise.
63920         (FLT_MAX): Use macro-constant.
63921         (DBL_MAX): Likewise.
63922         (LDBL_MAX): Likewise.
63923         (FLT_EPSILON): Use macro-constant.  Give upper bound.
63924         (DBL_EPSILON): Likewise.
63925         (LDBL_EPSILON): Likewise.
63926         (FLT_MIN): Likewise.
63927         (DBL_MIN): Likewise.
63928         (LDBL_MIN): Likewise.
63929         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
63930         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
63931         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
63932         [ISO11] (FLT_HAS_SUBNORM): Likewise.
63933         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
63934         [ISO11] (DBL_DECIMAL_DIG): Likewise.
63935         [ISO11] (FLT_DECIMAL_DIG): Likewise.
63936         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
63937         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
63938         [ISO11] (FLT_TRUE_MIN): Likewise.
63939         [ISO11] (LDBL_TRUE_MIN): Likewise.
63940         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63941         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
63942         (SCHAR_MIN): Use macro-int-constant.  Specify type.
63943         (SCHAR_MAX): Likewise.
63944         (UCHAR_MAX): Likewise.
63945         (CHAR_MIN): Likewise.
63946         (CHAR_MAX): Likewise.
63947         (MB_LEN_MAX): Use macro-int-constant.
63948         (SHRT_MIN): Use macro-int-constant.  Specify type.
63949         (SHRT_MAX): Likewise.
63950         (USHRT_MAX): Likewise.
63951         (INT_MAX): Likewise.
63952         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
63953         bound negative.
63954         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
63955         bound with "U".
63956         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
63957         bound with "L".
63958         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
63959         bound negative.  Suffix upper bound with "L".
63960         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
63961         bound with "UL".
63962         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
63963         Specify type.
63964         [C99-based standards] (LLONG_MAX): Likewise.
63965         [C99-based standards] (ULLONG_MAX): Likewise.
63966         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
63967         == 0.
63968         [ISO11] (max_align_t): Require type.
63969         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63970
63971         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
63972         from $CFLAGS, without defining away __attribute__ calls.
63973         (checknamespace): Use $CFLAGS_namespace.
63974
63975         * conform/conformtest.pl (@keywords): Only include C99 keywords
63976         for standards based on C99 or C11.
63977
63978         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
63979         Disable tests.
63980         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
63981         UNIX98]: Likewise.
63982
63983         * conform/conformtest.pl: Handle "macro-int-constant" and test for
63984         usability of symbols in #if.
63985
63986         * conform/conformtest.pl: If macro or constant types start
63987         "promoted:", expect the symbol to be of the following type
63988         promoted by the integer promotions.
63989
63990         * conform/conformtest.pl: Parse all "constant" and "macro" lines
63991         in one place.  Also handle "macro-constant".
63992
63993         * conform/conformtest.pl: Only accept expected macro values with
63994         "==".  Parse all "macro" lines in one place.
63995         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
63996
63997         * conform/conformtest.pl: Handle braced types on "constant" lines
63998         instead of handling "typed-constant".
63999         * conform/data/signal.h-data: Use "constant" instead of
64000         "typed-constant".
64001
64002         * conform/conformtest.pl: Handle "optional-" at start of lines in
64003         one place rather than duplicating several cases.  Handle each
64004         format of "macro" line with initial "optional-".
64005
64006         * conform/conformtest.pl: Only accept expected constant or
64007         optional-constant values with "==".  Parse all "constant" lines in
64008         one place.  Parse all "optional-constant" lines in one place.
64009         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
64010         * conform/data/fmtmsg.h-data: Likewise.
64011         * conform/data/netinet/in.h-data: Likewise.
64012         * conform/data/tar.h-data: Likewise.
64013         * conform/data/limits.h-data: Use "==" form on "constant" and
64014         "optional-constant" lines.
64015
64016         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
64017         Use -std=c99 for XOPEN2K.
64018         (@knownproblems): Remove.
64019         (newtoken): Don't check %isknown.
64020
64021         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
64022         Do not expect macro.
64023         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
64024         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
64025         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
64026         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
64027         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
64028         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
64029         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
64030         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
64031         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
64032         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
64033         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
64034         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
64035         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
64036         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
64037         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
64038         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
64039         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
64040         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
64041         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
64042         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
64043         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
64044         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
64045         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
64046         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
64047         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
64048         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
64049         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
64050         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
64051         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
64052         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
64053         [XPG3] (acosh): Likewise.
64054         [XPG3] (asinh): Likewise.
64055         [XPG3] (atanh): Likewise.
64056         [XPG3] (cbrt): Likewise.
64057         [XPG3] (expm1): Likewise.
64058         [XPG3] (ilogb): Likewise.
64059         [XPG3] (log1p): Likewise.
64060         [XPG3] (logb): Likewise.
64061         [XPG3] (nextafter): Likewise.
64062         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
64063         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
64064         [XPG3] (remainder): Likewise.
64065         [XPG3] (rint): Likewise.
64066         [XPG3 || XPG4 || UNIX98] (round): Likewise.
64067         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
64068         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
64069         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
64070         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
64071         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
64072         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
64073         [UNIX98 || XOPEN2K] (scalb): Expect.
64074         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
64075         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
64076         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
64077         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
64078         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
64079         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
64080         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
64081         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
64082         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
64083         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
64084         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
64085         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
64086         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
64087         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
64088         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
64089         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
64090         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
64091         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
64092         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
64093         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
64094         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
64095         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
64096         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
64097         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
64098         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
64099         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
64100         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
64101         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
64102         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
64103         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
64104         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
64105         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
64106         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
64107         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
64108         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
64109         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
64110         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
64111         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
64112         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
64113         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
64114         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
64115         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
64116         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
64117         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
64118         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
64119         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
64120         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
64121         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
64122         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
64123         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
64124         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
64125         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
64126         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
64127         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
64128         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
64129         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
64130         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
64131         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
64132         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
64133         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
64134         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
64135         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
64136         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
64137         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
64138         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
64139         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
64140         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
64141         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
64142         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
64143         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
64144         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
64145         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
64146         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
64147         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
64148         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
64149         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
64150         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
64151         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
64152         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
64153         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
64154         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
64155         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
64156         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
64157         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
64158         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
64159         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
64160         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
64161         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
64162         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
64163         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
64164         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
64165         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
64166         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
64167         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
64168         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
64169         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
64170         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
64171         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
64172         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
64173         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
64174         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
64175         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
64176         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
64177         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
64178         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
64179         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
64180         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
64181         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
64182         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
64183         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
64184         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
64185         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
64186         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
64187         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
64188         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
64189         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
64190         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
64191         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
64192         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
64193         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
64194         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
64195         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
64196         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
64197         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
64198         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
64199         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
64200         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
64201         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
64202         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
64203         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
64204         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
64205         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
64206         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
64207         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
64208         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
64209         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
64210         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
64211
64212         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
64213         _XOPEN_SOURCE_EXTENDED for XPG4.
64214
64215         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
64216
64217         * Makeconfig (localtime): Remove variable.
64218         (inst_localtime-file): Likewise.
64219
64220 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64221
64222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
64223         Update.
64224         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
64225         Update.
64226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
64227         Update.
64228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
64229         Update.
64230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
64231         Update.
64232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
64233         Update.
64234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
64235         Update.
64236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
64237         Update.
64238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64239         Update.
64240
64241 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64242
64243         [BZ #2550]
64244         [BZ #2570]
64245         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
64246         comparisons to determine direction to adjust input.
64247         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
64248         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
64249         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
64250         Likewise.
64251         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
64252         Likewise.
64253         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
64254         Likewise.
64255         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
64256         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
64257         Likewise.
64258         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
64259         Likewise.
64260         * math/libm-test.inc (nexttoward_test): Add more tests.
64261
64262 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64263
64264         [BZ #14040]
64265         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
64266         in version GLIBC_2.1, not GLIBC_2.0.
64267         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
64268         Likewise.
64269
64270 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
64271
64272         [BZ #13942]
64273         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
64274         (1 - x) * (1 + x).
64275         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64276         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
64277         * math/libm-test.inc (acos_test): Add more tests.
64278         (asin_test): Likewise.
64279         * sysdeps/i386/fpu/libm-test-ulps: Update.
64280         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64281
64282         [BZ #14034]
64283         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
64284         of square root.
64285         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
64286         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64287         * math/libm-test.inc (acos_test_tonearest): New function.
64288         (acos_test_towardzero): Likewise.
64289         (acos_test_downward): Likewise.
64290         (acos_test_upward): Likewise.
64291         (asin_test_tonearest): Likewise.
64292         (asin_test_towardzero): Likewise.
64293         (asin_test_downward): Likewise.
64294         (asin_test_upward): Likewise.
64295         (main): Call the new functions.
64296         * sysdeps/i386/fpu/libm-test-ulps: Update.
64297         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64298
64299         [BZ #13884]
64300         [BZ #13924]
64301         * math/e_exp10.c: Include <float.h>.
64302         (__ieee754_exp10): Handle underflow here rather than multiplying
64303         large negative argument by M_LN10.
64304         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
64305         of __ieee754_expf.
64306         * math/e_exp10l.c: Include <float.h>.
64307         (__ieee754_exp10l): Handle underflow here rather than multiplying
64308         large negative argument by M_LN10l.
64309         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
64310         spurious overflow exception on underflow.
64311
64312 2012-04-29  Marek Polacek  <polacek@redhat.com>
64313
64314         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
64315         (__fortify_function): New macro.
64316         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
64317         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
64318         __extern_always_inline.
64319         * libio/bits/stdio2.h: Likewise.
64320         * libio/bits/stdio.h: Likewise.
64321         * string/string.h: Likewise.
64322         * string/bits/string3.h: Likewise.
64323         * include/stdio.h: Likewise.
64324         * stdlib/bits/stdlib.h: Likewise.
64325         * stdlib/stdlib.h: Likewise.
64326         * rt/bits/mqueue2.h: Likewise.
64327         * rt/mqueue.h: Likewise.
64328         * posix/bits/unistd.h: Likewise.
64329         * posix/unistd.h: Likewise.
64330         * io/bits/poll2.h: Likewise.
64331         * io/bits/fcntl2.h: Likewise.
64332         * io/fcntl.h: Likewise.
64333         * io/sys/poll.h: Likewise.
64334         * misc/bits/syslog.h: Likewise.
64335         * misc/bits/syslog-ldbl.h: Likewise.
64336         * misc/sys/syslog.h: Likewise.
64337         * socket/bits/socket2.h: Likewise.
64338         * socket/sys/socket.h: Likewise.
64339         * debug/tst-chk1.c: Likewise.
64340         * wcsmbs/bits/wchar2.h: Likewise.
64341         * wcsmbs/bits/wchar-ldbl.h: Likewise.
64342         * wcsmbs/wchar.h: Likewise.
64343
64344 2012-04-29  Andreas Jaeger  <aj@suse.de>
64345
64346         * Makerules (tests): Remove enable-check-abi protection.
64347         (check-abi-warn): Remove.
64348         (check-abi-%): Remove check-abi-warn usage.
64349
64350         * configure.in: Remove check-abi configure option.
64351         * configure: Regenerated.
64352         * config.make.in (enable-check-abi): Remove.
64353
64354 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
64355
64356         [BZ #14033]
64357         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
64358         double functions to double *_finite functions.
64359
64360         [BZ #13941]
64361         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
64362         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
64363         LDBL_MIN_EXP.
64364         * stdio-common/Makefile (tests): Add tst-sprintf3.
64365         * stdio-common/tst-sprintf3.c: New file.
64366
64367         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
64368         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
64369
64370 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
64371
64372         * conform/conformtest.pl: Remove duplicate typed-constant
64373         handling.
64374
64375 2012-04-28  David S. Miller  <davem@davemloft.net>
64376
64377         * Makerules (%.abilist): Add vpath on sysdep_dirs.
64378         (check-abi-%): Remove AWK script prerequisite and explicit
64379         abilist directory.
64380         (check-abi): Rewrite to just diff the symlist with the abilist.
64381         (config-tls, config-abi-config): Delete, no longer used.
64382         (update-abi-%): Remove AWK script and explicit abilist directory.
64383         (update-abi): Rewrite to simply compare and conditionally copy the
64384         symlist and the sysdep abilist file.  Remove update-abi-config
64385         checks.
64386         * abilist/ld.abilist: Remove.
64387         * abilist/libBrokenLocale.abilist: Remove.
64388         * abilist/libanl.abilist: Remove.
64389         * abilist/libcrypt.abilist: Remove.
64390         * abilist/libdl.abilist: Remove.
64391         * abilist/librt.abilist: Remove.
64392         * abilist/libthread_db.abilist: Remove.
64393         * abilist/libutil.abilist: Remove.
64394         * scripts/extract-abilist.awk: Remove.
64395         * scripts/merge-abilist.awk: Remove.
64396         * sysdeps/generic/libcidn.abilist: New file.
64397         * sysdeps/generic/libnss_compat.abilist: New file.
64398         * sysdeps/generic/libnss_db.abilist: New file.
64399         * sysdeps/generic/libnss_dns.abilist: New file.
64400         * sysdeps/generic/libnss_files.abilist: New file.
64401         * sysdeps/generic/libnss_hesiod.abilist: New file.
64402         * sysdeps/generic/libnss_nis.abilist: New file.
64403         * sysdeps/generic/libnss_nisplus.abilist: New file.
64404         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
64405         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
64406         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
64407         file.
64408         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
64409         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
64410         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
64411         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
64412         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
64413         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
64414         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
64415         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
64416         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
64417         file.
64418         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
64419         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
64420         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
64421         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
64422         file.
64423         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
64424         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
64425         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
64426         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
64427         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
64428         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
64429         file.
64430         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
64431         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
64432         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
64433         file.
64434         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
64435         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
64436         New file.
64437         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
64438         New file.
64439         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
64440         New file.
64441         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
64442         New file.
64443         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
64444         New file.
64445         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
64446         New file.
64447         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
64448         New file.
64449         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
64450         New file.
64451         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
64452         New file.
64453         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
64454         New file.
64455         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
64456         New file.
64457         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
64458         New file.
64459         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
64460         New file.
64461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
64462         file.
64463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
64464         New file.
64465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
64466         New file.
64467         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
64468         file.
64469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
64470         New file.
64471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
64472         New file.
64473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
64474         file.
64475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
64476         New file.
64477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64478         New file.
64479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
64480         New file.
64481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
64482         New file.
64483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
64484         New file.
64485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
64486         New file.
64487         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
64488         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
64489         file.
64490         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
64491         New file.
64492         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
64493         file.
64494         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
64495         file.
64496         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
64497         file.
64498         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
64499         file.
64500         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
64501         file.
64502         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
64503         New file.
64504         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
64505         file.
64506         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
64507         file.
64508         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
64509         New file.
64510         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
64511         file.
64512         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
64513         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
64514         file.
64515         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
64516         New file.
64517         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
64518         file.
64519         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
64520         file.
64521         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
64522         file.
64523         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
64524         file.
64525         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
64526         file.
64527         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
64528         New file.
64529         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
64530         file.
64531         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
64532         file.
64533         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
64534         New file.
64535         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
64536         file.
64537         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
64538         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
64539         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
64540         file.
64541         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
64542         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
64543         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
64544         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
64545         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
64546         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
64547         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
64548         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
64549         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
64550         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
64551         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
64552         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
64553         file.
64554         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
64555         New file.
64556         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
64557         file.
64558         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
64559         file.
64560         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
64561         file.
64562         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
64563         file.
64564         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
64565         file.
64566         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
64567         New file.
64568         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
64569         New file.
64570         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
64571         file.
64572         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
64573         New file.
64574         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
64575         file.
64576         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
64577         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
64578         file.
64579         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
64580         New file.
64581         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
64582         file.
64583         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
64584         file.
64585         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
64586         file.
64587         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
64588         file.
64589         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
64590         file.
64591         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
64592         New file.
64593         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
64594         New file.
64595         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
64596         file.
64597         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
64598         New file.
64599         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
64600         file.
64601
64602 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
64603
64604         * conform/conformtest.pl: Fix typo in handling typed-constant from
64605         allow-header.
64606
64607 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
64608
64609         * README: Cut down references to pre-2.6 Linux kernels and
64610         Linuxthreads.  Update lists of configurations in libc and ports
64611         and sort alphabetically.  Say "or newer" with Linux kernel version
64612         requirements.
64613
64614         * config.h.in [IS_IN_build]: Allow compiling without optimization.
64615
64616 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
64617
64618         [BZ #887]
64619         * math/libm-test.inc (logb_test_downward): New test to expose
64620         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
64621         rounding mode.
64622
64623 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
64624
64625         [BZ #14027]
64626         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
64627         to be done.
64628         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
64629         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
64630
64631 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
64632
64633         * sysdeps/unix/i386/brk.S: Remove file.
64634         * sysdeps/unix/i386/dl-brk.S: Likewise.
64635         * sysdeps/unix/i386/pipe.S: Likewise.
64636         * sysdeps/unix/i386/sigreturn.S: Likewise.
64637         * sysdeps/unix/i386/syscall.S: Likewise.
64638         * sysdeps/unix/i386/vfork.S: Likewise.
64639         * sysdeps/unix/i386/wait.S: Likewise.
64640
64641         * sysdeps/unix/common/tcsendbrk.c: Move to ...
64642         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
64643
64644         * configure.in (arm*-none*): Do not allow without
64645         --enable-hacker-mode.
64646         (netbsd*): Remove case setting base_os.
64647         (386bsd*): Likewise.
64648         (freebsd*): Likewise.
64649         (bsdi*): Likewise.
64650         (osf*): Likewise.
64651         (sunos*): Likewise.
64652         (ultrix*): Likewise.
64653         (newsos*): Likewise.
64654         (dynix*): Likewise.
64655         (*bsd*): Likewise.
64656         (sysv*): Likewise.
64657         (isc*): Likewise.
64658         (esix*): Likewise.
64659         (sco*): Likewise.
64660         (minix*): Likewise.
64661         (irix4*): Likewise.
64662         (irix6*): Likewise.
64663         (solaris[2-9]*): Likewise.
64664         (none): Likewise.
64665         * configure: Regenerated.
64666
64667 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64668
64669         [BZ #11521]
64670         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
64671         overflow or cancellation in calculating denominator.
64672         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
64673         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
64674         down expression to avoid unexpected rounding in newer GCCs.
64675         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
64676
64677 2012-04-26  David S. Miller  <davem@davemloft.net>
64678
64679         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
64680         long-double compat symbols.
64681         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
64682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
64683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
64684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
64685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
64686         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
64687         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
64688         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
64689         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
64690         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
64691         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
64692         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
64693         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
64694
64695 2012-04-25  David S. Miller  <davem@davemloft.net>
64696
64697         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
64698         HWCAP_* values only after the memory barriers have been defined.
64699         (atomic_full_barrier): Define.
64700         (atomic_read_barrier): Define.
64701         (atomic_write_barrier): Define.
64702
64703 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
64704
64705         * shlib-versions: Add libgcc_s version information.
64706         * sysdeps/generic/libgcc_s.h: Remove.
64707         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
64708         libgcc_s.h.
64709         * sysdeps/gnu/unwind-resume.c: Likewise.
64710         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
64711
64712 2012-04-25  David S. Miller  <davem@davemloft.net>
64713
64714         * sysdeps/unix/sparc/brk.S: Delete.
64715         * sysdeps/unix/sparc/dl-brk.S: Delete.
64716         * sysdeps/unix/sparc/pipe.S: Delete.
64717         * sysdeps/unix/sparc/sysdep.S: Delete.
64718         * sysdeps/unix/sparc/sysdep.h: Delete.
64719         * sysdeps/unix/sparc/vfork.S: Delete.
64720         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
64721         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
64722         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
64723         (ret_ERRVAL, r0, r1, MOVE): Define.
64724         (JUMPTARGET): Remove.
64725         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
64726         sysdeps/unix/sparc/sysdep.h
64727         (ENTRY, END): Remove.
64728         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
64729
64730 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
64731
64732         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
64733         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
64734         -DIS_IN_build.
64735
64736         * timezone/README: Update upstream location and email address for
64737         tzcode and tzdata.
64738         * timezone/zdump.c: Update from tzcode 2012b.
64739         * timezone/zic.c: Likewise.
64740
64741         * configure.in (libc_cv_as_needed): Remove test.
64742         * configure: Regenerated.
64743         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
64744         conditional definition.
64745         [$(have-as-needed) != yes] (no-as-needed): Likewise.
64746         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
64747         * config.make.in (have-as-needed): Remove variable.
64748
64749 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
64750             Paul Pluzhnikov  <ppluzhnikov@google.com>
64751
64752         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
64753         strings correctly.
64754
64755 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
64756
64757         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
64758         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
64759         * sysdeps/sh/strlen.S: Likewise.
64760
64761 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
64762
64763         * sysdeps/unix/fork.S: Remove file.
64764         * sysdeps/unix/i386/fork.S: Likewise.
64765         * sysdeps/unix/sparc/fork.S: Likewise.
64766
64767         * sysdeps/unix/system.c: Remove file.
64768         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
64769
64770         * sysdeps/unix/getegid.S: Remove file.
64771         * sysdeps/unix/geteuid.S: Likewise.
64772
64773 2012-04-24  Roland McGrath  <roland@hack.frob.com>
64774
64775         * scripts/check-localplt.awk: New file.
64776         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
64777         of diff.
64778         * scripts/data/localplt-generic.data: Add a comment.
64779
64780         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
64781         NODE when __dir_mkfile failed.
64782         * sysdeps/mach/hurd/symlinkat.c: Likewise.
64783         Reported by Ludovic Courtès <ludo@gnu.org>.
64784
64785 2012-04-24  Andreas Jaeger  <aj@suse.de>
64786
64787         * Makerules (common-clean): Also remove gen-as-const-headers
64788         files.
64789
64790 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
64791
64792         * Makerules (native-compile): Do not change working directory for
64793         build.  Use $(OUTPUT_OPTION) in command.
64794         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
64795
64796 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64797
64798         [BZ #13886]
64799         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
64800         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
64801         * math/libm-test.inc (floor_test): Add more tests.
64802         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
64803
64804 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
64805
64806         * sysdeps/unix/getdents.c: Remove file.
64807         * sysdeps/unix/sysv/getdents.c: Likewise.
64808         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
64809
64810         * sysdeps/unix/syscalls.list (madvise): Add syscall from
64811         sysdeps/unix/mman/syscalls.list.
64812         (mmap): Likewise.
64813         (mprotect): Likewise.
64814         (msync): Likewise.
64815         (munmap): Likewise.
64816         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
64817         * sysdeps/unix/mman/syscalls.list: Remove.
64818         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
64819
64820         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
64821         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
64822         * configure: Regenerated.
64823         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
64824         $(libgcc_s_suffix).
64825         * config.make.in (libgcc_s_suffix): Remove variable.
64826
64827 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
64828
64829         * sysdeps/unix/sysv/gethostname.c: Move to ...
64830         * sysdeps/posix/gethostname.c: ... here.
64831
64832         * sysdeps/unix/execve.S: Remove file.
64833
64834         * sysdeps/unix/_exit.S: Remove file.
64835
64836 2012-04-23  Andreas Jaeger  <aj@suse.de>
64837
64838         [BZ #13739]
64839         * manual/Makefile: Remove make dist support, there's no
64840         need for a stand-alone documentation tar ball.
64841         (TEXI2DVI): Define always, it's not in Makeconfig.
64842         (dist): Removed.
64843         (tar-it): Removed.
64844         (edition): Removed.
64845         (glibc-doc-$(edition).tar): Removed
64846         (%.Z): Removed.
64847         (%.gz): Removed.
64848         (%.uu): Removed.
64849         (ETAGS): Remove, it's in Makeconfig.
64850         (move-if-change): Remove, it's in Makeconfig.
64851
64852 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
64853
64854         [BZ #13970]
64855         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
64856         (strtod, strtof, strtold, strtol, strtoul, strtoq)
64857         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
64858         (strtod_l, strtof_l, strtold_l): Remove __wur.
64859         It is not necessarily an error to ignore strtol's return value.
64860         One can reliably look at the stored endptr to decide whether
64861         the number had valid syntax.
64862
64863 2012-04-21  Andreas Jaeger  <aj@suse.de>
64864
64865         [BZ #13739]
64866         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
64867
64868 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
64869
64870         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
64871         * sysdeps/unix/sysv/Versions: Remove file.
64872
64873 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
64874
64875         [BZ #13927]
64876         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64877
64878 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
64879
64880         [BZ #7064]
64881         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
64882         version from __vm86.
64883
64884 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
64885
64886         * sysdeps/unix/common/lxstat.c: Remove file.
64887         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
64888
64889         * sysdeps/unix/sysv/Makefile: Remove file.
64890
64891         * sysdeps/unix/sysv/direct.h: Remove file.
64892
64893         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
64894         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
64895         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
64896         * sysdeps/unix/sysv/bits/signum.h: Likewise.
64897         * sysdeps/unix/sysv/bits/stat.h: Likewise.
64898         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
64899         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
64900
64901         * sysdeps/unix/sysv/setrlimit.c: Remove file.
64902
64903         * sysdeps/unix/xmknod.c: Remove file.
64904         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
64905
64906         * sysdeps/unix/sysv/settimeofday.c: Remove file.
64907
64908         * sysdeps/unix/sysv/i386/time.S: Remove file.
64909
64910         * sysdeps/unix/fxstat.c: Remove file.
64911         * sysdeps/unix/xstat.c: Likewise.
64912         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
64913
64914         * sysdeps/unix/sysv/sigaction.c: Remove file.
64915
64916         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
64917         (sysdep_headers): Remove variable.
64918         [termio.h not in sysdep_headers] (generated): Likewise.
64919         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
64920         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
64921         * sysdeps/unix/sysv/tcdrain.c: Likewise.
64922         * sysdeps/unix/sysv/tcflow.c: Likewise.
64923         * sysdeps/unix/sysv/tcflush.c: Likewise.
64924         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
64925         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
64926         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
64927         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
64928         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
64929
64930         * sysdeps/unix/siglist.c: Remove file.
64931
64932         * sysdeps/unix/getppid.S: Remove file.
64933
64934         * sysdeps/unix/mkdir.c: Remove file.
64935         * sysdeps/unix/rmdir.c: Likewise.
64936
64937 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
64938
64939         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
64940         ERR_MAX value.
64941         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
64942         errlist-compat value.
64943
64944 2012-04-18  David S. Miller  <davem@davemloft.net>
64945
64946         * sysdeps/generic/memcopy.h (reg_char): Delete.
64947         * debug/strcat_chk.c: Use char, not reg_char.
64948         * debug/strcpy_chk.c: Likewise.
64949         * debug/strncat_chk.c: Likewise.
64950         * debug/strncpy_chk.c: Likewise.
64951         * string/memchr.c: Likewise.
64952         * string/memrchr.c: Likewise.
64953         * string/rawmemchr.c: Likewise.
64954         * string/strcat.c: Likewise.
64955         * string/strchr.c: Likewise.
64956         * string/strchrnul.c: Likewise.
64957         * string/strcmp.c: Likewise.
64958         * string/strcpy.c: Likewise.
64959         * string/strncat.c: Likewise.
64960         * string/strncmp.c: Likewise.
64961         * string/strncpy.c: Likewise.
64962
64963 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
64964
64965         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
64966         __builtin_memcopy is called when src and dest ranges are known to not
64967         overlap.
64968
64969 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
64970
64971         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
64972         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
64973         fwd_align_merge macro call.
64974         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
64975         bwd_align_merge macro call.
64976         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
64977
64978 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
64979
64980         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
64981         bwd_align_merge macros.
64982         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
64983         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
64984         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
64985
64986 2012-04-18  David S. Miller  <davem@davemloft.net>
64987
64988         * sysdeps/sparc/sparc64/memcopy.h: Delete.
64989
64990 2012-04-18  Andreas Jaeger  <aj@suse.de>
64991
64992         [BZ# 6794]
64993         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
64994         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
64995         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
64996
64997         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
64998         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
64999         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65000
65001         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
65002         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
65003         Adjust for changed ldbl-128 files.
65004
65005         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
65006         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
65007         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65008
65009 2012-04-17  David S. Miller  <davem@davemloft.net>
65010
65011         * sysdeps/sparc/sparc32/memcopy.h: Delete.
65012
65013 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
65014
65015         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
65016         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
65017         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
65018         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
65019         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
65020         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
65021
65022 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65023
65024         [BZ #6794]
65025         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
65026         * math/libm-test.inc: Add ilogb errno and exception tests.
65027         * math/w_ilogb.c: New file: ilogb wrapper.
65028         * math/w_ilogbf.c: New file: ilogbf wrapper.
65029         * math/w_ilogbl.c: New file: ilogbl wrapper.
65030         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
65031         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
65032         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
65033         exception being thrown with 0.0 as argument.
65034         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
65035         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
65036         exception being thrown with 0.0 as argument.
65037         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
65038         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65039         exception being thrown with 0.0 as argument.
65040         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
65041         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65042         exception being thrown with 0.0 as argument.
65043         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
65044         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
65045         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
65046         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
65047         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
65048         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
65049         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
65050         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
65051         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
65052
65053 2012-04-17  Petr Baudis  <pasky@ucw.cz>
65054
65055         * include/sys/uio.h: Change __vector to __iovec to avoid clash
65056         with altivec.
65057
65058 2012-04-16  Marek Polacek  <polacek@redhat.com>
65059
65060         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
65061
65062 2012-04-16  Marek Polacek  <polacek@redhat.com>
65063
65064         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
65065         operands of fdivp instruction.
65066
65067 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65068
65069         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
65070         * elf/tst-auditmod3b.c: Likewise.
65071         * elf/tst-auditmod4b.c: Likewise.
65072         * elf/tst-auditmod5b.c: Likewise.
65073         * elf/tst-auditmod6b.c: Likewise.
65074         * elf/tst-auditmod6c.c: Likewise.
65075         * elf/tst-auditmod7b.c: Likewise.
65076         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
65077         * sysdeps/x86_64/preconfigure.in: Likewise.
65078         * sysdeps/x86_64/preconfigure: Regenerated.
65079
65080 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65081
65082         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
65083         __ILP32__.
65084
65085 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
65086
65087         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
65088         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
65089
65090 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
65091
65092         [BZ #13973]
65093         * locale/iso-639.def: Fix gl language name. Spotted by
65094         Yaron Shahrabani.
65095
65096 2012-04-12  Roland McGrath  <roland@hack.frob.com>
65097
65098         [BZ #2074]
65099         * libio/libio.h (__io_write_fn): Update comment.
65100
65101 2012-04-12  Petr Baudis  <pasky@ucw.cz>
65102
65103         [BZ #2074]
65104         * stdio.texi (Hook Functions): The user provided writer function
65105         is not allowed to return -1.
65106
65107 2012-04-11  David S. Miller  <davem@davemloft.net>
65108
65109         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65110
65111 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
65112
65113         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
65114         Add a leading slash to rtkaio.
65115
65116 2012-04-11  Jim Meyering  <meyering@redhat.com>
65117
65118         [BZ #11959]
65119         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
65120         It is not necessarily an error to ignore fwrite's return
65121         value.  One can reliably use ferror to test for errors after
65122         the fact.
65123
65124 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65125
65126         * bits/types.h (__snseconds_t): New type.
65127         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
65128
65129         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
65130         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65131         (__SNSECONDS_T_TYPE): Likewise.
65132         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
65133         (__SNSECONDS_T_TYPE): Likewise.
65134         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65135         (__SNSECONDS_T_TYPE): Likewise.
65136
65137 2012-04-10  Andreas Jaeger  <aj@suse.de>
65138
65139         [BZ #2636]
65140         * manual/time.texi (Processor Time): Return type of times is
65141         elapsed real time since an arbitrary point in the past.
65142         (CPU Time): Move CLK_TCK from here...
65143         (Processor Time): ...to here.  Correct description.
65144         * manual/conf.texi (Constants for Sysconf): Correct description of
65145         _SC_CLK_TCK.
65146
65147 2012-04-10  David S. Miller  <davem@davemloft.net>
65148
65149         [BZ #13967]
65150         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
65151         where the is a gap between DT_REL(A) and DT_JMPREL.
65152
65153 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65154
65155         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
65156         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65157         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65158
65159 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
65160
65161         * elf/dl-support.c (_dl_inhibit_cache): New variable.
65162         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
65163         (dl_main): Handle --inhibit-cache.
65164         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
65165         _dl_inhibit_cache.
65166         * elf/dl-load.c (_dl_map_object): Use it.
65167         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
65168
65169 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65170
65171         [BZ #13872]
65172         * sysdeps/i386/fpu/e_powl.S (p78): New object.
65173         (__ieee754_powl): Saturate large exponents rather than testing for
65174         overflow of y*log2(x).
65175         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
65176         * math/libm-test.inc (pow_test): Do not permit spurious overflow
65177         exceptions.
65178
65179         [BZ #11521]
65180         * math/s_ctan.c: Include <float.h>.
65181         (__ctan): Avoid internal overflow or cancellation in calculating
65182         denominator.
65183         * math/s_ctanf.c: Likewise.
65184         * math/s_ctanl.c: Likewise.
65185         * math/s_ctanh.c: Likewise.
65186         * math/s_ctanhf.c: Likewise.
65187         * math/s_ctanhl.c: Likewise.
65188         * math/libm-test.inc (ctan_test): Add more tests.
65189         (ctanh_test): Likewise.
65190         * sysdeps/i386/fpu/libm-test-ulps: Update.
65191         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65192
65193 2012-04-09  Andreas Jaeger  <aj@suse.de>
65194
65195         [BZ #6894]
65196         * manual/filesys.texi (Directory Entries): Mention that d_namlen
65197         is an optional BSD extension.
65198
65199         [BZ #10254]
65200         * manual/stdio.texi (Opening Streams): Document additional fopen
65201         parameters.
65202
65203 2012-04-09  Roland McGrath  <roland@hack.frob.com>
65204
65205         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
65206         %eax without telling the compiler.
65207
65208 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
65209
65210         [BZ # 13963]
65211         * manual/install.texi: Use sourceware.org.
65212
65213 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65214
65215         [BZ #13873]
65216         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
65217         (__ieee754_pow): Generate overflow and underflow using huge*huge
65218         and tiny*tiny rather than just returning constant infinity or zero
65219         for large exponents.
65220         * math/libm-test.inc (pow_test): Require overflow exceptions for
65221         applicable cases of large exponents.
65222
65223         [BZ #706]
65224         * sysdeps/i386/fpu/e_pow.S (p10): New object.
65225         (__ieee754_pow): Use iterative multiplication algorithm only for
65226         integer exponents with absolute value below 1024.  Check for odd
65227         integer exponents when using algorithm for real exponents.
65228         * math/libm-test.inc (pow_test): Add more tests.
65229         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65230
65231 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
65232
65233         [BZ #13705]
65234         * math/libm-test.inc (exp_test): Do not allow overflow exception
65235         on underflow test.
65236
65237 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
65238
65239         [BZ #13705]
65240         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
65241         instead of __kernel_standard_f.
65242
65243 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
65244
65245         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
65246         * sysdeps/x86_64/memset_chk.S: Likewise.
65247
65248 2012-04-08  Andreas Jaeger  <aj@suse.de>
65249
65250         [BZ #10153]
65251         * manual/startup.texi (Environment Access): Describe return value
65252         for putenv and setenv.
65253
65254         [BZ #6895]
65255         * manual/filesys.texi (Directory Entries): Add description for
65256         DT_LNK.
65257
65258         [BZ #6890]
65259         * manual/filesys.texi (Directory Entries): Clarify that it's file
65260         system not operating system in the description of DT_UNKNOWN.
65261
65262         [BZ #6578]
65263         * manual/syslog.texi (closelog): Fix reference, it's openlog.
65264
65265 2012-04-08  Stephen Compall  <s11@member.fsf.org>
65266
65267         [BZ #6649]
65268         * manual/llio.texi (Opening and Closing Files): Add cross
65269         reference to explain mode argument.
65270
65271 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
65272
65273         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
65274         * sysdeps/x86_64/memset_chk.S: Likewise.
65275
65276 2012-04-07  David S. Miller  <davem@davemloft.net>
65277
65278         * elf/elf.h (R_SPARC_WDISP10): Define.
65279         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
65280         R_SPARC_SIZE32.
65281         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
65282         R_SPARC_SIZE64 and R_SPARC_H34.
65283
65284 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
65285
65286         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
65287         conditions and remove no longer applicable assertion.
65288
65289 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65290
65291         * bits/byteswap.h: Include <features.h>.
65292         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65293         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65294
65295 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65296
65297         * bits/byteswap.h (__bswap_16): Removed.
65298         Include <bits/byteswap-16.h> to get __bswap_16.
65299         * sysdeps/i386/bits/byteswap.h: Likewise.
65300         * sysdeps/s390/bits/byteswap.h: Likewise.
65301         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65302         * bits/byteswap-16.h: New file.
65303         * sysdeps/i386/bits/byteswap-16.h: Likewise.
65304         * sysdeps/s390/bits/byteswap-16.h: Likewise.
65305         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
65306         * string/Makefile (headers): Add bits/byteswap-16.h.
65307
65308 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
65309
65310         [BZ #13895]
65311         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
65312         extra indirection.
65313         * nss/Makefile (tests-static, tests): Add tst-nss-static.
65314         * nss/tst-nss-static.c: New.
65315
65316 2012-04-06  Robert Millan  <rmh@gnu.org>
65317
65318         [BZ #6486]
65319         * manual/llio.texi (File Position Primitive): lseek
65320         refers to WHENCE when it really means OFFSET.
65321
65322 2012-04-06  Andreas Jaeger  <aj@suse.de>
65323
65324         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
65325         strncmp declarations.
65326
65327         * abilist/libc.abilist: Add __poll and __ppoll.
65328
65329 2012-04-05  David S. Miller  <davem@davemloft.net>
65330
65331         * scripts/check-local-headers.sh: Accept a host triplet in the
65332         path matched by the exclude regexp.
65333
65334         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
65335         definition.
65336         * sysdeps/powerpc/powerpc32/dl-machine.h
65337         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
65338         * sysdeps/s390/s390-32/dl-machine.h
65339         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65340         * sysdeps/sparc/sparc32/dl-machine.h
65341         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65342         * sysdeps/sparc/sparc64/dl-machine.h
65343         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65344
65345         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
65346         lazy binding.
65347         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
65348         undefined symbol errors.
65349
65350         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
65351         DT_NEEDED entries.
65352
65353 2012-04-05  Michael Matz  <matz@suse.de>
65354
65355         [BZ #13592]
65356         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
65357
65358 2012-04-05  Andreas Jaeger  <aj@suse.de>
65359
65360         [BZ #13908]
65361         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
65362         comment.
65363
65364 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65365
65366         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
65367         which ROUND is no valid rounding mode.
65368
65369 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65370
65371         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
65372         read again.
65373         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
65374
65375 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65376
65377         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
65378         an exception using FPU order intentionally.
65379
65380 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65381
65382         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
65383         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
65384         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
65385         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
65386
65387 2012-04-05  Simon Josefsson  <simon@josefsson.org>
65388
65389         [BZ #12340]
65390         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
65391         EINVAL when BUFLEN is too smal.
65392
65393 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
65394
65395         [BZ #13553]
65396         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
65397         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
65398
65399 2012-04-03  Andreas Jaeger  <aj@suse.de>
65400
65401         [BZ #13938]
65402         * manual/setjmp.texi (System V contexts): Fix sentence.
65403
65404         [BZ #13926]
65405         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
65406         New macro for this case.
65407         [!__GNUC__] (__bswap_64): New inline function for this case.
65408         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65409         * bits/byteswap.h: Likewise.
65410         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
65411         ull, guard with __GLIBC_HAVE_LONG_LONG.
65412
65413         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
65414         __GLIBC_HAVE_LONG_LONG.
65415
65416         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
65417         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
65418
65419 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
65420
65421         [BZ #13691]
65422         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
65423         inptr and inend, rather than using last_ch.
65424
65425 2012-04-02  David S. Miller  <davem@davemloft.net>
65426
65427         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
65428         * stdio-common/printf-parse.h (read_int): Change return type to
65429         'int', return -1 on INT_MAX overflow.
65430         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
65431         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
65432         overflows INT_MAX.  Check for overflow of in-format-string precision
65433         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
65434         SIZE_MAX not INT_MAX for integer overflow test.
65435         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
65436         skip the construct in the format string but do not record anything.
65437         * stdio-common/bug22.c: Adjust to test both width/prevision
65438         INT_MAX overflow as well as total length INT_MAX overflow.  Check
65439         explicitly for proper errno values.
65440
65441 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
65442
65443         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
65444         CHAR_MAX.
65445         * string/test-strcmp.c [! WIDE]: Likewise.
65446         * time/tst-mktime2.c: Likewise for INT_MAX.
65447         * string/test-string.h: #include <sys/param.h> for MIN.
65448
65449         * csu/init-first.c (__libc_init_first): Call __ctype_init.
65450         * sysdeps/i386/init-first.c (init): Likewise.
65451         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
65452         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
65453         * sysdeps/sh/init-first.c (init): Likewise.
65454
65455 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
65456
65457         * po/ru.po: Update from translation team.
65458         * po/vi.po: Likewise.
65459
65460 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
65461
65462         * resolv/nss_dns/dns-host.c: Merge copyright years.
65463
65464 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
65465
65466         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
65467         Optimize memcpy with prefetch if
65468         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
65469         src, dst pointers have unequal 16 byte alignments.
65470
65471 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
65472
65473         [BZ #13928]
65474         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
65475         from a CNAME entry and return the minimum ttl for the query.
65476         (gaih_getanswer_slice): Likewise.
65477
65478 2012-03-30  Jeff Law  <law@redhat.com>
65479
65480         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
65481         due to long keys.
65482         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
65483         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
65484
65485         * resolv/nss_dns/dns-host.c: Update copyright year.
65486
65487 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
65488
65489         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
65490         requests to save a system call.  Fix check that all bytes are sent.
65491
65492         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
65493         comments for sendmmsg.
65494
65495 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
65496
65497         [BZ #13691]
65498         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
65499         with only 1 character between 0x0041 and 0x01b0.
65500         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
65501         * wcsmbs/tst-mbsnrtowcs.c: New file.
65502
65503 2012-03-29  David S. Miller  <davem@davemloft.net>
65504
65505         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
65506         small copies by hand.
65507
65508 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
65509
65510         [BZ #13761]
65511         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
65512         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
65513         group memberships.
65514
65515 2012-03-28  David S. Miller  <davem@davemloft.net>
65516
65517         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
65518         that branches into memcpy.
65519         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
65520         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
65521         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
65522         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
65523         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
65524         bits.
65525         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
65526         implementation too.
65527         * sysdeps/sparc/mempcpy.S: New file.
65528
65529         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
65530         the IFUNC routine in the libc case.
65531         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
65532
65533         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
65534         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
65535         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
65536         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
65537         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
65538         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
65539         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
65540         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
65541
65542         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
65543         loop to 256 bytes instead of 64 bytes and fix test signedness.
65544
65545         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
65546         * sysdeps/sparc/sparc32/Makefile: rather than here...
65547         * sysdeps/sparc/sparc64/Makefile: and here.
65548
65549 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
65550
65551         * malloc/mallocbug.c: Avoid warnings about unused variables.
65552
65553 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
65554
65555         [BZ #13760]
65556         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
65557         in the right place. Discard and retry query if response is
65558         larger than input buffer size.
65559
65560 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
65561
65562         [BZ #369]
65563         [BZ #2678]
65564         [BZ #3866]
65565         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
65566         x for large integer exponent.
65567         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
65568         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
65569         sign of result as needed afterwards.
65570         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
65571         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
65572         result for underflowing pow the same as for overflow.
65573         (__kernel_standard_l): Handle powl overflow and underflow here
65574         rather than calling __kernel_standard.
65575         * math/libm-test.inc (pow_test): Add more tests.
65576
65577         [BZ #3868]
65578         [BZ #13879]
65579         [BZ #13910]
65580         [BZ #13911]
65581         [BZ #13912]
65582         [BZ #13913]
65583         [BZ #13915]
65584         [BZ #13916]
65585         [BZ #13917]
65586         [BZ #13918]
65587         [BZ #13919]
65588         [BZ #13920]
65589         [BZ #13921]
65590         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
65591         * sysdeps/ieee754/k_standard.c: Include <float.h>.
65592         (__kernel_standard_l): New function.
65593         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
65594         __kernel_standard.
65595         * math/w_acosl.c (__acosl): Likewise.
65596         * math/w_asinl.c (__asinl): Likewise.
65597         * math/w_atan2l.c (__atan2l): Likewise.
65598         * math/w_atanhl.c (__atanhl): Likewise.
65599         * math/w_coshl.c (__coshl): Likewise.
65600         * math/w_exp10l.c (__exp10l): Likewise.
65601         * math/w_exp2l.c (__exp2l): Likewise.
65602         * math/w_fmodl.c (__fmodl): Likewise.
65603         * math/w_hypotl.c (__hypotl): Likewise.
65604         * math/w_j0l.c (__j0l, __y0l): Likewise.
65605         * math/w_j1l.c (__j1l, __y1l): Likewise.
65606         * math/w_jnl.c (__jnl, __ynl): Likewise.
65607         * math/w_lgammal.c (__lgammal): Likewise.
65608         * math/w_log10l.c (__log10l): Likewise.
65609         * math/w_log2l.c (__log2l): Likewise.
65610         * math/w_logl.c (__logl): Likewise.
65611         * math/w_powl.c (__powl): Likewise.
65612         * math/w_remainderl.c (__remainderl): Likewise.
65613         * math/w_scalbl.c (sysv_scalbl): Likewise.
65614         * math/w_sinhl.c (__sinhl): Likewise.
65615         * math/w_sqrtl.c (__sqrtl): Likewise.
65616         * math/w_tgammal.c (__tgammal): Likewise.
65617         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
65618         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
65619         * math/libm-test.inc (acos_test): Add more tests.
65620         (acosh_test): Likewise.
65621         (asin_test): Likewise.
65622         (atanh_test): Likewise.
65623         (exp_test): Likewise.
65624         (exp10_test): Likewise.
65625         (exp2_test): Likewise.
65626         (expm1_test): Likewise.
65627         (lgamma_test): Likewise.
65628         (log_test): Likewise.
65629         (log10_test): Likewise.
65630         (log1p_test): Likewise.
65631         (log2_test): Likewise.
65632         (pow_test): Do not allow some spurious overflow exceptions.
65633         (sqrt_test): Add more tests.
65634         (tgamma_test): Likewise.
65635         (y0_test): Likewise.
65636         (y1_test): Likewise.
65637         (yn_test): Likewise.
65638
65639 2012-03-27  Anton Blanchard  <anton@samba.org>
65640
65641         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
65642         MAP_HUGETLB.
65643         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
65644         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
65645         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
65646
65647 2012-03-27  David S. Miller  <davem@davemloft.net>
65648
65649         * conform/Makefile: Run run-conformtest.sh using $(BASH).
65650
65651         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
65652         have-as-vis3 check.
65653
65654 2012-03-27  Andreas Jaeger  <aj@suse.de>
65655
65656         * sysdeps/x86_64/elf/configure.in: Moved to ...
65657         * sysdeps/x86_64/configure.in: ... here.
65658         * sysdeps/x86_64/elf/start.S: Moved to ...
65659         * sysdeps/x86_64/start.S: ... here.
65660         * sysdeps/x86_64/elf/configure: Delete.
65661
65662         * sysdeps/x86_64/configure.in: Merge contents from
65663         sysdeps/i386/configure.in (without i686 check).
65664
65665         * sysdeps/i386/elf/Versions: Merge into ...
65666         * sysdeps/i386/Versions: ... this.
65667         * sysdeps/i386/elf/Versions: Delete file.
65668         * sysdeps/i386/elf/start.S: Moved to ...
65669         * sysdeps/i386/start.S: ...here.
65670         * sysdeps/i386/elf/configure.in: Merge into...
65671         * sysdeps/i386/configure.in: ...here.
65672         * sysdeps/i386/elf/configure.in: Delete file.
65673         * sysdeps/i386/elf/configure: Delete file.
65674
65675         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
65676         * debug/backtracesyms.c: ... here.
65677         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
65678         * debug/backtracesymsfd.c: ... here.
65679         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
65680         * sysdeps/generic/ifunc-sel.h: ... here.
65681
65682         * sysdeps/unix/i386/start.c: Delete file.
65683         * sysdeps/unix/sparc/start.c: Delete file.
65684         * sysdeps/unix/start.c: Delete file.
65685
65686         * sysdeps/sh/elf/configure.in: Moved to ...
65687         * sysdeps/sh/configure.in: ... here.
65688         * sysdeps/sh/elf/start.S: Moved to ...
65689         * sysdeps/sh/start.S: ... here.
65690         * sysdeps/sh/elf/configure: Delete file.
65691
65692         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
65693         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
65694         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
65695         * sysdeps/powerpc/powerpc64/entry.h: ... here.
65696         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
65697         * sysdeps/powerpc/powerpc64/start.S: here.
65698         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
65699         * sysdeps/powerpc/powerpc64/Makefile: ... this.
65700         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
65701         * sysdeps/powerpc/powerpc64/configure.in: ... this.
65702         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
65703
65704         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
65705         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
65706         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
65707         * sysdeps/powerpc/powerpc32/start.S: ... here.
65708         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
65709         * sysdeps/powerpc/powerpc32/configure.in: ... this.
65710         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
65711
65712         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
65713         * sysdeps/powerpc/ifunc-sel.h: ... here.
65714         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
65715         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
65716
65717         * sysdeps/sparc/elf/configure.in: Moved to ...
65718         * sysdeps/sparc/configure.in: ... here.
65719         * sysdeps/sparc/elf/configure: Delete file.
65720         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
65721         * sysdeps/sparc/sparc32/start.S: ... here.
65722         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
65723         * sysdeps/sparc/sparc64/start.S: ... here.
65724         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
65725         * sysdeps/sparc/sparc32/Makefile: ... this.
65726         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
65727         * sysdeps/sparc/sparc64/Makefile: ... this.
65728
65729         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
65730         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
65731         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
65732         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
65733         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
65734         * sysdeps/s390/s390-32/setjmp.S: ... here.
65735         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
65736         * sysdeps/s390/s390-32/configure.in: ... here.
65737         * sysdeps/s390/s390-32/elf/configure: Delete file.
65738         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
65739         * sysdeps/s390/s390-32/start.S: ... here.
65740
65741         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
65742         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
65743         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
65744         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
65745         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
65746         * sysdeps/s390/s390-64/setjmp.S: ... here.
65747         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
65748         * sysdeps/s390/s390-64/configure.in: ... here
65749         * sysdeps/s390/s390-64/elf/configure: Delete file.
65750         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
65751         * sysdeps/s390/s390-64/start.S: ... here.
65752         * sysdeps/s390/s390-64/elf/configure: Delete.
65753
65754         * configure.in: Remove support for elf directories in sysdeps.
65755
65756         * configure: Regenerated.
65757         * sysdeps/i386/configure: Regenerated.
65758         * sysdeps/powerpc/powerpc32/configure: Regenerated.
65759         * sysdeps/powerpc/powerpc64/configure: Regenerated.
65760         * sysdeps/s390/s390-32/configure: Regenerated.
65761         * sysdeps/s390/s390-64/configure: Regenerated.
65762         * sysdeps/sh/configure: Regenerated.
65763         * sysdeps/sparc/configure: Regenerated.
65764         * sysdeps/x86_64/configure: Regenerated.
65765
65766 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
65767
65768         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
65769
65770         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
65771         denormal result into account.
65772
65773 2012-03-25  Roland McGrath  <roland@hack.frob.com>
65774
65775         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
65776         Reported by Allan McRae <allan@archlinux.org>.
65777
65778 2012-03-23  Jeff Law  <law@redhat.com>
65779
65780         * nss/getnssent.c (__nss_getent): Fix typo.
65781
65782 2012-03-23  David S. Miller  <davem@davemloft.net>
65783
65784         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65785
65786 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
65787
65788         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
65789         to pad to uint64_t for each field.
65790         (dl_tls_index): Replace unsigned long with uint64_t.
65791
65792 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
65793         Paul Pluzhnikov  <ppluzhnikov@google.com>
65794
65795         [BZ #6528]
65796         * grp/Makefile (otherlibs): Don't set it.
65797         * inet/Makefile (otherlibs): Likewise.
65798         * login/Makefile (otherlibs): Likewise.
65799         * nscd/Makefile (otherlibs): Likewise.
65800         * posix/Makefile (otherlibs): Likewise.
65801         * pwd/Makefile (otherlibs): Likewise.
65802         * rt/Makefile (otherlibs): Likewise.
65803         * sunrpc/Makefile (otherlibs): Likewise.
65804         * nss/Makefile (otherlibs): Likewise.
65805         Add libnss_files to routines and static-only-routines.
65806         ($(objpfx)getent): Remove rule.
65807         * resolv/Makefile: Add libnss_dns and libresolv to routines and
65808         static-only-routines.
65809
65810 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
65811
65812         [BZ #13892]
65813         * math/s_cexp.c: Include <float.h>.
65814         (__cexp): Handle exp result overflowing not necessarily
65815         overflowing both real and imaginary parts of result.
65816         * math/s_cexpf.c: Likewise.
65817         * math/s_cexpl.c: Likewise.
65818         * math/libm-test.inc (cexp_test): Add more tests.
65819         * sysdeps/i386/fpu/libm-test-ulps: Update.
65820         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65821
65822 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65823
65824         * include/link.h (ELFW): New macro.
65825         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
65826         Replace ELF64_R_TYPE with ELFW(R_TYPE).
65827
65828 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65829
65830         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
65831         with uint64_t.
65832
65833 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65834
65835         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
65836         declaration.
65837         (struct La_x32_retval): Likewise.
65838
65839 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
65840
65841         * sysdeps/x86_64/preconfigure.in: New file.
65842         * sysdeps/x86_64/preconfigure: New generated file.
65843
65844 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
65845
65846         [BZ #13824]
65847         * math/e_exp2l.c: Include <float.h>.
65848         (__ieee754_exp2l): Handle overflow and underflow cases
65849         separately.  Only pass fractional part of argument to
65850         __ieee754_expl.
65851         * math/libm-test.inc (exp2_test): Add more tests.
65852
65853         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
65854         negating x to take absolute value.
65855         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
65856         Likewise.
65857         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
65858         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
65859         Likewise.
65860         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
65861         computing low part if x was negated.
65862         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
65863
65864 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
65865
65866         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
65867         la_x32_gnu_pltexit.
65868         (pltexit): Cast int_retval to ptrdiff_t.
65869         * elf/tst-auditmod3b.c: Likewise.
65870         * elf/tst-auditmod4b.c: Likewise.
65871         * elf/tst-auditmod5b.c: Likewise.
65872         * elf/tst-auditmod6b.c: Likewise.
65873         * elf/tst-auditmod6c.c: Likewise.
65874         * elf/tst-auditmod7b.c: Likewise.
65875
65876         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
65877         and x32_gnu_pltexit.
65878
65879         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
65880         __ELF_NATIVE_CLASS.
65881         (La_x32_regs): New macro.
65882         (La_x32_retval): Likewise.
65883         (la_x32_gnu_pltenter): New function prototype.
65884         (la_x32_gnu_pltexit): Likewise.
65885
65886 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
65887
65888         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
65889         exponent.
65890
65891         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
65892
65893         * configure.in (libc_cv_cc_nofma): Check for option to disable
65894         generation of FMA instructions.
65895         * configure: Regenerate.
65896         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
65897         * sysdeps/ieee754/dbl-64/Makefile: New file.
65898         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
65899         Remove brandred-fma4.
65900         (CFLAGS-brandred-fma4.c): Remove.
65901         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
65902         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
65903         define.
65904         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
65905         define.
65906
65907 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
65908
65909         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
65910         LLONG_MAX != LONG_MAX.
65911         (_itoa_word): Use _ITOA_WORD_TYPE on value.
65912         (_fitoa_word): Likewise.
65913         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
65914         LLONG_MAX != LONG_MAX.
65915         * stdio-common/_itowa.h: Include <_itoa.h>.
65916         (_itowa_word): Use _ITOA_WORD_TYPE on value.
65917         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
65918         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
65919         only if not defined.
65920         (_ITOA_WORD_TYPE): Likewise.
65921         (_itoa_word): Use _ITOA_WORD_TYPE on value.
65922         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
65923
65924 2012-03-21  David S. Miller  <davem@davemloft.net>
65925
65926         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65927
65928 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
65929
65930         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
65931         of x86_64 when setting libc_cv_slibdir, libdir and
65932         libc_cv_localedir.
65933         * sysdeps/unix/sysv/linux/configure: Regenerated.
65934
65935 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
65936
65937         * manual/lang.texi (Old Varargs): Remove section.
65938         (How Variadic): Update menu.
65939         (va_start): Do not mention varargs.h.
65940
65941 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
65942             Joseph Myers  <joseph@codesourcery.com>
65943
65944         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
65945         link test.
65946         * configure: Regenerated.
65947
65948 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
65949
65950         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
65951         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
65952         conformtest.pl
65953
65954 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
65955
65956         * NOTES: Remove.
65957         * Makefile (files-for-dist): Remove NOTES.
65958         (NOTES): Remove rule.
65959         * README: Don't refer to NOTES.
65960         * manual/creature.texi: Don't include macros.texi.
65961         * manual/intro.texi (creature.texi): Remove comment referring to
65962         NOTES.
65963
65964         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
65965         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
65966         * configure: Regenerated.
65967         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
65968         LIBC_TRY_CC_OPTION.
65969         (libc_cv_as_i686): Likewise.
65970         (libc_cv_cc_avx): Likewise.
65971         (libc_cv_cc_sse2avx): Likewise.
65972         (libc_cv_cc_fma4): Likewise.
65973         (libc_cv_cc_novzeroupper): Likewise.
65974         * sysdeps/i386/configure: Regenerated.
65975
65976         [BZ #13883]
65977         * sysdeps/i386/fpu/s_cexp.S: Remove.
65978         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
65979         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
65980         * math/libm-test.inc (cexp_test): Add more tests.
65981         * sysdeps/i386/fpu/libm-test-ulps: Update.
65982         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65983
65984 2012-03-21  Allan McRae  <allan@archlinux.org>
65985
65986         * timezone/Makefile: Do not install iso3166.tab and zone.tab
65987
65988 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
65989
65990         [BZ #13871]
65991         * math/w_exp2.c: Do not include <float.h>.
65992         (o_threshold, u_threshold): Remove.
65993         (__exp2): Calculate result before checking finiteness and calling
65994         __kernel_standard.
65995         * math/w_exp2f.c: Likewise.
65996         * math/w_exp2l.c: Likewise.
65997         * math/libm-test.inc (exp2_test): Require overflow exception for
65998         1e6 input.
65999
66000         [BZ #3866]
66001         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
66002         range of signed 64-bit integers before using fistpll.  Remove
66003         checks for whether integers fit in mantissa bits.
66004         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
66005         the range of signed 32-bit integers before using fistpl.  Remove
66006         checks for whether integers fit in mantissa bits.
66007         * sysdeps/i386/fpu/e_powl.S (p64): New object.
66008         (__ieee754_powl): Test for y outside the range of signed 64-bit
66009         integers before using fistpll.  Reduce 64-bit values to 63-bit
66010         ones as needed.
66011         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
66012         divide-by-zero is raised for zero to large negative powers.
66013         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
66014         (__ieee754_powl): Test for y outside the range of signed 64-bit
66015         integers before using fistpll.  Reduce 64-bit values to 63-bit
66016         ones as needed.
66017         * math/libm-test.inc (pow_test): Add more tests.
66018
66019 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66020
66021         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
66022         <stdio-common/_itoa.h>.
66023         * debug/segfault.c: Likewise.
66024         * elf/dl-cache.c: Likewise.
66025         * elf/dl-minimal.c: Likewise.
66026         * elf/dl-misc.c: Likewise.
66027         * elf/dl-sysdep.c: Likewise.
66028         * elf/dl-version.c: Likewise.
66029         * elf/rtld.c: Likewise.
66030         * hurd/hurdsock.c: Likewise.
66031         * hurd/lookup-retry.c: Likewise.
66032         * malloc/malloc.c: Likewise.
66033         * malloc/mtrace.c: Likewise.
66034         * nscd/nscd_getgr_r.c: Likewise.
66035         * nscd/nscd_getpw_r.c: Likewise.
66036         * nscd/nscd_getserv_r.c: Likewise.
66037         * posix/getopt_init.c: Likewise.
66038         * posix/wordexp.c: Likewise.
66039         * stdio-common/_itoa.c: Likewise.
66040         * stdio-common/printf_fphex.c: Likewise.
66041         * stdio-common/vfprintf.c: Likewise.
66042         * string/_strerror.c: Likewise.
66043         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
66044         * sysdeps/i386/i686/hp-timing.h: Likewise.
66045         * sysdeps/mach/_strerror.c: Likewise.
66046         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
66047         * sysdeps/mach/hurd/sethostid.c: Likewise.
66048         * sysdeps/mach/hurd/xmknodat.c: Likewise.
66049         * sysdeps/mach/xpg-strerror.c: Likewise.
66050         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
66051         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
66052         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
66053         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
66054         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
66055         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
66056         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
66057         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
66058         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
66059         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
66060         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
66061         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
66062         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
66063         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
66064         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
66065         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
66066         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
66067         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
66068         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
66069         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
66070         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
66071
66072         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
66073
66074         * stdio-common/_itoa.h: Moved to ...
66075         * sysdeps/generic/_itoa.h: Here.
66076
66077         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
66078
66079         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
66080         instead of "_itoa.h" and "_itowa.h".
66081         * stdio-common/vfprintf.: Likewise.
66082
66083 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66084
66085         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
66086         <bits/wordsize.h>.
66087         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
66088         (__signbit): Likwise.
66089         (llrintf): Likwise.
66090         (llrint): Likwise.
66091
66092 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66093
66094         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
66095         __WORDSIZE != 64.
66096
66097 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
66098
66099         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
66100         OVERFLOW_EXCEPTION_OK.
66101         * math/libm-test.inc ("Philosophy"): Update comment about
66102         exception testing.
66103         (OVERFLOW_EXCEPTION): Define.
66104         (OVERFLOW_EXCEPTION_OK): Likewise.
66105         (INVALID_EXCEPTION_OK): Renumber.
66106         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
66107         (IGNORE_ZERO_INF_SIGN): Likewise.
66108         (test_exceptions): Handle FE_OVERFLOW.
66109         (exp10_test): Expect overflow exceptions.
66110         (exp2_test): Likewise.
66111         (expm1_test): Likewise.
66112         (nextafter_test): Likewise.
66113         (pow_test): Likewise.
66114         (scalbn_test): Likewise.
66115         (scalbln_test): Likewise.
66116
66117 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66118
66119         * sysdeps/x86_64/bits/atomic.h
66120         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
66121         64bit integer.
66122         (atomic_exchange_acq): Likewise.
66123         (__arch_exchange_and_add_body): Likewise.
66124         (__arch_add_body): Likewise.
66125         (atomic_add_negative): Likewise.
66126         (atomic_add_zero): Likewise.
66127
66128 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66129
66130         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
66131         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
66132
66133 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66134
66135         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
66136         Check __x86_64__ instead of __WORDSIZE.
66137
66138 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66139
66140         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
66141
66142 2012-03-19  David S. Miller  <davem@davemloft.net>
66143
66144         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66145
66146         * sysdeps/sparc/fpu/fenv_private.h: New file.
66147         * sysdeps/sparc/fpu/math_private.h: Use it.
66148         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
66149         Remove.
66150         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
66151         (libc_feholdexcept_setroundl): Remove.
66152         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
66153         Remove.
66154         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
66155         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
66156
66157 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66158
66159         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
66160         int64_t instead of long int.
66161         (INSERT_WORDS64): Likwise.
66162
66163 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66164
66165         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
66166         _Unwind_GetCFA return to _Unwind_Ptr first.
66167
66168 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
66169
66170         [BZ #13629]
66171         * math/s_clog.c: Include <float.h>.
66172         (__clog): Scale large or subnormal inputs.
66173         * math/s_clogf.c: Likewise.
66174         * math/s_clogl.c: Likewise.
66175         * math/s_clog10.c: Include <float.h>.
66176         (M_LOG10_2): Define.
66177         (__clog10): Scale large or subnormal inputs.
66178         * math/s_clog10f.c: Likewise.
66179         * math/s_clog10l.c: Likewise.
66180         * math/libm-test.inc (clog_test): Add more tests.
66181         (clog10_test): Likewise.
66182         * sysdeps/i386/fpu/libm-test-ulps: Update.
66183         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66184
66185         [BZ #11451]
66186         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
66187         x and y.
66188         * math/libm-test.inc (atan2_test): Add another test.
66189
66190         * Makerules (common-objdir-compile): Remove.
66191         * sysdeps/unix/Makefile (config-generated): Do not add
66192         $(unix-generated) to variable.
66193         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
66194         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
66195         Remove rule.
66196         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
66197         Likewise.
66198         [generic bits/local_lim.h] (before-compile): Do not append to
66199         variable.
66200         [generic bits/local_lim.h] (common-generated): Likewise.
66201         [generic sys/param.h] (before-compile): Do not append to variable.
66202         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
66203         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
66204         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
66205         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
66206         include.
66207         [generic sys/param.h] (sys/param.h-includes): Remove variable.
66208         [generic sys/param.h] (sys/param.h-includes): Remove rule.
66209         [generic sys/param.h] ($(addprefix
66210         $(common-objpfx),$(sys/param.h-includes))): Likewise.
66211         [generic sys/param.h] (common-generated): Do not append to
66212         variable.
66213         [generic sys/param.h] (sysdep_headers): Likewise.
66214         [generic bits/errno.h] (before-compile): Do not append to
66215         variable.
66216         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
66217         rule.
66218         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
66219         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
66220         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
66221         [generic bits/errno.h] (common-generated): Do not append to
66222         variable.
66223         [generic bits/ioctls.h] (before-compile): Do not append to
66224         variable.
66225         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
66226         rule.
66227         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
66228         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
66229         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
66230         rule.
66231         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
66232         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
66233         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
66234         [generic bits/ioctls.h] (common-generated): Do not append to
66235         variable.
66236         [generic sys/syscall.h] (syscall.h): Remove variable.
66237         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
66238         rule.
66239         [generic sys/syscall.h] (before-compile): Do not append to
66240         variable.
66241         [generic sys/syscall.h] (common-generated): Likewise.
66242         * sysdeps/unix/errnos-tmpl.c: Remove file.
66243         * sysdeps/unix/errnos.awk: Likewise.
66244         * sysdeps/unix/ioctls-tmpl.c: Likewise.
66245         * sysdeps/unix/ioctls.awk: Likewise.
66246         * sysdeps/unix/mk-local_lim.c: Likewise.
66247         * sysdeps/unix/snarf-ioctls: Likewise.
66248
66249 2012-03-19  Richard Henderson  <rth@twiddle.net>
66250
66251         * sysdeps/i386/fpu/fenv_private.h: New file.
66252         * sysdeps/i386/fpu/math_private.h: Use it.
66253         (math_opt_barrier, math_force_eval): Remove.
66254         (libc_feholdexcept_setround_53bit): Remove.
66255         (libc_feupdateenv_53bit): Remove.
66256         * sysdeps/x86_64/fpu/math_private.h: Likewise.
66257         (math_opt_barrier, math_force_eval): Remove.
66258         (libc_feholdexcept): Remove.
66259         (libc_feholdexcept_setround): Remove.
66260         (libc_fetestexcept, libc_fesetenv): Remove.
66261         (libc_feupdateenv_test): Remove.
66262         (libc_feupdateenv, libc_feholdsetround): Remove.
66263         (libc_feresetround): Remove.
66264
66265         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
66266         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
66267
66268         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
66269         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
66270         (libc_feupdateenv_testl): New.
66271         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
66272         (libc_feupdateenv_testf): New.
66273         (libc_feupdateenv): Use libc_feupdateenv_test.
66274         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
66275         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
66276
66277         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
66278         (libc_feholdsetroundf, libc_feholdsetroundl): New.
66279         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
66280         (libc_feresetround_noex): New.
66281         (libc_feresetround_noexf): New.
66282         (libc_feresetround_noexl): New.
66283         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
66284         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
66285         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
66286         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
66287         SET_RESTORE_ROUND.
66288         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
66289         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
66290         (__cos): Likewise.
66291         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
66292         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
66293         SET_RESTORE_ROUND_NOEX.
66294         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
66295         SET_RESTORE_ROUND_NOEXF.
66296         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
66297         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
66298         (libc_feholdsetroundf): New.
66299         (libc_feresetround, libc_feresetroundf): New.
66300
66301         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
66302         (libc_feholdexcept_setround_53bit): Convert from macro to function.
66303         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
66304
66305         * sysdeps/generic/math_private.h: Include <fenv.h>.
66306         (default_libc_feholdexcept): New.
66307         (default_libc_feholdexcept_setround): New.
66308         (default_libc_fesetenv, default_libc_feupdateenv): New.
66309         (libc_feholdexcept): Only define if undefined.
66310         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
66311         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
66312         (libc_feholdexcept_setroundl): Likewise.
66313         (libc_feholdexcept_setround_53bit): Likewise.
66314         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
66315         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
66316         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
66317         (libc_feupdateenv_53bit): Likewise.
66318         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
66319         (libc_feholdexcept): Convert from macro to inline function.
66320         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
66321         (libc_fesetenv, libc_feupdateenv): Likewise.
66322
66323         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
66324         not previously defined.
66325         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
66326         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
66327         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
66328         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
66329         * sysdeps/ieee754/flt-32/math_private.h: New file.
66330         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
66331         math_private.h below SET_FLOAT_WORD.
66332         (__isnan, __isinf_ns, __finite): Remove.
66333         (__isnanf, __isinf_nsf, __finitef): Remove.
66334
66335 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
66336
66337         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66338
66339 2012-03-17  David S. Miller  <davem@davemloft.net>
66340
66341         [BZ #6471]
66342         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
66343         for 2.16.
66344
66345 2012-03-16  David S. Miller  <davem@davemloft.net>
66346
66347         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
66348         warnings.
66349
66350         [BZ #6471]
66351         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
66352         properly.
66353         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
66354         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
66355         sysdep_routines when subdir is sysvipc.
66356         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
66357         __getshmlba helper.
66358
66359         * sysdeps/sparc/fpu/libm-test/ulps: Update.
66360
66361 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66362
66363         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
66364         [__LP64__].
66365
66366 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66367
66368         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
66369         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
66370         (__lround): Renamed to ...
66371         (__llround): This.  Replace long int with long long int.
66372         Define lround functions as aliases of llround functions.
66373         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
66374
66375 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66376
66377         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
66378         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
66379         adresses to uintptr_t.  Replace "long int" and "unsigned long
66380         int" with "greg_t" on va_arg.
66381
66382 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66383
66384         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
66385         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
66386
66387         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
66388         Move e_machine check before EI_CLASS check.  Handle x32
66389         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
66390         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
66391         SKIP_EM_IA_64 and include
66392         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
66393
66394         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
66395         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
66396         (add_system_dir): New macro.
66397
66398         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
66399         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
66400
66401 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
66402
66403         [BZ #2551]
66404         [BZ #2552]
66405         [BZ #2553]
66406         [BZ #2554]
66407         [BZ #2562]
66408         [BZ #2563]
66409         [BZ #2565]
66410         [BZ #2566]
66411         [BZ #2576]
66412         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
66413         (y0): Likewise.
66414         * math/w_j0f.c (j0f): Likewise.
66415         (y0f): Likewise.
66416         * math/w_j0l.c (__j0l): Likewise.
66417         (__y0l): Likewise.
66418         * math/w_j1.c (j1): Likewise.
66419         (y1): Likewise.
66420         * math/w_j1f.c (j1f): Likewise.
66421         (y1f): Likewise.
66422         * math/w_j1l.c (__j1l): Likewise.
66423         (__y1l): Likewise.
66424         * math/w_jn.c (jn): Likewise.
66425         (yn): Likewise.
66426         * math/w_jnf.c (jnf): Likewise.
66427         (ynf): Likewise.
66428         * math/w_jnl.c (__jnl): Likewise.
66429         (__ynl): Likewise.
66430         * math/libm-test.inc (j0_test): Add more tests.
66431         (j1_test): Likewise.
66432         (jn_test): Likewise.  Add trailing semicolon to existing test.
66433         (y0_test): Likewise.
66434         (y1_test): Likewise.
66435         * sysdeps/i386/fpu/libm-test-ulps: Update.
66436         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66437
66438         [BZ #13851]
66439         [BZ #13854]
66440         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
66441         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
66442         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
66443         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
66444         (__tanl): Set errno for infinite argument.
66445         * sysdeps/i386/fpu/mptan.c: Remove.
66446         * sysdeps/i386/fpu/s_tan.S: Likewise.
66447         * sysdeps/i386/fpu/s_tanl.S: Likewise.
66448         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
66449         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
66450         * math/libm-test.inc (tan_test): Add more tests and enable more
66451         tests for double and long double.
66452         * sysdeps/i386/fpu/libm-test-ulps: Update.
66453         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66454
66455 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
66456
66457         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
66458         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
66459
66460 2012-03-16  Roland McGrath  <roland@hack.frob.com>
66461
66462         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
66463         * configure.in: Use it for both main tree and add-ons.
66464         * configure: Regenerated.
66465
66466 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66467
66468         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
66469
66470 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
66471
66472         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
66473         in comment.
66474
66475         [BZ #13851]
66476         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
66477         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
66478         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
66479         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
66480         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
66481         infinite argument.
66482         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
66483         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
66484         != 0 for prec == 2.
66485         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
66486         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
66487         * sysdeps/i386/fpu/s_cosl.S: Likewise.
66488         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
66489         * sysdeps/i386/fpu/s_sinl.S: Likewise.
66490         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
66491         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
66492         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
66493         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
66494         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
66495         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
66496         * math/libm-test.inc (cos_test): Add more tests and enable more
66497         tests for long double.
66498         (sin_test): Likewise.
66499         (sincos_test): Likewise.
66500         * sysdeps/i386/fpu/libm-test-ulps: Update.
66501         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66502
66503 2012-03-16  David S. Miller  <davem@davemloft.net>
66504
66505         * sysdeps/sparc/fpu/math_private.h: New file.
66506
66507 2012-03-15  David S. Miller  <davem@davemloft.net>
66508
66509         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
66510         file.
66511         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
66512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
66513         file.
66514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
66515         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
66516         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
66517         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
66518         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
66519         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
66520         sysdep routines.
66521         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
66522
66523         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
66524         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
66525
66526         * sysdeps/sparc/sparc-ifunc.h: New file.
66527         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
66528         sparc-ifunc.h
66529         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
66530         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
66531         Likewise.
66532         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
66533         Likewise.
66534         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
66535         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
66536         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
66537         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
66538         Likewise.
66539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
66540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
66541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
66542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
66543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
66544         Likewise.
66545         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
66546         Likewise.
66547         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
66548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
66549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
66550         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
66551         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
66552         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
66553         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
66554         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
66555         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
66556         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
66557         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
66558         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
66559         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
66560         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
66561         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
66562         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
66563         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
66564         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
66565         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
66566         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
66567         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
66568         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
66569         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
66570         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
66571
66572 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
66573
66574         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
66575         scaling.
66576         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66577
66578 2012-03-15  Andreas Jaeger  <aj@suse.de>
66579
66580         [BZ #13852]
66581         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
66582         ieee754/flt-32 implementation for sin, cos and sincos.
66583         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
66584         * sysdeps/i386/fpu/s_cosf.S: Likewise.
66585         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
66586         * sysdeps/i386/fpu/s_sinf.S: Likewise.
66587         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
66588         ieee754/flt-32 implementation for tan.
66589
66590         * math/libm-test.inc (cos_test): Enable some large input tests for
66591         float as well
66592         (sin_test): Likewise.
66593         (sincos_test): Likewise.
66594         (tan_test): Add tests for large input.
66595
66596         * sysdeps/i386/fpu/libm-test-ulps: Update.
66597
66598 2012-03-15  Andreas Jaeger  <aj@suse.de>
66599
66600         [BZ #13658]
66601         * math/libm-test.inc (cos_test): Add more test cases.
66602         (sin_test): Likewise.
66603         (sincos_test): Likewise.
66604
66605 2012-03-15  Andreas Jaeger  <aj@suse.de>
66606
66607         [BZ #13837]
66608         * math/libm-test.inc (cos_test): Add a test case for large input
66609         value.
66610         (sin_test): Likewise.
66611         (sincos_test): Likewise.
66612
66613 2012-03-15  Andreas Jaeger  <aj@suse.de>
66614             Joseph Myers  <joseph@codesourcery.com>
66615
66616         [BZ #13658]
66617         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
66618         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
66619         * sysdeps/i386/fpu/branred.c: Likewise.
66620         * sysdeps/i386/fpu/dosincos.c: Likewise.
66621         * sysdeps/i386/fpu/mpa.c: Likewise.
66622         * sysdeps/i386/fpu/s_cos.S: Likewise.
66623         * sysdeps/i386/fpu/s_sin.S: Likewise.
66624         * sysdeps/i386/fpu/s_sincos.S: Likewise.
66625         * sysdeps/i386/fpu/sincos32.c: Likewise.
66626
66627         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
66628         Define.
66629         (libc_feupdateenv_53bit): Define.
66630         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
66631         Define.
66632         (libc_feupdateenv_53bit): Define.
66633
66634         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
66635         53 bit (without extend i386 double precision).
66636
66637         * math/libm-test.inc (sincos_test): Add tests for large input.
66638         (sin): Likewise.
66639         (cos): Likewise.
66640
66641         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
66642
66643 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
66644
66645         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66646
66647 2012-03-15  David S. Miller  <davem@davemloft.net>
66648
66649         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
66650         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
66651         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
66652         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
66653         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
66654         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
66655         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
66656         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
66657         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
66658         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
66659         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
66660         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
66661         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
66662         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
66663         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
66664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
66665         file.
66666         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
66667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
66668         file.
66669         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
66670         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
66671         file.
66672         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
66673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
66674         file.
66675         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
66676         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
66677         fmin/fmax sysdep routines.
66678         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
66679
66680 2012-03-14  David S. Miller  <davem@davemloft.net>
66681
66682         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
66683         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
66684         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
66685         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
66686         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
66687         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
66688         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
66689         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
66690         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
66691         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
66692         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
66693         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
66694         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
66695         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
66696         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
66697         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
66698         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
66699         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
66700         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
66701         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
66702         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
66703         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
66704         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
66705         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
66706         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
66707         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
66708         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
66709         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
66710         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
66711         routines.
66712         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
66713         file.
66714         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
66715         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
66716         file.
66717         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
66718         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
66719         file.
66720         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
66721         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
66722         file.
66723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
66724         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
66725         file.
66726         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
66727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
66728         file.
66729         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
66730         file.
66731         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
66732         file.
66733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
66734         file.
66735         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
66736         New file.
66737         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
66738         file.
66739         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
66740         file.
66741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
66742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
66743         file.
66744         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
66745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
66746         file.
66747         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
66748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
66749         file.
66750         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
66751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
66752         VIS3 routines.
66753
66754         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
66755         New file.
66756
66757         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66758
66759         * sysdeps/sparc/configure.in: New file.
66760         * sysdeps/sparc/configure: Generate.
66761         * configure.in (libc_cv_sparc_as_vis3): Substitute.
66762         * configure: Regenerate.
66763         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
66764         * config.make.in (have-as-vis3): New.
66765         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
66766         available use -Av9d instead of -Av9a.
66767         * sysdeps/sparc/sparc64/Makefile: Likewise.
66768         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
66769         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
66770         New file.
66771         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
66772         file.
66773         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
66774         New file.
66775         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
66776         file.
66777         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
66778         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
66779         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
66780         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
66781         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
66782
66783         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
66784         fzeros/fnegs to load 0x80000000 into a float register instead of
66785         using the stack.
66786         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
66787
66788 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
66789
66790         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
66791         bits/syscall.h.
66792         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
66793         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
66794         ($(inst_includedir)/bits/syscall.h): Remove rule.
66795         ($(objpfx)bits/syscall.d): Include instead of
66796         $(objpfx)syscall-list.d.
66797         (generated): Change syscall-list.h and syscall-list.d to
66798         bits/syscall.h and bits/syscall.d.
66799
66800 2012-03-14  Roland McGrath  <roland@hack.frob.com>
66801
66802         [BZ #13846]
66803         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
66804
66805 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
66806
66807         [BZ #13841]
66808         * math/s_csqrt.c: Include <float.h>.
66809         (__csqrt): Scale large or subnormal inputs.
66810         * math/s_csqrtf.c: Likewise.
66811         * math/s_csqrtl.c: Likewise.
66812         * math/libm-test.inc (csqrt_test): Add more tests.
66813         * sysdeps/i386/fpu/libm-test-ulps: Update.
66814         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66815
66816         [BZ #13840]
66817         * math/libm-test.inc (hypot_test): Add more tests.
66818
66819 2012-03-13  David S. Miller  <davem@davemloft.net>
66820
66821         [BZ #13840]
66822         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
66823         double-precision for the calculation instead of scaling.
66824
66825 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
66826
66827         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
66828         manipulate bits before adding and subtracting TWO52[sx].
66829         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
66830         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
66831         Likewise.
66832         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
66833
66834 2012-03-13  David S. Miller  <davem@davemloft.net>
66835
66836         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
66837         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
66838         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
66839         rtld-global-offsets.h
66840         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
66841
66842         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
66843         large parameters.
66844
66845         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
66846
66847         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
66848         'err' in the ifdef scope in which it is actually used.
66849
66850         * nss/nss_db/db-init.c: Include string.h
66851
66852 2012-03-12  David S. Miller  <davem@davemloft.net>
66853
66854         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
66855         masking out of the most significant byte of random value used.
66856         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
66857         Fix coding style in previous change.
66858
66859         * sysdeps/unix/sysv/linux/kernel-features.h
66860         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
66861         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
66862         expression.
66863         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
66864         later.
66865
66866 2012-03-11  David S. Miller  <davem@davemloft.net>
66867
66868         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
66869         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
66870         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
66871         for 'resultvar' otherwise things get truncated on 64-bit.
66872
66873         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
66874         Fix masking out of the most significant byte of random value used.
66875
66876         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66877
66878 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
66879
66880         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66881
66882 2012-03-09  David S. Miller  <davem@davemloft.net>
66883
66884         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
66885         variables with appropriate CPP guards.
66886         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
66887         from the frame pointer, not the stack pointer.  Correct layout
66888         comments.  Fix test on resulting framesize and the management of
66889         the outregs buffer for pltexit.  Preserve floating point return
66890         values across _dl_call_pltexit call.
66891         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
66892         framesize and the management of the outregs buffer for pltexit.
66893         Preserve floating point return values across _dl_call_pltexit
66894         call.
66895         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
66896         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
66897         (la_sparc64_gnu_pltexit): New functions.
66898         (print_exit): Fix format string for return register value.
66899
66900 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
66901
66902         * sunrpc/Makefile (others): Add rpcgen.
66903         ($(objpfx)rpcgen): Remove special build rule and dependency on
66904         libc.
66905         * sunrpc/rpcgen.c: New file.
66906
66907 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
66908
66909         [BZ #13673]
66910         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
66911         * stdio-common/bug-vfprintf-nargs.c: Likewise.
66912         * sysdeps/i386/crti.S: Likewise.
66913         * sysdeps/i386/crtn.S: Likewise.
66914         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
66915         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
66916         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
66917         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
66918         * sysdeps/sh/crti.S: Likewise.
66919         * sysdeps/sh/crtn.S: Likewise.
66920         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
66921
66922         [BZ #13673]
66923         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
66924         with URL.
66925         * locale/programs/locfile-kw.gperf: Likewise.
66926         * locale/programs/charmap-kw.h: Regenerated.
66927         * locale/programs/locfile-kw.h: Likewise.
66928
66929         [BZ #13673]
66930         * intl/plural.y: Replace FSF snail mail address with URL.
66931         * intl/plural.c: Regenerated.
66932
66933 2012-03-09  Richard Henderson  <rth@twiddle.net>
66934
66935         * include/math_private.h: Remove file.
66936         * math/math_private.h: Move file ...
66937         * sysdeps/generic/math_private.h: ... here.
66938
66939         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
66940         * sysdeps/powerpc/fpu/math_private.h: Likewise.
66941         * sysdeps/x86_64/fpu/math_private.h: Likewise.
66942
66943         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
66944         and <math_private.h>.
66945         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
66946         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
66947         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
66948         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
66949         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
66950         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
66951         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
66952         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
66953         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
66954         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
66955         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
66956         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
66957         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
66958         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
66959         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
66960         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
66961         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
66962         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
66963         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
66964         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
66965         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
66966         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
66967         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
66968         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
66969         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
66970         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
66971         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
66972         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
66973         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
66974         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
66975         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
66976         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
66977         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
66978         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
66979         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
66980         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
66981         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
66982         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
66983         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
66984         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
66985         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
66986         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
66987         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
66988         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
66989         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
66990         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
66991         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
66992         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
66993         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
66994         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
66995         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
66996         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
66997         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
66998         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
66999         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
67000         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
67001         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
67002         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
67003         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
67004         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
67005         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
67006         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
67007         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
67008         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
67009         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
67010         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
67011         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
67012         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
67013         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
67014         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
67015         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
67016         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
67017         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
67018         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
67019         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
67020         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
67021         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
67022         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
67023         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
67024         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
67025         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
67026         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
67027         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
67028         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
67029         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
67030         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
67031         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
67032         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
67033         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
67034         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
67035         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
67036         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
67037         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
67038         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
67039         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
67040         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
67041         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
67042         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
67043         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
67044         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
67045         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
67046         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
67047         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
67048         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
67049         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
67050         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
67051         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
67052         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
67053         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
67054         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
67055         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
67056         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
67057         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
67058         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
67059         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
67060         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
67061         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
67062         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
67063         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
67064         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
67065         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
67066         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
67067         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
67068         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
67069         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
67070         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
67071         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
67072         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
67073         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
67074         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
67075         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
67076         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
67077         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
67078         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
67079         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
67080         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
67081         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
67082         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
67083         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
67084         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
67085         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
67086         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
67087         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
67088         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
67089         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
67090         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
67091         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
67092         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
67093         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
67094         * sysdeps/ieee754/k_standard.c: Likewise.
67095         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
67096         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
67097         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
67098         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
67099         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
67100         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
67101         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
67102         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
67103         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
67104         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
67105         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
67106         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
67107         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
67108         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
67109         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
67110         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
67111         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
67112         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
67113         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
67114         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
67115         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
67116         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
67117         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
67118         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
67119         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
67120         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
67121         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
67122         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
67123         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
67124         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
67125         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
67126         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
67127         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
67128         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
67129         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
67130         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
67131         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
67132         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
67133         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
67134         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
67135         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
67136         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
67137         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
67138         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
67139         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
67140         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
67141         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
67142         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
67143         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
67144         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
67145         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
67146         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
67147         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
67148         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
67149         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
67150         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
67151         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
67152         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
67153         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
67154         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
67155         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
67156         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
67157         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
67158         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
67159         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
67160         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
67161         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
67162         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
67163         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
67164         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
67165         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
67166         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
67167         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
67168         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
67169         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
67170         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
67171         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
67172         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
67173         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67174         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
67175         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
67176         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
67177         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
67178         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
67179         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
67180         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
67181         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
67182         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
67183         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
67184         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
67185         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
67186         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
67187         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
67188         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
67189         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
67190         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
67191         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
67192         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
67193         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
67194         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
67195         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
67196         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
67197         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
67198         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
67199         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
67200         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
67201         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
67202         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
67203         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
67204         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
67205         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
67206         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
67207         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
67208         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
67209         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
67210         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
67211         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
67212         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
67213         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
67214         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
67215         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
67216         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
67217         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
67218         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
67219         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
67220         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
67221         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
67222         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
67223         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
67224         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
67225         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
67226         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
67227         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
67228         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
67229         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
67230         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
67231         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
67232         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
67233         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
67234         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
67235         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
67236         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
67237         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
67238         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
67239         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
67240         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
67241         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
67242         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
67243         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
67244         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
67245         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
67246         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
67247         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
67248         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
67249         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
67250         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
67251         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
67252         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
67253         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
67254         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
67255         * sysdeps/ieee754/s_lib_version.c: Likewise.
67256         * sysdeps/ieee754/s_matherr.c: Likewise.
67257         * sysdeps/ieee754/s_signgam.c: Likewise.
67258         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
67259         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
67260         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
67261         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
67262         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
67263         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
67264         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
67265         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
67266         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
67267         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
67268         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
67269         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
67270         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
67271         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
67272         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
67273         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
67274         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
67275         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
67276         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67277         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
67278         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
67279
67280 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67281
67282         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
67283         * sunrpc/rpc_main.c: Likewise.
67284         * sunrpc/rpc_svcout.c: Likewise.
67285
67286 2012-03-09  David S. Miller  <davem@davemloft.net>
67287
67288         * include/math_private.h: New file.
67289
67290 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67291
67292         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
67293         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
67294         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
67295         from <bits/socket_type.h>.
67296         (enum __socket_type): Don't define here.
67297         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
67298         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67299         bits/socket_type.h.
67300
67301         [BZ #13566]
67302         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
67303         checking __USE_GNU.
67304
67305         * Makerules ($(inst_includedir)/%.h): New rule.
67306         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
67307         (install-others): Remove variable setting.
67308         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
67309
67310 2012-03-08  Richard Henderson  <rth@twiddle.net>
67311
67312         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
67313         from macro to inline function; merge with the
67314         !__LIBC_INTERNAL_MATH_INLINES version.
67315         (__ieee754_sqrtf): Likewise.
67316
67317         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
67318         to inline function.
67319         (__rintf, __floor, __floorf): Likewise.
67320
67321         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
67322         macro to inline function.
67323         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
67324
67325         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
67326         not <math/math_private.h>.
67327
67328 2012-03-08  David S. Miller  <davem@davemloft.net>
67329
67330         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
67331         copyright year.
67332         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
67333
67334 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
67335
67336         * resolv/gai_misc.c (handle_requests): Fix struct timespec
67337         normalization.
67338         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
67339         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
67340
67341 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
67342
67343         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
67344         be defined individually, they must be defined as a block.  Define
67345         S for printing a string instead of hidint the different by using a
67346         macro for adding the 'l'.
67347         * stdio-common/tst-fphex-wide.c: Adjust.
67348
67349 2012-03-07  Marek Polacek  <polacek@redhat.com>
67350
67351         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
67352
67353 2012-03-08  Marek Polacek  <polacek@redhat.com>
67354
67355         [BZ #13806]
67356         * stdio-common/Makefile (tests): Add tst-fphex-wide.
67357         * stdio-common/tst-fphex.c: Define a few macros to make the
67358         test reusable.  Use them.
67359         * stdio-common/tst-fphex-wide.c: New file.
67360
67361 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
67362
67363         [BZ #6911]
67364         * manual/macros.texi (gnusystems): New macro.
67365         (nongnusystems): Likewise.
67366         (gnulinuxhurdsystems): Likewise.
67367         (gnuhurdsystems): Likewise..
67368         (gnulinuxsystems): Likewise.
67369         * manual/charset.texi: Use new macros or @theglibc{} to refer to
67370         variants of the GNU system, not "GNU system".
67371         * manual/conf.texi: Likewise.
67372         * manual/errno.texi: Likewise.  Update example of errno macro
67373         expansion.
67374         * manual/filesys.texi: Likewise.
67375         (getumask): Document as specific to GNU/Hurd.
67376         * manual/install.texi: Likewise.  Reword some references to
67377         GNU/Linux.
67378         * manual/intro.texi: Likewise.
67379         * manual/io.texi: Likewise.
67380         (File Name Portability): Detail which constraints are inapplicable
67381         to all GNU systems and which are only inapplicable to GNU/Hurd.
67382         * manual/job.texi: Likewise.
67383         * manual/llio.texi: Likewise.
67384         (O_NOCTTY): Document as present on GNU/Linux.
67385         * manual/maint.texi: Likewise.
67386         * manual/memory.texi: Likewise.
67387         * manual/pattern.texi: Likewise.
67388         * manual/pipe.texi: Likewise.
67389         * manual/process.texi: Likewise.
67390         * manual/resource.texi: Likewise.
67391         (RUSAGE_CHILDREN): Remove statement about specifying a particular
67392         child on GNU/Hurd.
67393         * manual/setjmp.texi: Likewise.
67394         * manual/signal.texi: Likewise.
67395         * manual/startup.texi: Likewise.
67396         * manual/stdio.texi: Likewise.
67397         * manual/terminal.texi: Likewise.
67398         (ONLCR): Document as POSIX.
67399         (OXTABS): Document availability on GNU/Linux as XTABS.
67400         (ONOEOT): Document availability separately from other bits.
67401         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
67402         * manual/time.texi: Likewise.
67403         * manual/users.texi: Likewise.
67404         * INSTALL: Regenerated.
67405         * sysdeps/gnu/errlist.c: Regenerated.
67406
67407         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
67408         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
67409         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
67410         puts.
67411         * configure: Regenerated.
67412
67413 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
67414
67415         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
67416         default includes instead of AC_HEADER_CHECK.
67417         * sysdeps/i386/configure: Regenerated.
67418
67419         [BZ #10716]
67420         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
67421         * math/s_cacoshf.c (__cacoshf): Likewise.
67422         * math/s_cacoshl.c (__cacoshl): Likewise.
67423         * math/s_casinh.c (__casinh): Set signs of result from argument.
67424         * math/s_casinhf.c (__casinhf): Likewise.
67425         * math/s_casinhl.c (__casinhl): Likewise.
67426         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
67427         (casinh_test): Add more tests.
67428         * sysdeps/i386/fpu/libm-test-ulps: Update.
67429         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67430
67431 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
67432
67433         * po/zh_TW.po: Update from translation team.
67434
67435         * login/Makefile (distribute): Remove variable.
67436         * catgets/Makefile: Likewise.
67437         * mach/Makefile: Likewise.
67438         * malloc/Makefile: Likewise.
67439         * misc/Makefile: Likewise.
67440         * iconv/Makefile: Likewise.
67441         * nscd/Makefile: Likewise.
67442         * hurd/Makefile: Likewise.
67443         * manual/Makefile: Likewise.
67444         * locale/Makefile: Likewise.
67445         * intl/Makefile: Likewise.
67446         * conform/Makefile: Likewise.
67447         * nss/Makefile: Likewise.
67448         * time/Makefile: Likewise.
67449         * soft-fp/Makefile: Likewise.
67450         * dirent/Makefile: Likewise.
67451         * gmon/Makefile: Likewise.
67452         * po/Makefile: Likewise.
67453         * rt/Makefile: Likewise.
67454         * socket/Makefile: Likewise.
67455         * math/Makefile: Likewise.
67456         * signal/Makefile: Likewise.
67457         * debug/Makefile: Likewise.
67458         * elf/Makefile: Likewise.
67459         * timezone/Makefile: Likewise.
67460         * stdlib/Makefile: Likewise.
67461         * iconvdata/Makefile: Likewise.
67462         * sunrpc/Makefile: Likewise.
67463         * io/Makefile: Likewise.
67464         * argp/Makefile: Likewise.
67465         * inet/Makefile: Likewise.
67466         * hesiod/Makefile: Likewise.
67467         * grp/Makefile: Likewise.
67468         * csu/Makefile: Likewise.
67469         * wctype/Makefile: Likewise.
67470         * crypt/Makefile: Likewise.
67471         * libio/Makefile: Likewise.
67472         * string/Makefile: Likewise.
67473         * nis/Makefile: Likewise.
67474         * resolv/Makefile: Likewise.
67475         * stdio-common/Makefile: Likewise.
67476         * wcsmbs/Makefile: Likewise.
67477         * dlfcn/Makefile: Likewise.
67478         * posix/Makefile: Likewise.
67479
67480         [BZ #6959]
67481         * timezone/Makefile: Don't install timezone files, just the programs
67482         and scripts.
67483
67484 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
67485
67486         * nss/databases.def: Add missing gshadow entry.
67487
67488         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
67489
67490 2012-03-06  Marek Polacek  <polacek@redhat.com>
67491
67492         [BZ #13726]
67493         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
67494         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
67495         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
67496         * stdio-common/tst-long-dbl-fphex.c: New file.
67497
67498 2012-03-06  David S. Miller  <davem@davemloft.net>
67499
67500         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
67501         (set_obp_int): New function.
67502         (get_obp_int): New function.
67503         (__get_clockfreq_via_dev_openprom): Likewise.
67504         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
67505         Avoid unused variable warnings on 'val' and use builtin_expect.
67506         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
67507         __builtin_expect.
67508         (INLINE_CLONE_SYSCALL): Likewise.
67509
67510 2012-03-05  David S. Miller  <davem@davemloft.net>
67511
67512         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67513
67514 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
67515
67516         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67517
67518         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
67519         only for |x| >= 40.
67520         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67521
67522 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
67523
67524         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
67525         Replace gettimeofday with __vdso_gettimeofday.
67526
67527         * sysdeps/unix/sysv/linux/x86_64/init-first.c
67528         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
67529         __vdso_clock_gettime and __vdso_getcpu.
67530
67531         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
67532         time with __vdso_time.
67533
67534 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
67535
67536         * manual/lang.texi (size_t): Note types to which size_t may be
67537         equivalent with the GNU C Library, but do not describe when
67538         differences between them are significant.
67539
67540 2012-03-05  Andreas Jaeger  <aj@suse.de>
67541
67542         * sysdeps/i386/fpu/libm-test-ulps: Update.
67543
67544 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
67545
67546         [BZ #3976]
67547         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
67548         (__ieee754_pow): Save and restore rounding mode and use
67549         round-to-nearest for main computations.
67550         * math/libm-test.inc (pow_test_tonearest): New function.
67551         (pow_test_towardzero): Likewise.
67552         (pow_test_downward): Likewise.
67553         (pow_test_upward): Likewise.
67554         (main): Call the new functions.
67555         * sysdeps/i386/fpu/libm-test-ulps: Update.
67556         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67557
67558         [BZ #3976]
67559         * math/libm-test.inc (cosh_test_tonearest): New function.
67560         (cosh_test_towardzero): Likewise.
67561         (cosh_test_downward): Likewise.
67562         (cosh_test_upward): Likewise.
67563         (sinh_test_tonearest): Likewise.
67564         (sinh_test_towardzero): Likewise.
67565         (sinh_test_downward): Likewise.
67566         (sinh_test_upward): Likewise.
67567         (main): Call the new functions.
67568         * sysdeps/i386/fpu/libm-test-ulps: Update.
67569         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67570
67571 2012-03-05  Tom de Vries  <tom@codesourcery.com>
67572
67573         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
67574         default stack guard is set in last bytes.
67575         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
67576
67577 2012-03-05  Kees Cook  <keescook@chromium.org>
67578
67579         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
67580
67581         [BZ #13656]
67582         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
67583         possibly allocate from heap instead of stack.
67584         * stdio-common/bug-vfprintf-nargs.c: New file.
67585         * stdio-common/Makefile (tests): Add nargs overflow test.
67586
67587 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
67588
67589         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67590
67591 2012-03-03  Marek Polacek  <polacek@redhat.com>
67592
67593         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
67594         * math/math_private.h: Likewise.
67595         * stdlib/tst-strtod.c: Likewise.
67596         * sysdeps/i386/i486/bits/atomic.h: Likewise.
67597         * sysdeps/x86_64/bits/atomic.h: Likewise.
67598
67599 2012-03-02  David S. Miller  <davem@davemloft.net>
67600
67601         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
67602         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
67603         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
67604         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
67605         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
67606         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
67607         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
67608         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
67609
67610 2012-03-02  Roland McGrath  <roland@hack.frob.com>
67611
67612         [BZ #13792]
67613         * manual/examples/README: New file, says the example source files
67614         can be used under GPL>=2.
67615         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
67616         line containing just "*/".
67617         * manual/examples/add.c: Add copyright header (GPL>=2).
67618         * manual/examples/argp-ex1.c: Likewise.
67619         * manual/examples/argp-ex2.c: Likewise.
67620         * manual/examples/argp-ex3.c: Likewise.
67621         * manual/examples/argp-ex4.c: Likewise.
67622         * manual/examples/atexit.c: Likewise.
67623         * manual/examples/db.c: Likewise.
67624         * manual/examples/dir.c: Likewise.
67625         * manual/examples/dir2.c: Likewise.
67626         * manual/examples/execinfo.c: Likewise.
67627         * manual/examples/filecli.c: Likewise.
67628         * manual/examples/filesrv.c: Likewise.
67629         * manual/examples/fmtmsgexpl.c: Likewise.
67630         * manual/examples/genpass.c: Likewise.
67631         * manual/examples/inetcli.c: Likewise.
67632         * manual/examples/inetsrv.c: Likewise.
67633         * manual/examples/isockad.c: Likewise.
67634         * manual/examples/longopt.c: Likewise.
67635         * manual/examples/memopen.c: Likewise.
67636         * manual/examples/memstrm.c: Likewise.
67637         * manual/examples/mkfsock.c: Likewise.
67638         * manual/examples/mkisock.c: Likewise.
67639         * manual/examples/mygetpass.c: Likewise.
67640         * manual/examples/pipe.c: Likewise.
67641         * manual/examples/popen.c: Likewise.
67642         * manual/examples/rprintf.c: Likewise.
67643         * manual/examples/search.c: Likewise.
67644         * manual/examples/select.c: Likewise.
67645         * manual/examples/setjmp.c: Likewise.
67646         * manual/examples/sigh1.c: Likewise.
67647         * manual/examples/sigusr.c: Likewise.
67648         * manual/examples/stpcpy.c: Likewise.
67649         * manual/examples/strdupa.c: Likewise.
67650         * manual/examples/strftim.c: Likewise.
67651         * manual/examples/strncat.c: Likewise.
67652         * manual/examples/subopt.c: Likewise.
67653         * manual/examples/swapcontext.c: Likewise.
67654         * manual/examples/termios.c: Likewise.
67655         * manual/examples/testopt.c: Likewise.
67656         * manual/examples/testpass.c: Likewise.
67657         * manual/examples/timeval_subtract.c: Likewise.
67658
67659         [BZ #13792]
67660         * manual/time.texi (Elapsed Time): Move timeval_subtract example
67661         function to ...
67662         * manual/timeval_subtract.c.texi: ... here, new file.
67663
67664 2012-03-02  David S. Miller  <davem@davemloft.net>
67665
67666         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
67667
67668 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
67669
67670         [BZ #3976]
67671         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
67672         (__sin): Save and restore rounding mode and use round-to-nearest
67673         for all computations.
67674         (__cos): Save and restore rounding mode and use round-to-nearest
67675         for all computations.
67676         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
67677         <fenv.h>.
67678         (tan): Save and restore rounding mode and use round-to-nearest for
67679         all computations.
67680         * math/libm-test.inc (cos_test_tonearest): New function.
67681         (cos_test_towardzero): Likewise.
67682         (cos_test_downward): Likewise.
67683         (cos_test_upward): Likewise.
67684         (sin_test_tonearest): Likewise.
67685         (sin_test_towardzero): Likewise.
67686         (sin_test_downward): Likewise.
67687         (sin_test_upward): Likewise.
67688         (tan_test_tonearest): Likewise.
67689         (tan_test_towardzero): Likewise.
67690         (tan_test_downward): Likewise.
67691         (tan_test_upward): Likewise.
67692         (main): Call the new functions.
67693         * sysdeps/i386/fpu/libm-test-ulps: Update.
67694         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67695
67696         [BZ #10135]
67697         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
67698         small n, then large n, before computing and testing k+n.
67699         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
67700         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
67701         Likewise.
67702         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
67703         Likewise.
67704         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
67705         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
67706         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
67707         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
67708         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
67709         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
67710         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
67711         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
67712         * math/libm-test.inc (scalbn_test): Add more tests.
67713         (scalbln_test): Likewise.
67714
67715         * manual/filesys.texi (mode_t): Describe constraints on size and
67716         signedness, not exact equivalence to a particular type.
67717         (ino_t): Likewise.
67718         (ino64_t): Likewise.
67719         (dev_t): Likewise.
67720         (nlink_t): Likewise.
67721         (blkcnt_t): Likewise.
67722         (blkcnt64_t): Likewise.
67723         * manual/llio.texi (off_t): Likewise.
67724
67725         [BZ #3976]
67726         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
67727         (__ieee754_exp): Save and restore rounding mode and use
67728         round-to-nearest for all computations.
67729         * math/libm-test.inc (exp_test_tonearest): New function.
67730         (exp_test_towardzero): Likewise.
67731         (exp_test_downward): Likewise.
67732         (exp_test_upward): Likewise.
67733         (main): Call the new functions.
67734         * sysdeps/i386/fpu/libm-test-ulps: Update.
67735         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67736
67737 2012-03-01  Chris Demetriou  <cgd@google.com>
67738
67739         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
67740         have predictable order.
67741
67742 2012-03-01  David S. Miller  <davem@davemloft.net>
67743
67744         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
67745
67746         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
67747         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
67748         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
67749         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
67750
67751         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
67752         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
67753         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
67754         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
67755         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
67756         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
67757         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
67758         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
67759         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
67760
67761         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67762
67763         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
67764         * sysdeps/sparc/fpu/libm-test-ulps: to here.
67765         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
67766
67767         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
67768         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
67769         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
67770         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
67771         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
67772         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
67773         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
67774         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
67775         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
67776         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
67777         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
67778         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
67779         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
67780         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
67781         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
67782         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
67783         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
67784         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
67785         * sysdeps/sparc/elf/configure: Regenerated.
67786
67787 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
67788
67789         * configure.in (AS, LD): Require binutils 2.20 or later.
67790         * configure: Regenerated.
67791         * manual/install.texi (Tools for Compilation): Give binutils 2.20
67792         as required minimum version.
67793         * INSTALL: Regenerated.
67794
67795         [BZ #2541]
67796         [BZ #4108]
67797         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
67798         before squaring exponent.
67799         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
67800         bottom long double and 27 bits of top long double before squaring
67801         exponent.
67802         * math/libm-test.inc (erfc_test): Add more tests.
67803         * sysdeps/i386/fpu/libm-test-ulps: Update.
67804         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
67805         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67806
67807 2012-03-01  Kai Tietz  <ktietz@redhat.com>
67808
67809         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
67810         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
67811         containing bit-fields.
67812         * soft-fp/extended.h (_FP_UNION_E): Likewise.
67813         * soft-fp/single.h (_FP_UNION_S): Likewise.
67814         * soft-fp/double.h (_FP_UNION_D): Likewise.
67815
67816 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
67817
67818         [BZ #13786]
67819         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
67820         not include ../strcmp.S.
67821         [USE_AS_STRNCASECMP_L]: Likewise.
67822         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
67823         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
67824         * sysdeps/i386/i686/multiarch/strncase_l-c.c
67825         (__strncasecmp_l_ia32): Define as alias to
67826         __strncasecmp_l_nonascii.
67827
67828         [BZ #5794]
67829         * math/libm-test.inc (expm1_test): Add test for bug 5794.
67830         * sysdeps/i386/fpu/libm-test-ulps: Update.
67831         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67832
67833         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
67834         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67835
67836 2012-02-29  Jeff Law  <law@redhat.com>
67837
67838         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
67839         out of bounds read.
67840
67841 2012-02-29  Marek Polacek  <polacek@redhat.com>
67842
67843         [BZ #13706]
67844         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
67845         * elf/Makefile: Add rules to run tst-unused-dep.out.
67846
67847 2012-02-28  David S. Miller  <davem@davemloft.net>
67848
67849         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
67850         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
67851         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
67852         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
67853         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
67854         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
67855
67856 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
67857
67858         * math/libm-test.inc (llround_test): Move one test from
67859         lround_test.  Use TEST_f_L in moved test.
67860         (lround_test): Move misplaced test to llround_test.  Add testcase
67861         from bug 2561.
67862
67863 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
67864
67865         * sysdeps/x86_64/fpu/e_expf.S: New file.
67866         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
67867
67868 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
67869
67870         [BZ #13637]
67871         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
67872         of remain_len that may cause incomplete multi-byte character and
67873         false match.
67874         * posix/bug-regex33.c: New file.
67875         * posix/Makefile (tests): Add bug-regex33.
67876
67877 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
67878
67879         * manual/macros.texi: New file.
67880         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
67881         * manual/libc.texinfo: Include macros.texi.
67882         * manual/creatute.texi: Likewise.
67883         * manual/install.texi: Likewise.
67884         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
67885         @glibcadj{} in references to the GNU C Library.
67886         * manual/charset.texi: Likewise.
67887         * manual/conf.texi: Likewise.
67888         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
67889         when not using those macros.
67890         * manual/creature.texi: Likewise.
67891         * manual/crypt.texi: Likewise.
67892         * manual/errno.texi: Likewise.
67893         * manual/filesys.texi: Likewise.
67894         * manual/header.texi: Likewise.
67895         * manual/install.texi: Likewise.
67896         * manual/intro.texi: Likewise.
67897         * manual/io.texi: Likewise.
67898         * manual/job.texi: Likewise.
67899         * manual/lang.texi: Likewise.
67900         * manual/libc.texiinfo: Likewise.
67901         * manual/llio.texi: Likewise.
67902         * manual/locale.texi: Likewise.
67903         * manual/maint.texi: Likewise.
67904         * manual/math.texi: Likewise.
67905         * manual/memory.texi: Likewise.
67906         * manual/message.texi: Likewise.
67907         * manual/nss.texi: Likewise.
67908         * manual/pattern.texi: Likewise.
67909         * manual/process.texi: Likewise.
67910         * manual/resource.texi: Likewise.
67911         * manual/search.texi: Likewise.
67912         * manual/setjmp.texi: Likewise.
67913         * manual/signal.texi: Likewise.
67914         * manual/socket.texi: Likewise.
67915         * manual/startup.texi: Likewise.
67916         * manual/stdio.texi: Likewise.
67917         * manual/string.texi: Likewise.
67918         * manual/sysinfo.texi: Likewise.
67919         * manual/syslog.texi: Likewise.
67920         * manual/terminal.texi: Likewise.
67921         * manual/time.texi: Likewise.
67922         * manual/users.texi: Likewise.
67923         * INSTALL: Regenerated.
67924         * NOTES: Regenerated.
67925         * sysdeps/gnu/errlist.c: Regenerated.
67926
67927 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
67928
67929         * include/dirent.h: Include <dirstream.h> before
67930         <dirent/dirent.h>.
67931
67932 2012-02-28  David S. Miller  <davem@davemloft.net>
67933
67934         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
67935         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
67936         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
67937         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
67938
67939 2012-02-27  David S. Miller  <davem@davemloft.net>
67940
67941         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
67942         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
67943         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
67944         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
67945
67946         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
67947         frame pointer instead of stack pointer relative arg slot.
67948         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
67949         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
67950         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
67951
67952 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
67953
67954         [BZ #3992]
67955         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
67956
67957 2012-02-27  David S. Miller  <davem@davemloft.net>
67958
67959         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
67960         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
67961         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
67962         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
67963         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
67964         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
67965         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
67966         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
67967
67968 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
67969
67970         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
67971         later.  Allow versions 5-9.
67972         * configure: Regenerated.
67973         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
67974         required minimum version and 4.6 as recommended version.  Do not
67975         mention bugs in GCC 2.7 and 2.8.
67976         * INSTALL: Regenerated.
67977
67978 2012-02-27  David S. Miller  <davem@davemloft.net>
67979
67980         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
67981         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
67982         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
67983         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
67984         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
67985         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
67986         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
67987         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
67988
67989         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
67990         manipulate bits before adding and subtracting TWO112[sx].
67991         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
67992
67993 2012-02-27  Roland McGrath  <roland@hack.frob.com>
67994
67995         [BZ #13775]
67996         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
67997         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
67998         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
67999         being in POSIX, because they are in 1003.1-2008.
68000
68001         * rt/tst-aio.c: Include <fcntl.h>.
68002         * rt/tst-aio7.c: Likewise.
68003         * rt/tst-aio64.c: Likewise.
68004
68005         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
68006
68007 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68008
68009         * manual/install.texi (--with-headers): Describe headers as
68010         interface headers, not private headers.
68011         (Specific advice for GNU/Linux systems): Describe use of headers
68012         from "make headers_install", not private headers from older
68013         kernels.
68014         * INSTALL: Regenerated.
68015         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
68016         Change to 2.6.19.
68017         * sysdeps/unix/sysv/linux/configure: Regenerated.
68018
68019         * manual/llio.texi (fclean): Remove documentation.
68020
68021         * manual/Makefile (libc-texi-generated): New variable.  Include
68022         version.texi.
68023         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
68024         $(libc-texi-generated), not duplicated list of files.
68025         (version.texi, stamp-version): New rules.
68026         (realclean): Remove $(libc-texi-generated), not individual files
68027         from that list.  Do not remove dir-add.texinfo.
68028         * manual/libc.texinfo: Comment out uses of edition numbers and
68029         references to printed manual.  Remove last-updated dates.
68030         (EDITION): Comment out.
68031         (ISBN): Likewise.
68032         (VERSION, UPDATED): Remove.
68033         (version.texi): Include.
68034
68035 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
68036
68037         * sysdeps/posix/spawni.c: Include <signal.h>.
68038         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
68039         * sysdeps/pthread/aio_fsync.c: Likewise.
68040
68041 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
68042
68043         * conform/Makefile (tests): Run only when not cross-compiling and
68044         when fast-check is not defined.
68045
68046         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
68047         * conform/data/limits.h-data: Fixes for POSIX2008.
68048         * conform/run-conformtest.sh: Run all tests.
68049         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
68050         headers.
68051         * include/bits/dlfcn.h: Likewise.
68052         * include/langinfo.h: Likewise.
68053         * include/monetary.h: Likewise.
68054         * include/sys/poll.h: Likewise.
68055
68056         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
68057         for __USE_GNU.
68058         * posix/spawn.h: Define __need_sigset_t.
68059         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
68060         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
68061         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
68062         to get sigevent_t only.
68063         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
68064         only for __USE_GNU.
68065         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
68066         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
68067         process_vm_writev only for __USE_GNU.
68068         * termios/termios.h: Declare tcgetsid also for POSIX2008.
68069
68070         * conform/Makefile: For now ignore errors from run-conformtest.
68071         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
68072         POSIX to avoid namespace pollution.  Don't prepend headers.
68073         * conform/data/aio.h-data: Fixes for POSIX testing.
68074         * conform/data/fcntl.h-data: Likewise.
68075         * conform/data/glob.h-data: Likewise.
68076         * conform/data/grp.h-data: Likewise.
68077         * conform/data/pthread.h-data: Likewise.
68078         * conform/data/pwd.h-data: Likewise.
68079         * conform/data/signal.h-data: Likewise.
68080         * conform/data/spawn.h-data: Likewise.
68081         * conform/data/stdio.h-data: Likewise.
68082         * conform/data/stdlib.h-data: Likewise.
68083         * conform/data/stropts.h-data: Likewise.
68084         * conform/data/sys/mman.h-data: Likewise.
68085         * conform/data/sys/stat.h-data: Likewise.
68086         * conform/data/sys/types.h-data: Likewise.
68087         * conform/data/sys/wait.h-data: Likewise.
68088         * conform/data/time.h-data: Likewise.
68089         * conform/data/unistd.h-data: Likewise.
68090         * conform/data/utime.h-data: Likewise.
68091
68092         * io/sys/stat.h: fchmod was always in POSIX.
68093         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
68094         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
68095         * rt/aio.h: Define __need_timespec before including <time.h>.
68096         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
68097         struct.  Add forward declaration of pthread_attr_t and use it in
68098         sigevent.
68099         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
68100         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
68101         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
68102         always remove CLK_TCK definition.
68103
68104 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
68105
68106         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
68107
68108 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
68109
68110         * conform/run-conformtest.sh: New file.
68111         * conform/Makefile: Run run-conformtest for tests.
68112         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
68113         support.
68114
68115         * conform/data/uchar.h-data: New file.
68116         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
68117         * conform/data/arpa/inet.h-data: Likewise.
68118         * conform/data/assert.h-data: Likewise.
68119         * conform/data/complex.h-data: Likewise.
68120         * conform/data/cpio.h-data: Likewise.
68121         * conform/data/ctype.h-data: Likewise.
68122         * conform/data/dirent.h-data: Likewise.
68123         * conform/data/dlfcn.h-data: Likewise.
68124         * conform/data/errno.h-data: Likewise.
68125         * conform/data/fcntl.h-data: Likewise.
68126         * conform/data/float.h-data: Likewise.
68127         * conform/data/fmtmsg.h-data: Likewise.
68128         * conform/data/fnmatch.h-data: Likewise.
68129         * conform/data/ftw.h-data: Likewise.
68130         * conform/data/glob.h-data: Likewise.
68131         * conform/data/grp.h-data: Likewise.
68132         * conform/data/iconv.h-data: Likewise.
68133         * conform/data/inttypes.h-data: Likewise.
68134         * conform/data/langinfo.h-data: Likewise.
68135         * conform/data/libgen.h-data: Likewise.
68136         * conform/data/limits.h-data: Likewise.
68137         * conform/data/locale.h-data: Likewise.
68138         * conform/data/math.h-data: Likewise.
68139         * conform/data/monetary.h-data: Likewise.
68140         * conform/data/mqueue.h-data: Likewise.
68141         * conform/data/ndbm.h-data: Likewise.
68142         * conform/data/net/if.h-data: Likewise.
68143         * conform/data/netdb.h-data: Likewise.
68144         * conform/data/netinet/in.h-data: Likewise.
68145         * conform/data/nl_types.h-data: Likewise.
68146         * conform/data/poll.h-data: Likewise.
68147         * conform/data/pthread.h-data: Likewise.
68148         * conform/data/pwd.h-data: Likewise.
68149         * conform/data/regex.h-data: Likewise.
68150         * conform/data/sched.h-data: Likewise.
68151         * conform/data/search.h-data: Likewise.
68152         * conform/data/semaphore.h-data: Likewise.
68153         * conform/data/setjmp.h-data: Likewise.
68154         * conform/data/signal.h-data: Likewise.
68155         * conform/data/spawn.h-data: Likewise.
68156         * conform/data/stdarg.h-data: Likewise.
68157         * conform/data/stdio.h-data: Likewise.
68158         * conform/data/stdlib.h-data: Likewise.
68159         * conform/data/string.h-data: Likewise.
68160         * conform/data/strings.h-data: Likewise.
68161         * conform/data/stropts.h-data: Likewise.
68162         * conform/data/sys/ipc.h-data: Likewise.
68163         * conform/data/sys/mman.h-data: Likewise.
68164         * conform/data/sys/msg.h-data: Likewise.
68165         * conform/data/sys/resource.h-data: Likewise.
68166         * conform/data/sys/select.h-data: Likewise.
68167         * conform/data/sys/sem.h-data: Likewise.
68168         * conform/data/sys/shm.h-data: Likewise.
68169         * conform/data/sys/socket.h-data: Likewise.
68170         * conform/data/sys/stat.h-data: Likewise.
68171         * conform/data/sys/statvfs.h-data: Likewise.
68172         * conform/data/sys/time.h-data: Likewise.
68173         * conform/data/sys/timeb.h-data: Likewise.
68174         * conform/data/sys/times.h-data: Likewise.
68175         * conform/data/sys/types.h-data: Likewise.
68176         * conform/data/sys/uio.h-data: Likewise.
68177         * conform/data/sys/un.h-data: Likewise.
68178         * conform/data/sys/utsname.h-data: Likewise.
68179         * conform/data/sys/wait.h-data: Likewise.
68180         * conform/data/syslog.h-data: Likewise.
68181         * conform/data/tar.h-data: Likewise.
68182         * conform/data/termios.h-data: Likewise.
68183         * conform/data/utime.h-data: Likewise.
68184         * conform/data/utmpx.h-data: Likewise.
68185         * conform/data/varargs.h-data: Likewise.
68186         * conform/data/wchar.h-data: Likewise.
68187         * conform/data/wctype.h-data: Likewise.
68188         * conform/data/wordexp.h-data: Likewise.
68189
68190         * include/stropts.h: New file.
68191         * include/uchar.h: New file.
68192         * include/aio.h: Changes to allow conformtest.pl to use the headers.
68193         * include/assert.h: Likewise.
68194         * include/ctype.h: Likewise.
68195         * include/dirent.h: Likewise.
68196         * include/dlfcn.h: Likewise.
68197         * include/fcntl.h: Likewise.
68198         * include/fnmatch.h: Likewise.
68199         * include/glob.h: Likewise.
68200         * include/grp.h: Likewise.
68201         * include/libio.h: Likewise.
68202         * include/locale.h: Likewise.
68203         * include/math.h: Likewise.
68204         * include/net/if.h: Likewise.
68205         * include/netdb.h: Likewise.
68206         * include/netinet/in.h: Likewise.
68207         * include/pthread.h: Likewise.
68208         * include/pwd.h: Likewise.
68209         * include/regex.h: Likewise.
68210         * include/sched.h: Likewise.
68211         * include/search.h: Likewise.
68212         * include/setjmp.h: Likewise.
68213         * include/signal.h: Likewise.
68214         * include/stdio.h: Likewise.
68215         * include/stdlib.h: Likewise.
68216         * include/string.h: Likewise.
68217         * include/sys/cdefs.h: Likewise.
68218         * include/sys/mman.h: Likewise.
68219         * include/sys/msg.h: Likewise.
68220         * include/sys/resource.h: Likewise.
68221         * include/sys/select.h: Likewise.
68222         * include/sys/socket.h: Likewise.
68223         * include/sys/stat.h: Likewise.
68224         * include/sys/statvfs.h: Likewise.
68225         * include/sys/time.h: Likewise.
68226         * include/sys/times.h: Likewise.
68227         * include/sys/uio.h: Likewise.
68228         * include/sys/utsname.h: Likewise.
68229         * include/sys/wait.h: Likewise.
68230         * include/termios.h: Likewise.
68231         * include/time.h: Likewise.
68232         * include/ulimit.h: Likewise.
68233         * include/unistd.h: Likewise.
68234         * include/utime.h: Likewise.
68235         * include/wchar.h: Likewise.
68236         * include/wctype.h: Likewise.
68237         * include/wordexp.h: Likewise.
68238
68239         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
68240
68241         * time/time.h: TIME_UTC must be a macro.
68242         Make timespec_get available for ISO C11 only as well.
68243
68244 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
68245
68246         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
68247         Reported by Peng Haitao <penght@cn.fujitsu.com>.
68248
68249 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68250
68251         * configure.in: Use -o not -a in test for unsupported multi-arch.
68252
68253 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68254
68255         * manual/texinfo.tex: Update to version 2012-01-19.16.
68256
68257 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68258
68259         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
68260
68261 2012-02-24  Roland McGrath  <roland@hack.frob.com>
68262
68263         [BZ #13738]
68264         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
68265         * manual/fdl-1.3.texi: New file.
68266         * manual/fdl-1.1.texi: File removed.
68267
68268         [BZ #13738]
68269         * manual/libc.texinfo (FDL_VERSION): New @set.
68270         Use it for mention of FDL in cover text.
68271         (Documentation License): Use it in @include file name.
68272
68273 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68274             Roland McGrath  <roland@hack.frob.com>
68275
68276         [BZ #5461]
68277         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
68278         (not LONG_LONG_MAX and LONG_LONG_MIN.
68279         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
68280         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
68281         name.
68282         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
68283
68284 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68285
68286         [BZ #2547]
68287         [BZ #11365]
68288         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
68289         manipulate bits before adding and subtracting TWO23[sx].
68290         * math/libm-test.inc (nearbyint_test): Add more tests.
68291
68292 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68293
68294         [BZ #2548]
68295         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
68296         bits before adding and subtracting TWO23[sx].
68297         * math/libm-test.inc (rint_test): Add more tests.
68298         (rint_test_tonearest): Likewise.
68299         (rint_test_towardzero): Likewise.
68300         (rint_test_downward): Likewise.
68301         (rint_test_upward: Likewise.
68302
68303 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68304
68305         [BZ #10110]
68306         * include/stdc-predef.h: New file.  Extracted from features.h.
68307         * include/features.h: Include stdc-predef.h.
68308         * Makefile (headers): Add stdc-predef.h.
68309         * CONFORMANCE (Compiler limitations): Update.
68310
68311 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68312
68313         * manual/libc.texinfo (VERSION, UPDATED): Revert.
68314
68315 2012-02-21  David S. Miller  <davem@davemloft.net>
68316
68317         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
68318         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68319
68320 2012-02-20  David S. Miller  <davem@davemloft.net>
68321
68322         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
68323         using a normal save/restore sequence, rather than allocating a
68324         dummy stack frame just to store a frame pointer and restore.
68325         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68326
68327 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68328
68329         * manual/install.texi: Fix stray word in line-wrapped comment.
68330
68331 2012-02-20  David S. Miller  <davem@davemloft.net>
68332
68333         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
68334         both binutils and gcc support GOTDATA.
68335
68336         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
68337         "rd %pc" in the PIC register setup sequences.
68338
68339         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
68340         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
68341         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68342         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
68343         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68344         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
68345         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
68346         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68347         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
68348         (SYSCALL_ERROR_HANDLER): Likewise.
68349         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68350         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68351         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
68352         (SYSCALL_ERROR_HANDLER): Likewise.
68353
68354         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
68355         (HAVE_GCC_GOTDATA): New.
68356         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
68357         relocation support in both binutils and gcc.
68358         * sysdeps/sparc/elf/configure: Regenerate.
68359
68360         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
68361         * sysdeps/sparc/sparc32/elf/configure: Delete.
68362         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
68363         * sysdeps/sparc/sparc64/elf/configure: Delete.
68364         * sysdeps/sparc/elf/configure.in: New file.
68365         * sysdeps/sparc/elf/configure: Generate.
68366
68367         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
68368         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
68369         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
68370         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
68371         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
68372
68373 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68374
68375         * manual/install.texi: Do not mention specific glibc version
68376         numbers.
68377         * manual/libc.texinfo (VERSION, UPDATED): Update.
68378         (@copying): Use @copyright{} and range of years.
68379
68380 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68381
68382         [BZ #13695]
68383         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
68384         [crti.S not in sysdirs] (generated): Do not append.
68385         [crti.S not in sysdirs] (omit-deps): Likewise.
68386         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
68387         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
68388         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
68389         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
68390         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
68391         Likewise.
68392         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
68393         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
68394         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
68395         * csu/defs.awk: Remove file.
68396         * sysdeps/generic/initfini.c: Likewise.
68397         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
68398         variable.
68399         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
68400         Likewise.
68401
68402 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68403
68404         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
68405         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
68406         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
68407         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
68408         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
68409         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
68410         <bits/epoll.h>.
68411         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
68412         (__EPOLL_PACKED): Define to empty if not defined by
68413         <bits/epoll.h>.
68414         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
68415         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68416         bits/epoll.h.
68417
68418 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68419
68420         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
68421         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
68422         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
68423         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
68424         <bits/timerfd.h>.
68425         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
68426         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68427         bits/timerfd.h.
68428
68429 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
68430
68431         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
68432         in C locale.
68433         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68434         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
68435         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
68436         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68437
68438 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
68439
68440         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
68441         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68442
68443 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
68444
68445         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
68446         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
68447         defined.
68448         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
68449         Likewise.
68450         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
68451         entry for 2.16.
68452
68453 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
68454
68455         * math/w_acos.c: Use non-signaling floating-point comparisons.
68456         * math/w_acosf.c: Likewise.
68457         * math/w_acosh.c: Likewise.
68458         * math/w_acoshf.c: Likewise.
68459         * math/w_acoshl.c: Likewise.
68460         * math/w_acosl.c: Likewise.
68461         * math/w_asin.c: Likewise.
68462         * math/w_asinf.c: Likewise.
68463         * math/w_asinl.c: Likewise.
68464         * math/w_atanh.c: Likewise.
68465         * math/w_atanhf.c: Likewise.
68466         * math/w_atanhl.c: Likewise.
68467         * math/w_exp2.c: Likewise.
68468         * math/w_exp2f.c: Likewise.
68469         * math/w_exp2l.c: Likewise.
68470         * math/w_j0.c: Likewise.
68471         * math/w_j0f.c: Likewise.
68472         * math/w_j0l.c: Likewise.
68473         * math/w_j1.c: Likewise.
68474         * math/w_j1f.c: Likewise.
68475         * math/w_j1l.c: Likewise.
68476         * math/w_jn.c: Likewise.
68477         * math/w_jnf.c: Likewise.
68478         * math/w_log.c: Likewise.
68479         * math/w_log10.c: Likewise.
68480         * math/w_log10f.c: Likewise.
68481         * math/w_log10l.c: Likewise.
68482         * math/w_log2.c: Likewise.
68483         * math/w_log2f.c: Likewise.
68484         * math/w_log2l.c: Likewise.
68485         * math/w_logf.c: Likewise.
68486         * math/w_logl.c: Likewise.
68487         * math/w_sqrt.c: Likewise.
68488         * math/w_sqrtf.c: Likewise.
68489         * math/w_sqrtl.c: Likewise.
68490         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
68491         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
68492         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
68493         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
68494         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
68495
68496 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68497
68498         [BZ #9739]
68499         * manual/string.texi (strnlen): Use correct parameter name in
68500         equivalent expression.
68501
68502 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68503
68504         [BZ #11174]
68505         * manual/users.texi (seteuid): Consistently use neweuid for
68506         argument name.
68507
68508 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
68509
68510         [BZ #13704]
68511         * manual/nss.texi (Services in the NSS configuration): Correct
68512         list of services in example configuration file.
68513
68514 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
68515
68516         [BZ #11322]
68517         * manual/arith.texi: Remove statements about negative zero
68518         behaving identically to zero.
68519
68520 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
68521
68522         [BZ #5993]
68523         * manual/install.texi: Do not document upgrading from libc5.
68524
68525 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
68526
68527         [BZ #4596]
68528         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
68529
68530 2012-02-18  David S. Miller  <davem@davemloft.net>
68531
68532         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
68533         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
68534         %o7 across the call.
68535         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
68536         instead.
68537         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
68538         SETUP_PIC_REG_LEAF.
68539         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68540         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
68541         * sysdeps/sparc/crtn.S: Likewise.
68542
68543 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
68544
68545         * aout/Makefile: Remove.
68546
68547 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
68548
68549         [BZ #13058]
68550         * manual/examples/argp-ex1.c (main): Format definition in GNU
68551         style.
68552         * manual/examples/argp-ex2.c (main): Likewise.
68553         * manual/examples/argp-ex3.c (main): Likewise.
68554         * manual/examples/argp-ex4.c (main): Likewise.
68555         * manual/examples/longopt.c (main): Use new-style prototype
68556         definition.
68557         * manual/examples/strncat.c (main): Specify return type and use
68558         (void) for arguments.
68559         * manual/examples/subopt.c (main): Use char **argv argument.
68560
68561 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68562
68563         [BZ #5077]
68564         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
68565         rounding modes.
68566
68567 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
68568
68569         [BZ #6907]
68570         * manual/string.texi (strchr): Change when strchrnul is
68571         recommended.
68572
68573 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
68574
68575         [BZ #174]
68576         * manual/locale.texi (setlocale): Document LOCPATH.
68577
68578 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68579
68580         [BZ #10210]
68581         * manual/process.texi (execle): Move @dots{} before last argument.
68582
68583 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
68584
68585         [BZ #12047]
68586         * manual/charset.texi (Generic Charset Conversion): Fix typo
68587         (LC_TYPE -> LC_CTYPE).
68588
68589 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
68590
68591         [BZ #5805]
68592         * manual/arith.texi (scalbn): Use @var{} on parameter names.
68593         (scalbnf): Likewise.
68594         (scalbnl): Likewise.
68595         (scalbln): Likewise.
68596         (scalblnf): Likewise.
68597         (scalblnl): Likewise.
68598         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
68599         (vwarnx): Likewise.
68600         (verr): Likewise.
68601         (verrx): Likewise.
68602         * manual/filesys.texi (telldir): Use braces around return type.
68603         * manual/llio.texi (mmap): Add space after comma.
68604         (mmap64): Likewise.
68605         * manual/math.texi (jn): Use @var{} on parameter names.
68606         (jnf): Likewise.
68607         (jnl): Likewise.
68608         (yn): Likewise.
68609         (ynf): Likewise.
68610         (ynl): Likewise.
68611         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
68612         line.
68613         * manual/resource.texi (ulimit): Use @dots{} instead of literal
68614         "...".
68615         (sched_get_priority_min): Remove semicolon on @deftypefun line.
68616         (sched_get_priority_max): Likewise.
68617         * manual/signal.texi (sigvec): Add space after comma.
68618         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
68619         names.
68620         (if_indextoname): Likewise.
68621         (if_freenameindex): Likewise.
68622         (sendto): Use ',' instead of '.' in prototype.
68623         * manual/startup.texi (syscall): Use @dots{} instead of literal
68624         "...".
68625         * manual/stdio.texi (__fpending): Separate initial words of
68626         paragraph from @deftypefun line.
68627         * manual/syslog.texi (syslog): Use @dots{} instead of literal
68628         "...".
68629         (vsyslog): Use @var{} on parameter names.
68630         * manual/terminal.texi (stty): Use @var{} on parameter names.
68631         * manual/users.texi (getutmp): Use @var{} on parameter names.
68632         (getutmpx): Likewise.
68633
68634 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68635
68636         [BZ #6884]
68637         * manual/stdio.texi (fopen): Fix typos in description of
68638         ",ccs=STRING".
68639
68640 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
68641
68642         [BZ #4026]
68643         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
68644         get clock_id definition.
68645
68646 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
68647
68648         [BZ #4822]
68649         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
68650         (madvise): Cast every argument to void on its own.
68651
68652 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68653
68654         [BZ #9902]
68655         * manual/startup.texi (Exit Status): Fix typo.
68656
68657 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
68658
68659         [BZ #10140]
68660         * manual/examples/argp-ex1.c: Include <stdlib.h>.
68661         * manual/examples/argp-ex2.c: Likewise.
68662         * manual/examples/argp-ex3.c: Likewise.
68663
68664 2012-02-16  Richard Henderson  <rth@redhat.com>
68665
68666         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
68667         * sysdeps/s390/s390-32/initfini.c: Remove.
68668         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
68669         * sysdeps/s390/s390-64/initfini.c: Remove.
68670
68671 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
68672
68673         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
68674         compiler output for sysdeps/generic/initfini.c.
68675         * sysdeps/sh/elf/initfini.c: Remove file.
68676
68677 2012-02-16  David S. Miller  <davem@davemloft.net>
68678
68679         [BZ #11494]
68680         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
68681
68682         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
68683         * sysdeps/sparc/crti.S: New file.
68684         * sysdeps/sparc/crtn.S: New file.
68685         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
68686         * sysdeps/sparc/sparc64/Makefile: Likewise.
68687
68688 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
68689
68690         [BZ #3335]
68691         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
68692
68693 2012-02-15  Roland McGrath  <roland@hack.frob.com>
68694
68695         [BZ #4822]
68696         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
68697
68698         * mach/devstream.c (cookie_io_functions_t): Macro removed.
68699         (write, read, close): Likewise.
68700         Patch by Aurelien Jarno <aurelien@aurel32.net>.
68701
68702 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
68703
68704         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
68705         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
68706         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
68707         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
68708         <bits/signalfd.h>.
68709         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
68710         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68711         bits/signalfd.h.
68712
68713 2012-02-14  Marek Polacek  <polacek@redhat.com>
68714
68715         * sysdeps/x86_64/crti.S: New file.
68716         * sysdeps/x86_64/crtn.S: New file.
68717         * sysdeps/x86_64/elf/initfini.c: Remove file.
68718
68719 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
68720
68721         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
68722         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
68723         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
68724         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
68725         <bits/inotify.h>.
68726         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
68727         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68728         bits/inotify.h.
68729
68730 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
68731
68732         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
68733         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
68734         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
68735         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
68736         <bits/eventfd.h>.
68737         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
68738         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
68739         bits/eventfd.h.
68740
68741 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
68742
68743         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
68744         __feraiseexcept instead of feraiseexcept.
68745
68746         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
68747         nanosleep invocations.
68748         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
68749         strings, and add error checking for a nanosleep invocations.
68750
68751 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
68752
68753         Replace FSF snail mail address with URLs, as per GNU coding standards.
68754         Most of the snail mail addresses were wrong anyway, and omitting
68755         them makes the source code easier to maintain.  Almost all of the
68756         changes are to license notices and to locale LC_IDENTIFICATION
68757         addresses, except for this one:
68758         * manual/libc.texinfo: In "Published by", give the FSF's URL,
68759         not its snail mail address.
68760
68761 2012-02-09  Richard Henderson  <rth@twiddle.net>
68762
68763         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
68764         of kernel-features.h.
68765
68766         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
68767
68768 2012-02-08  Marek Polacek  <polacek@redhat.com>
68769
68770         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
68771         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
68772         * sysdeps/gnu/_G_config.h: Likewise.
68773         * sysdeps/generic/_G_config.h: Likewise.
68774
68775 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
68776
68777         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
68778         tests.
68779         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68780
68781         * sysdeps/powerpc/powerpc32/crti.S: New file.
68782         * sysdeps/powerpc/powerpc32/crtn.S: New file.
68783         * sysdeps/powerpc/powerpc64/crti.S: New file.
68784         * sysdeps/powerpc/powerpc64/crtn.S: New file.
68785
68786         * Makeconfig (have-initfini): Don't set.
68787         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
68788         * configure.in (nopic_initfini): Don't substitute.
68789         * config.h.in (HAVE_INITFINI): Don't #undef.
68790         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
68791         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
68792
68793 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
68794
68795         Support crti.S and crtn.S provided directly by architectures.
68796         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
68797         [crti.S in sysdirs] (omit-deps): Likewise.
68798         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
68799         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
68800         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
68801         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
68802         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
68803         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
68804         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
68805         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
68806         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
68807         compiler output for sysdeps/generic/initfini.c.
68808         * sysdeps/i386/elf/Makefile: Remove file.
68809         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
68810
68811 2012-02-07  Marek Polacek  <polacek@redhat.com>
68812
68813         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
68814         * sysdeps/gnu/_G_config.h: Likewise.
68815         * sysdeps/mach/hurd/_G_config.h: Likewise.
68816
68817 2012-02-07  Marek Polacek  <polacek@redhat.com>
68818
68819         * math/Makefile (tests): Add tst-CMPLX2.
68820         * math/tst-CMPLX2.c: New file.
68821
68822 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
68823
68824         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
68825
68826         * math/libm-test.inc (jn_test): Add missing L suffix.
68827
68828 2012-02-06  Marek Polacek  <polacek@redhat.com>
68829
68830         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
68831         * sysdeps/i386/fpu/e_powf.S: Likewise.
68832         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
68833         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
68834         * sysdeps/i386/fpu/e_acosh.S: Likewise.
68835         * sysdeps/i386/fpu/e_pow.S: Likewise.
68836         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
68837         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
68838         * sysdeps/i386/fpu/s_expm1.S: Likewise.
68839         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
68840         * sysdeps/i386/fpu/e_log2.S: Likewise.
68841         * sysdeps/i386/fpu/e_log2l.S: Likewise.
68842         * sysdeps/i386/fpu/e_scalb.S: Likewise.
68843         * sysdeps/i386/fpu/e_powl.S: Likewise.
68844         * sysdeps/i386/fpu/s_log1p.S: Likewise.
68845         * sysdeps/i386/fpu/e_log10f.S: Likewise.
68846         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
68847         * sysdeps/i386/fpu/e_logl.S: Likewise.
68848         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
68849         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
68850         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
68851         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
68852         * sysdeps/i386/fpu/e_log2f.S: Likewise.
68853         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
68854         * sysdeps/i386/fpu/e_log.S: Likewise.
68855         * sysdeps/i386/fpu/s_cexp.S: Likewise.
68856         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
68857         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
68858         * sysdeps/i386/fpu/e_logf.S: Likewise.
68859         * sysdeps/i386/fpu/e_log10l.S: Likewise.
68860         * sysdeps/i386/fpu/e_atanh.S: Likewise.
68861         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
68862         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
68863         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
68864         * sysdeps/i386/fpu/e_log10.S: Likewise.
68865         * sysdeps/i386/fpu/s_frexp.S: Likewise.
68866         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
68867         * sysdeps/i386/fpu/s_asinh.S: Likewise.
68868         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
68869         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
68870         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
68871         * sysdeps/i386/asm-syntax.h: Likewise.
68872         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
68873         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
68874         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
68875         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
68876         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
68877         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
68878         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
68879         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
68880         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
68881         * sysdeps/powerpc/sysdep.h: Likewise.
68882         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
68883         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
68884
68885 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
68886
68887         [BZ #411]
68888         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
68889
68890 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
68891
68892         * sysdeps/i386/sysdep.h: Include <features.h>.
68893         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
68894         version.
68895
68896 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
68897
68898         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
68899         Define.
68900         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
68901         LOAD_PIC_REG_STR.
68902
68903 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
68904
68905         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
68906         (SETUP_PIC_REG): Use GET_PC_THUNK.
68907         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
68908         macro.
68909
68910 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
68911
68912         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
68913         for non-PIC compilation.
68914         (SETUP_PIC_REG): Add .p2align directive.
68915         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
68916         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
68917         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
68918         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
68919         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
68920         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
68921         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
68922         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
68923         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
68924         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
68925         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
68926         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
68927         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
68928         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
68929         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
68930         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
68931         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
68932         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
68933         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
68934         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
68935         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
68936         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
68937         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
68938         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
68939         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
68940         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
68941         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
68942         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
68943         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
68944         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
68945         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
68946         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
68947         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
68948         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
68949         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
68950         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
68951         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
68952         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
68953         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
68954         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
68955         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
68956
68957 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
68958
68959         * math/tst-CMPLX.c: Include <stdio.h>.
68960
68961 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
68962
68963         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
68964         float.
68965         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
68966         * sysdeps/sparc/bits/mathdef.h: Likewise.
68967
68968 2012-01-31  Marek Polacek  <polacek@redhat.com>
68969
68970         * libio/libio.h: Don't define _PARAMS.
68971         * locale/programs/config.h: Don't define PARAMS.
68972         * stdlib/strtol_l.c: Likewise.
68973         (__strtol_l): Remove PARAMS from the prototype.
68974
68975 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
68976
68977         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
68978         names.  Just use the correct names.  Remove unnecessary wrapper
68979         functions.
68980         * malloc/arena.c: Likewise.
68981         * malloc/hooks.c: Likewise.
68982
68983         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
68984         ARENA_TEST says not to.  Simplify test for creation of a new arena.
68985         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
68986
68987 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
68988
68989         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
68990         into tail calls.
68991         (update_get_addr): New function.
68992         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
68993         GET_ADDR_MODULE parameter.
68994
68995 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
68996
68997         * crypt/cert.c: Remove __STDC__ conditionals.
68998         * crypt/crypt-entry.c: Likewise.
68999         * crypt/crypt_util.c: Likewise.
69000         * libio/filedoalloc.c: Likewise.
69001         * libio/fileops.c: Likewise.
69002         * libio/genops.c: Likewise.
69003         * libio/iofclose.c: Likewise.
69004         * libio/iofdopen.c: Likewise.
69005         * libio/iofopen.c: Likewise.
69006         * libio/iofopen64.c: Likewise.
69007         * libio/iogetdelim.c: Likewise.
69008         * libio/iopopen.c: Likewise.
69009         * libio/obprintf.c: Likewise.
69010         * libio/oldfileops.c: Likewise.
69011         * libio/oldiofclose.c: Likewise.
69012         * libio/oldiofdopen.c: Likewise.
69013         * libio/oldiofopen.c: Likewise.
69014         * libio/oldiopopen.c: Likewise.
69015         * libio/wfiledoalloc.c: Likewise.
69016         * libio/wgenops.c: Likewise.
69017         * locale/programs/xmalloc.c: Likewise.
69018         * misc/syslog.c: Likewise.
69019         * stdio-common/xbug.c: Likewise.
69020         * string/memchr.c: Likewise.
69021         * string/memcmp.c: Likewise.
69022         * string/memrchr.c: Likewise.
69023         * string/rawmemchr.c: Likewise.
69024         * sysdeps/posix/getcwd.c: Likewise.
69025         * time/strftime_l.c: Likewise.
69026
69027 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69028
69029         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
69030         * config.make.in (config-cflags-sse2avx): Define.
69031         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
69032         Fix typo.
69033
69034 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
69035
69036         * scripts/config.guess: Update from upstream config git repository.
69037         * scripts/config.sub: Likewise.
69038
69039 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
69040
69041         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
69042         (EM_NUM): Update.
69043         (R_TILEPRO_*, R_TILEGX_*): New macros.
69044
69045         * scripts/firstversions.awk: Fix bug in version range handling.
69046
69047         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
69048
69049         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
69050
69051         * include/sys/epoll.h: New file.
69052         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
69053         libc_hidden_def.
69054
69055 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
69056
69057         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
69058         Avoid unnecessary __WORDSIZE == 64 test.
69059         (fmaxf): Use VEX format if possible.
69060         (fmax): Likewise.
69061         (fminf): Likewise.
69062         (fmin): Likewise.
69063
69064         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
69065         * math/math_private.h: Remove libc_fegetround* and
69066         libc_fesetround*.
69067         * sysdeps/i386/configure.in: Check for -msse2avx.
69068         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
69069         also if SSE2AVX is defined.
69070         Remove libc_fegetround* and libc_fesetround*.
69071         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
69072         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
69073         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
69074         of HAS_YMM_USABLE.
69075         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69076         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69077         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69078         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69079         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69080
69081         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
69082
69083 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69084
69085         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
69086         size is not set.
69087         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
69088
69089 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
69090
69091         [BZ #13618]
69092         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
69093         relocation.
69094         * Makeconfig (libm): Define.
69095         * elf/Makefile: Add rules to build and run tst-relsort1.
69096         * elf/tst-relsort1.c: New file.
69097         * elf/tst-relsort1mod1.c: New file.
69098         * elf/tst-relsort1mod2.c: New file.
69099
69100 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
69101
69102         * math/s_ldexp.c: Remove __STDC__ conditionals.
69103         * math/s_ldexpf.c: Likewise.
69104         * math/s_ldexpl.c: Likewise.
69105         * math/s_nextafter.c: Likewise.
69106         * math/s_nexttowardf.c: Likewise.
69107         * math/s_significand.c: Likewise.
69108         * math/s_significandf.c: Likewise.
69109         * math/s_significandl.c: Likewise.
69110         * math/w_jnl.c: Likewise.
69111         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
69112         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
69113         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
69114         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
69115         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
69116         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
69117         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
69118         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
69119         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
69120         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
69121         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
69122         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
69123         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
69124         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
69125         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
69126         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
69127         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
69128         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
69129         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
69130         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
69131         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
69132         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
69133         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
69134         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
69135         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
69136         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
69137         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
69138         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
69139         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
69140         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
69141         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
69142         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
69143         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
69144         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
69145         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
69146         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
69147         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
69148         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
69149         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
69150         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
69151         * sysdeps/ieee754/k_standard.c: Likewise.
69152         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
69153         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
69154         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
69155         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
69156         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
69157         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
69158         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
69159         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
69160         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
69161         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
69162         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
69163         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
69164         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
69165         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
69166         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
69167         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
69168         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
69169         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
69170         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
69171         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
69172         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
69173         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
69174         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
69175         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
69176         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
69177         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
69178         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
69179         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
69180         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
69181         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
69182         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
69183         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
69184         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
69185         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
69186         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
69187         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
69188         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
69189         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
69190         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
69191         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
69192         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
69193         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
69194         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
69195         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
69196         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
69197         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
69198         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
69199         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
69200         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
69201         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
69202         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
69203         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
69204         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
69205         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
69206         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
69207         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
69208         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
69209         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
69210         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
69211         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
69212         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
69213         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
69214         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
69215         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
69216         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
69217         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
69218         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
69219         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
69220         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
69221         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
69222         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
69223         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
69224         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
69225         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
69226         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
69227         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
69228         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
69229         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
69230         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
69231         * sysdeps/ieee754/s_matherr.c: Likewise.
69232         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
69233         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
69234         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
69235         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
69236
69237 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69238
69239         * crypt/md5.h: Remove __STDC__ conditionals.
69240         * libio/libioP.h: Likewise.
69241         * locale/programs/config.h: Likewise.
69242         * sysdeps/generic/sysdep.h: Likewise.
69243         * sysdeps/i386/asm-syntax.h: Likewise.
69244         * sysdeps/s390/asm-syntax.h: Likewise.
69245         * sysdeps/unix/sysdep.h: Likewise.
69246         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
69247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
69248
69249 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69250
69251         * libio/libio.h: Remove __STDC__ conditionals.
69252         * malloc/obstack.h: Likewise.
69253         * math/complex.h: Likewise.
69254         * math/math.h: Likewise.
69255         * sysdeps/generic/_G_config.h: Likewise.
69256         * sysdeps/gnu/_G_config.h: Likewise.
69257         * sysdeps/mach/hurd/_G_config.h: Likewise.
69258         * sysdeps/powerpc/bits/mathdef.h: Likewise.
69259         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69260         * sysdeps/sparc/bits/mathdef.h: Likewise.
69261
69262 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
69263
69264         [BZ #13583]
69265         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
69266         Clean up HAS_* macros.
69267         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
69268         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
69269         possible.
69270         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
69271         HAS_AVX.
69272         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69273         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69274         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69275         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69276         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69277
69278 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
69279
69280         * elf/tst-unique3.cc (gets): Remove declaration.
69281         * elf/tst-unique3lib.cc (gets): Likewise.
69282         * elf/tst-unique3lib2.cc (gets): Likewise.
69283         * elf/tst-unique4.cc (gets): Likewise.
69284
69285 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
69286
69287         * include/stdio.h: Add C++ protection.  Add gets declarations and
69288         definitions.
69289         * debug/tst-chk1.c: Don't declare gets here.
69290         * stdio-common/tst-gets.c: Likewise.
69291
69292 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69293
69294         * posix/glob: Remove directory.
69295
69296 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69297
69298         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
69299
69300 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
69301
69302         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
69303         of the non-standard EPFNOSUPPORT.
69304
69305 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69306
69307         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
69308         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
69309         ANYWHERE set to 1 only on KERN_NO_SPACE error.
69310
69311 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
69312
69313         * wcsmbs/uchar.h: Test __STDC_VERSION__.
69314
69315 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
69316
69317         * nscd/aicache.c (addhstaiX): Do not cache negative results of
69318         transient errors.
69319         * nscd/grpcache.c (cache_addgr): Likewise.
69320         * nscd/hstcache.c (cache_addhst): Likewise.
69321         * nscd/initgrcache.c (addinitgroupsX): Likewise.
69322         * nscd/pwdcache.c (cache_addpw): Likewise.
69323         * nscd/servicescache.c (cache_addserv): Likewise.
69324
69325 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
69326
69327         * malloc/malloc.c: Various cleanups.
69328         * malloc/hooks.c: Likewise.
69329
69330         * stdlib/Makefile (tests): Add bug-fmtmsg1.
69331         * stdlib/bug-fmtmsg1.c: New file.
69332
69333         * stdlib/fmtmsg.c (init): Add missing unlock.
69334         Patch by Peng Haitao <penght@cn.fujitsu.com>.
69335
69336 2012-01-12  Marek Polacek  <polacek@redhat.com>
69337
69338         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
69339         and _GNU_SOURCE.
69340
69341 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
69342
69343         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
69344         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
69345         macro to ensure uniqueness of label name.
69346         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
69347         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
69348
69349 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
69350
69351         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
69352
69353         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
69354         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
69355         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
69356         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
69357
69358 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
69359
69360         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
69361
69362         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
69363         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
69364         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
69365
69366         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
69367
69368         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
69369         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
69370         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
69371         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
69372
69373         * math/bits/math-finite.h: Add ldexp support.
69374
69375 2012-01-10  Marek Polacek  <polacek@redhat.com>
69376
69377         * locale/programs/localedef.h (show_archive_content): Add noreturn
69378         attribute.
69379
69380 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
69381
69382         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
69383
69384 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69385
69386         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
69387
69388         * io/Makefile (headers): Add bits/poll2.h.
69389
69390 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
69391
69392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
69393         typo #include statement.
69394
69395 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69396
69397         * include/sys/cdefs.h: Define __attribute_alloc_size.
69398         * catgets/gencat.c: Add alloc_size attribute and apply consistently
69399         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
69400         * elf/pldd.c: Likewise.
69401         * iconv/iconv_charmap.c: Likewise.
69402         * iconv/iconvconfig.c: Likewise.
69403         * iconv/strtab.c: Likewise.
69404         * locale/programs/locale.c: Likewise.
69405         * locale/programs/localedef.h: Likewise.
69406         * locale/programs/simple-hash.c: Likewise.
69407         * nscd/nscd.h: Likewise.
69408         * nss/makedb.c: Likewise.
69409         * sysdeps/generic/ldconfig.h: Likewise.
69410         * locale/programs/localedef.c: Remove xmalloc prototype.
69411         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
69412
69413 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
69414
69415         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
69416         appropriate.
69417
69418 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69419
69420         * math/Makefile (tests): Add tst-CMPLX.
69421         * math/tst-CMPLX.c: New file.
69422
69423         * math/complex.h (CMPLXL): Fix typo.
69424
69425         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
69426         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
69427         GLIBC_2.16.
69428         * debug/tst-chk1.c: Add poll and ppoll tests.
69429         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
69430         * include/sys/poll.h: Add hidden proto for ppoll.
69431         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
69432         * sysdeps/mach/hurd/ppoll.c: Likewise.
69433         * io/ppoll.c: Likewise.
69434         * debug/poll_chk.c: New file.
69435         * debug/ppoll_chk.c: New file.
69436         * include/bits/poll2.h: New file.
69437         * io/bits/poll2.h: New file.
69438
69439         [BZ #1350]
69440         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
69441
69442         * configure.in: static is always set to yes.  Remove.
69443         * config.make.in: Don't set build-static.
69444         * Makeconfig: Remove use of build-static.
69445         * dlfcn/Makefile: Likewise.
69446         * elf/Makefile: Likewise.
69447         * math/Makefile: Likewise.
69448         * misc/Makefile: Likewise.
69449         * nptl/Makefile: Likewise.
69450         * sysdeps/mach/hurd/Makefile: Likewise.
69451
69452         * configure.in: PWD_P is not used anymore.
69453         * config.make.in: Remove PWD_P entry.
69454
69455         * configure.in: Remove last remnants of RANLIB.
69456         No need to check for signed size_t anymore.
69457         Don't set libc_commonpagesize and libc_relro_required here for Alpha
69458         and IA-64.
69459         Remove __builtin_expect test because we require at least gcc 3.4.
69460         * aclocal.m4: Likewise.
69461
69462         * wcsmbs/mbrtoc16.c: Implement using towc function.
69463         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
69464         * wcsmbs/wcsmbsload.c: Likewise.
69465         * iconv/gconv_simple.c: Likewise.
69466         * iconv/gconv_int.h: Likewise.
69467         * iconv/gconv_builtin.h: Likewise.
69468         * iconv/iconv_prog.c: Remove CHAR16 handling.
69469
69470         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
69471
69472         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
69473
69474         * configure.in: Remove --with-elf and --enable-bounded options.
69475         Dont set base_machine for ia64.  More non-ELF conditions removed.
69476         Remove testing and setting of leading underscore information.
69477         * config.make.in (build-bounded): Set to no.
69478         * config.h.in: Remove NO_UNDERSCORES entry.
69479         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
69480         them.
69481         * csu/start.c: Remove !NO_UNDERSCORE code.
69482         * locale/localeinfo.h: Likewise.
69483         * sysdeps/generic/machine-gmon.h: Likewise.
69484         * sysdeps/generic/sysdep.h: Likewise.
69485         * sysdeps/i386/sysdep.h: Likewise.
69486         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
69487         * sysdeps/mach/sysdep.h: Likewise.
69488         * sysdeps/s390/s390-32/sysdep.h: Likewise.
69489         * sysdeps/s390/s390-64/sysdep.h: Likewise.
69490         * sysdeps/sh/sysdep.h: Likewise.
69491         * sysdeps/sparc/sparc32/alloca.S: Likewise.
69492         * sysdeps/unix/i386/sysdep.S: Likewise.
69493         * sysdeps/unix/sparc/start.c: Likewise.
69494         * sysdeps/unix/sparc/sysdep.S: Likewise.
69495         * sysdeps/unix/sparc/sysdep.h: Likewise.
69496         * sysdeps/unix/start.c: Likewise.
69497         * sysdeps/unix/x86_64/sysdep.S: Likewise.
69498         * sysdeps/x86_64/sysdep.h: Likewise.
69499
69500 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
69501
69502         [BZ #13553]
69503         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
69504         for non-gcc.
69505         * argp/argp-fmtstream.h: Use const instead __const.
69506         * argp/argp.h: Likewise.
69507         * assert/assert.h: Likewise.
69508         * bits/fenv.h: Likewise.
69509         * bits/sched.h: Likewise.
69510         * bits/sigset.h: Likewise.
69511         * bits/sigthread.h: Likewise.
69512         * catgets/nl_types.h: Likewise.
69513         * conform/data/pthread.h-data: Likewise.
69514         * crypt/crypt-private.h: Likewise.
69515         * crypt/crypt.h: Likewise.
69516         * crypt/crypt_util.c: Likewise.
69517         * ctype/ctype.h: Likewise.
69518         * debug/execinfo.h: Likewise.
69519         * debug/mbsnrtowcs_chk.c: Likewise.
69520         * debug/mbsrtowcs_chk.c: Likewise.
69521         * debug/wcsnrtombs_chk.c: Likewise.
69522         * debug/wcsrtombs_chk.c: Likewise.
69523         * debug/wcstombs_chk.c: Likewise.
69524         * dirent/dirent.h: Likewise.
69525         * dlfcn/dlfcn.h: Likewise.
69526         * elf/neededtest4.c: Likewise.
69527         * grp/grp.h: Likewise.
69528         * gshadow/gshadow.h: Likewise.
69529         * iconv/gconv.h: Likewise.
69530         * iconv/gconv_int.h: Likewise.
69531         * iconv/gconv_simple.c: Likewise.
69532         * iconv/iconv.h: Likewise.
69533         * iconv/loop.c: Likewise.
69534         * iconv/skeleton.c: Likewise.
69535         * include/aio.h: Likewise.
69536         * include/aliases.h: Likewise.
69537         * include/argz.h: Likewise.
69538         * include/arpa/inet.h: Likewise.
69539         * include/assert.h: Likewise.
69540         * include/dirent.h: Likewise.
69541         * include/dlfcn.h: Likewise.
69542         * include/execinfo.h: Likewise.
69543         * include/fcntl.h: Likewise.
69544         * include/fenv.h: Likewise.
69545         * include/glob.h: Likewise.
69546         * include/grp.h: Likewise.
69547         * include/libintl.h: Likewise.
69548         * include/mntent.h: Likewise.
69549         * include/netdb.h: Likewise.
69550         * include/pwd.h: Likewise.
69551         * include/rpc/netdb.h: Likewise.
69552         * include/sched.h: Likewise.
69553         * include/search.h: Likewise.
69554         * include/shadow.h: Likewise.
69555         * include/signal.h: Likewise.
69556         * include/stdio.h: Likewise.
69557         * include/stdlib.h: Likewise.
69558         * include/string.h: Likewise.
69559         * include/sys/socket.h: Likewise.
69560         * include/sys/stat.h: Likewise.
69561         * include/sys/statfs.h: Likewise.
69562         * include/sys/statvfs.h: Likewise.
69563         * include/sys/syslog.h: Likewise.
69564         * include/sys/time.h: Likewise.
69565         * include/sys/uio.h: Likewise.
69566         * include/time.h: Likewise.
69567         * include/unistd.h: Likewise.
69568         * include/utmp.h: Likewise.
69569         * include/wchar.h: Likewise.
69570         * include/wctype.h: Likewise.
69571         * inet/aliases.h: Likewise.
69572         * inet/arpa/inet.h: Likewise.
69573         * inet/netinet/ether.h: Likewise.
69574         * inet/netinet/in.h: Likewise.
69575         * intl/libintl.h: Likewise.
69576         * io/bits/fcntl2.h: Likewise.
69577         * io/fcntl.h: Likewise.
69578         * io/ftw.h: Likewise.
69579         * io/sys/poll.h: Likewise.
69580         * io/sys/stat.h: Likewise.
69581         * io/sys/statfs.h: Likewise.
69582         * io/sys/statvfs.h: Likewise.
69583         * io/utime.h: Likewise.
69584         * libio/bits/stdio.h: Likewise.
69585         * libio/bits/stdio2.h: Likewise.
69586         * libio/libio.h: Likewise.
69587         * libio/libioP.h: Likewise.
69588         * libio/stdio.h: Likewise.
69589         * locale/lc-ctype.c: Likewise.
69590         * locale/locale.h: Likewise.
69591         * login/utmp.h: Likewise.
69592         * malloc/arena.c: Likewise.
69593         * malloc/malloc.c: Likewise.
69594         * malloc/malloc.h: Likewise.
69595         * malloc/mcheck.c: Likewise.
69596         * malloc/mtrace.c: Likewise.
69597         * math/bits/mathcalls.h: Likewise.
69598         * math/fenv.h: Likewise.
69599         * math/math_private.h: Likewise.
69600         * misc/bits/error.h: Likewise.
69601         * misc/bits/syslog.h: Likewise.
69602         * misc/err.h: Likewise.
69603         * misc/error.h: Likewise.
69604         * misc/fstab.h: Likewise.
69605         * misc/mntent.h: Likewise.
69606         * misc/regexp.h: Likewise.
69607         * misc/search.h: Likewise.
69608         * misc/sgtty.h: Likewise.
69609         * misc/sys/mman.h: Likewise.
69610         * misc/sys/syslog.h: Likewise.
69611         * misc/sys/uio.h: Likewise.
69612         * misc/sys/xattr.h: Likewise.
69613         * misc/ttyent.h: Likewise.
69614         * nis/rpcsvc/ypclnt.h: Likewise.
69615         * nss/nss.h: Likewise.
69616         * posix/bits/unistd.h: Likewise.
69617         * posix/fnmatch.h: Likewise.
69618         * posix/glob.h: Likewise.
69619         * posix/sched.h: Likewise.
69620         * posix/spawn.h: Likewise.
69621         * posix/sys/wait.h: Likewise.
69622         * posix/unistd.h: Likewise.
69623         * posix/wordexp.h: Likewise.
69624         * pwd/pwd.h: Likewise.
69625         * resolv/netdb.h: Likewise.
69626         * resource/sys/resource.h: Likewise.
69627         * rt/aio.h: Likewise.
69628         * rt/bits/mqueue2.h: Likewise.
69629         * rt/mqueue.h: Likewise.
69630         * shadow/shadow.h: Likewise.
69631         * signal/signal.h: Likewise.
69632         * socket/send.c: Likewise.
69633         * socket/sendto.c: Likewise.
69634         * socket/sys/socket.h: Likewise.
69635         * stdio-common/printf.h: Likewise.
69636         * stdlib/bits/stdlib.h: Likewise.
69637         * stdlib/fmtmsg.h: Likewise.
69638         * stdlib/monetary.h: Likewise.
69639         * stdlib/stdlib.h: Likewise.
69640         * stdlib/ucontext.h: Likewise.
69641         * streams/stropts.h: Likewise.
69642         * string/argz.h: Likewise.
69643         * string/bits/string2.h: Likewise.
69644         * string/string.h: Likewise.
69645         * string/strings.h: Likewise.
69646         * sunrpc/rpc/auth.h: Likewise.
69647         * sunrpc/rpc/auth_des.h: Likewise.
69648         * sunrpc/rpc/clnt.h: Likewise.
69649         * sunrpc/rpc/netdb.h: Likewise.
69650         * sunrpc/rpc/pmap_clnt.h: Likewise.
69651         * sunrpc/rpc/xdr.h: Likewise.
69652         * sysdeps/generic/inttypes.h: Likewise.
69653         * sysdeps/generic/net/if.h: Likewise.
69654         * sysdeps/generic/sys/swap.h: Likewise.
69655         * sysdeps/gnu/net/if.h: Likewise.
69656         * sysdeps/gnu/utmpx.h: Likewise.
69657         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
69658         * sysdeps/i386/i486/bits/string.h: Likewise.
69659         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
69660         * sysdeps/s390/bits/string.h: Likewise.
69661         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
69662         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
69663         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
69664         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
69665         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
69666         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
69667         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
69668         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
69669         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
69670         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
69671         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
69672         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
69673         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
69674         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
69675         * sysdeps/unix/sysv/linux/readv.c: Likewise.
69676         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
69677         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
69678         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
69679         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
69680         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
69681         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
69682         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
69683         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
69684         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
69685         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
69686         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
69687         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
69688         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
69689         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
69690         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
69691         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
69692         * sysvipc/sys/ipc.h: Likewise.
69693         * sysvipc/sys/msg.h: Likewise.
69694         * sysvipc/sys/sem.h: Likewise.
69695         * sysvipc/sys/shm.h: Likewise.
69696         * termios/termios.h: Likewise.
69697         * time/sys/time.h: Likewise.
69698         * time/time.h: Likewise.
69699         * wcsmbs/bits/wchar2.h: Likewise.
69700         * wcsmbs/uchar.h: Likewise.
69701         * wcsmbs/wchar.h: Likewise.
69702         * wctype/wctype.h: Likewise.
69703
69704         [BZ #13551]
69705         * Makeconfig: Remove all but ELF support including AIX support.
69706         * Makerules: Likewise.
69707         * config.h.in: Likewise.
69708         * config.make.in: Likewise.
69709         * configure: Likewise.
69710         * configure.in: Likewise.
69711         * csu/Makefile: Likewise.
69712         * csu/version.c: Likewise.
69713         * debug/Makefile: Likewise.
69714         * dlfcn/Makefile: Likewise.
69715         * elf/Makefile: Likewise.
69716         * extra-lib.mk: Likewise.
69717         * iconv/Makefile: Likewise.
69718         * include/libc-symbols.h: Likewise.
69719         * include/shlib-compat.h: Likewise.
69720         * resolv/Makefile: Likewise.
69721         * resolv/res_libc.c: Likewise.
69722         * rt/Makefile: Likewise.
69723         * sysdeps/i386/asm-syntax.h: Likewise.
69724         * sysdeps/i386/sysdep.h: Likewise.
69725         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
69726         * sysdeps/mach/sysdep.h: Likewise.
69727         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
69728         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
69729         * sysdeps/s390/asm-syntax.h: Likewise.
69730         * sysdeps/s390/s390-32/sysdep.h: Likewise.
69731         * sysdeps/s390/s390-64/sysdep.h: Likewise.
69732         * sysdeps/sh/sysdep.h: Likewise.
69733         * sysdeps/unix/sparc/sysdep.h: Likewise.
69734         * sysdeps/wordsize-32/divdi3.c: Likewise.
69735         * sysdeps/x86_64/sysdep.h: Likewise.
69736
69737         * argp/Versions: Remove _argp_unlock_xxx.
69738
69739         [BZ #13559]
69740         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
69741         * abilist/libBrokenLocale.abilist: Likewise.
69742         * abilist/libanl.abilist: Likewise.
69743         * abilist/libc.abilist: Likewise.
69744         * abilist/libcrypt.abilist: Likewise.
69745         * abilist/libdl.abilist: Likewise.
69746         * abilist/libm.abilist: Likewise.
69747         * abilist/libnsl.abilist: Likewise.
69748         * abilist/libpthread.abilist: Likewise.
69749         * abilist/libresolv.abilist: Likewise.
69750         * abilist/librt.abilist: Likewise.
69751         * abilist/libthread_db.abilist: Likewise.
69752         * abilist/libutil.abilist: Likewise.
69753         * abilist/libnss_db.abilist: New file.
69754
69755         * scripts/abilist.awk: Add support for indirect functions.
69756
69757         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
69758
69759         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
69760
69761         * shlib-versions: Remove entries for ports architectures.
69762
69763         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
69764         files in ports.
69765         * elf/stackguard-macros.h: Remove support for IA-64.
69766         * elf/tst-auditmod1.c: Likewise.
69767         * sysdeps/generic/ldsodefs.h: Likewise.
69768
69769         * sysdeps/unix/sysv/linux/configure.in: Ports should define
69770         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
69771         configure files.
69772
69773         [BZ #13552]
69774         * configure.in: Remove --enable-omitfp support.
69775         * FAQ.in: Adjust.
69776         * config.make.in: Likewise.
69777         * Makeconfig: Likewise.
69778         * manual/install.texi: Likewise.
69779
69780         In case anyone cares, the IA-64 architecture could move to ports.
69781         * sysdeps/ia64/*: Removed.
69782         * sysdeps/unix/sysv/linux/ia64/*: Removed.
69783         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
69784
69785         [BZ #13555]
69786         * configure.in: Remove entries for unsupported architectures.
69787
69788         [BZ #13533]
69789         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
69790         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
69791         routines.
69792         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
69793         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
69794         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
69795         fall back to using wcrtomb.
69796         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
69797         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
69798         renaming.
69799         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
69800         * wcsmbs/tst-c16c32-1.c: New file.
69801
69802         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
69803         local variable.
69804
69805         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
69806
69807         * elf/tst-unique3.cc: Add explicit declaration of gets.
69808         * elf/tst-unique3lib.cc: Likewise.
69809         * elf/tst-unique3lib2.cc: Likewise.
69810         * elf/tst-unique4.cc: Likewise.
69811
69812         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
69813
69814 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
69815
69816         [BZ #13566]
69817         * assert/assert.h (static_assert): Don't define for C++.
69818         * libio/stdio.h (gets): Do declare for C++ <= C++11.
69819         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
69820
69821 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
69822
69823         * iconv/loop.c (single loop): Fix assertion in storing of
69824         remaining bytes.
69825
69826         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
69827
69828 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
69829
69830         * posix/getconf.c: Update copyright year.
69831         * nss/getent.c: Likewise.
69832         * nss/makedb.c: Likewise.
69833         * iconv/iconvconfig.c: Likewise.
69834         * iconv/iconv_prog.c: Likewise.
69835         * elf/ldconfig.c: Likewise.
69836         * elf/pldd.c: Likewise.
69837         * elf/sotruss.ksh: Likewise.
69838         * catgets/gencat.c: Likewise.
69839         * csu/version.c: Likewise.
69840         * elf/ldd.bash.in: Likewise.
69841         * elf/sprof.c (print_version): Likewise.
69842         * locale/programs/locale.c: Likewise.
69843         * locale/programs/localedef.c: Likewise.
69844         * login/programs/pt_chown.c: Likewise.
69845         * nscd/nscd.c (print_version): Likewise.
69846         * debug/xtrace.sh: Likewise.
69847         * malloc/memusage.sh: Likewise.
69848         * malloc/mtrace.pl: Likewise.
69849         * debug/catchsegv.sh: Likewise.
69850
69851 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
69852
69853         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
69854         pure attribute.
69855
69856 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
69857
69858         [BZ #13533]
69859         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
69860         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
69861         transformations.
69862         * iconv/gconv_int.h: Likewise.
69863         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
69864         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
69865         from libc for GLIBC_2.16.
69866         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
69867         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
69868         * wcsmbs/uchar.h: Really define mbstate_t.
69869         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
69870         * wcsmbs/c16rtomb.c: New file.
69871         * wcsmbs/mbrtoc16.c: New file.
69872         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
69873         for C/POSIX locale.
69874         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
69875         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
69876
69877         * wcsmbs/wchar.h: Add missing __restrict.
69878
69879 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
69880
69881         [BZ #13532]
69882         * time/Makefile (routines): Add timespec_get.
69883         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
69884         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
69885         timespec for ISO C11.
69886         * time/timespec_get.c: New file.
69887         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
69888         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
69889
69890         [BZ #13531]
69891         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
69892         * stdlib/stdlib.h: Declare aligned_alloc.
69893         * Versions.def: Add GLIBC_2.16 for libc.
69894         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
69895
69896         [BZ 13527]
69897         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
69898         ISO C11.
69899
69900         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
69901         code.
69902
69903         [BZ #13528]
69904         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
69905
69906         [BZ #13529]
69907         * assert/assert.h (static_assert): Define.
69908
69909         * version.h: Update for 2.16 development version.
69910
69911         [BZ #13526]
69912         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
69913         _ISOC11_SOURCE.
69914
69915         * version.h (RELEASE): Bump for 2.15 release.
69916         * include/features.h (__GLIBC_MINOR__): Bump to 15.
69917
69918         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
69919         Patch by Marek Polacek <mpolacek@redhat.com>.
69920
69921         * bits/byteswap.h: Protect long long constants with __extension__.
69922         * sysdeps/i386/bits/byteswap.h: Likewise.
69923         * sysdeps/ia64/bits/byteswap.h: Likewise.
69924         * sysdeps/s390/bits/byteswap.h: Likewise.
69925         * sysdeps/x86_64/bits/byteswap.h: Likewise.
69926
69927 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
69928
69929         [BZ #13540]
69930         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
69931         destination buffer.
69932         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
69933
69934 2011-12-23  Marek Polacek  <polacek@redhat.com>
69935
69936         * elf/dl-addr.c (determine_info): Add inline keyword.
69937         * elf/tst-auditmod4b.c (check_avx): Likewise.
69938         * elf/tst-auditmod6b.c (check_avx): Likewise.
69939         * elf/tst-auditmod6c.c (check_avx): Likewise.
69940         * elf/tst-auditmod7b.c (check_avx): Likewise.
69941
69942 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
69943
69944         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
69945         !__SSE_MATH__.
69946
69947 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
69948
69949         [BZ #13540]
69950         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
69951         processing for last bytes.
69952
69953 2011-08-06  Bruno Haible  <bruno@clisp.org>
69954
69955         [BZ #13061]
69956         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
69957         U+0385, not to U+1FEE.
69958
69959         [BZ #13062]
69960         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
69961         entry for U+00A5 U+0301.
69962
69963 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
69964
69965         [BZ #13166]
69966         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
69967         buffer for the output is too small.
69968
69969         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
69970         optimization.
69971
69972         [BZ #13185]
69973         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
69974         SSE flags if possible.
69975
69976 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
69977
69978         [BZ #13540]
69979         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
69980         processing for last bytes.
69981
69982 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
69983
69984         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
69985         (syscall-list-default-options, syscall-list-default-condition)
69986         (syscall-list-includes): Define.
69987         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
69988         list of ABIs and options and #if conditions for each ABI.  Do not
69989         handle common syscalls between ABIs specially.
69990         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
69991         Remove.
69992         (syscall-list-variants, syscall-list-32bit-options)
69993         (syscall-list-32bit-condition, syscall-list-64bit-options)
69994         (syscall-list-64bit-condition): Define.
69995         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
69996         (syscall-list-variants, syscall-list-32bit-options)
69997         (syscall-list-32bit-condition, syscall-list-64bit-options)
69998         (syscall-list-64bit-condition): Define.
69999         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
70000         Remove.
70001         (syscall-list-variants, syscall-list-32bit-options)
70002         (syscall-list-32bit-condition, syscall-list-64bit-options)
70003         (syscall-list-64bit-condition): Define.
70004         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
70005         Remove.
70006         (syscall-list-variants, syscall-list-32bit-options)
70007         (syscall-list-32bit-condition, syscall-list-64bit-options)
70008         (syscall-list-64bit-condition): Define.
70009
70010 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70011
70012         * locale/iso-639.def: Add brx entry.
70013
70014         [BZ #13328]
70015         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
70016         Proposed by Mariusz_Cukr <marcukr@op.pl>.
70017
70018         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
70019         __feraiseexcept_renamed.
70020
70021 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70022
70023         [BZ #13538]
70024         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
70025         EPOLLET with unsigned values.
70026         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70027         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70028
70029         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
70030         to large cancellation.
70031         * math/s_cacoshf.c: Likewise.
70032         * math/s_cacoshl.c: Likewise.
70033
70034 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
70035
70036         [BZ #13305]
70037         [BZ #12786]
70038         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
70039         * math/s_cacoshf.c: Likewise.
70040         * math/s_cacoshl.c: Likewise.
70041
70042 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70043
70044         [BZ #13439]
70045         * iconv/gconv.h: Define __GCONV_SWAP.
70046         * iconvdata/unicode.c: The swap bit must be stored in __flags.
70047         * iconvdata/utf-16.c: Likewise.
70048         * iconvdata/utf-32.c: Likewise.
70049
70050 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
70051
70052         [BZ #13524]
70053         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
70054         numerator after shifting it by one limb.
70055
70056 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
70057
70058         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
70059         under [__USE_EXTERN_INLINES].
70060
70061 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70062
70063         [BZ #13446]
70064         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
70065
70066 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70067
70068         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
70069         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
70070         optimized code.
70071         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
70072         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
70073         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
70074         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
70075         for strncasecmp/strncasecmp_l compilation.
70076         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
70077         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
70078
70079 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
70080
70081         [BZ #13484]
70082         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
70083         of __asm__.
70084
70085 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70086
70087         [BZ #13506]
70088         * time/tzfile.c (__tzfile_read): Check values from file header.
70089
70090 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
70091
70092         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
70093         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
70094         * powerpc/powerpc32/dl-start.S: Likewise.
70095         * powerpc/powerpc32/elf/start.S: Likewise.
70096         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
70097         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
70098         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
70099         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
70100         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
70101         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
70102         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
70103         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
70104         * powerpc/powerpc32/fpu/s_round.S: Likewise.
70105         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
70106         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
70107         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
70108         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
70109         * powerpc/powerpc32/memset.S: Likewise.
70110         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
70111         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
70112         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
70113         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
70114         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
70115         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
70116         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
70117         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
70118         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
70119         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
70120         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
70121         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70122         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70123
70124 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70125
70126         * math/libm-test.inc: Added more nearbyint tests.
70127         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
70128         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
70129         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
70130         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
70131
70132 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
70133
70134         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
70135         FD_CLOEXEC.
70136
70137 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70138
70139         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
70140         Add wcscpy-ssse3 wcscpy-c.
70141         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
70142         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
70143         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
70144         * sysdeps/x86_64/wcschr.S: New file.
70145         * sysdeps/x86_64/wcsrchr.S: New file.
70146         * string/test-strcmp.c: Remove checking of wcscmp function for
70147         wrong alignments.
70148         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
70149         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
70150         wcsrchr-sse2 wcsrchr-c.
70151         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
70152         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
70153         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
70154         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
70155         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
70156         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
70157         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
70158         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
70159         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
70160         * wcsmbc/wcschr.c (WCSCHR): New macro.
70161
70162 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70163
70164         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
70165         * wcsmbs/test-wcsrchr.c: New file.
70166         * string/test-strrchr.c: Add wcsrchr support.
70167         (WIDE): New macro.
70168         * wcsmbs/test-wcscpy.c: New file.
70169         * string/test-strcpy.c: Add wcscpy support.
70170         (WIDE): New macro.
70171
70172 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
70173
70174         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
70175         the inner loop.
70176
70177 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
70178
70179         [BZ #13472]
70180         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
70181
70182 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
70183
70184         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
70185         Minor optimizations.
70186
70187         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
70188         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
70189         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
70190
70191 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
70192
70193         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
70194         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
70195         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
70196         for gcc to avoid warnings.
70197         * inet/Makefile (tests): Add tst-checks.
70198         * inet/tst-checks.c: New file.
70199
70200         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
70201         warning.
70202
70203         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
70204         __wmemcmp_sse2.
70205
70206         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
70207         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
70208
70209         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
70210
70211 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
70212
70213         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
70214         problem.
70215
70216         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
70217
70218 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
70219
70220         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
70221         conditional on GCC version.
70222         (__arch_compare_and_exchange_val_8_acq)
70223         (__arch_compare_and_exchange_val_16_acq)
70224         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
70225         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
70226         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
70227
70228 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
70229
70230         * sysdeps/sh/backtrace.c: New file.
70231
70232 2011-12-02  Andreas Schwab  <schwab@redhat.com>
70233
70234         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
70235         parenthesis.
70236
70237 2011-12-01  Andreas Schwab  <schwab@redhat.com>
70238
70239         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
70240         falling back to utime.
70241
70242 2011-11-30  Andreas Schwab  <schwab@redhat.com>
70243
70244         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
70245         expectations for float.
70246
70247 2011-11-29  Andreas Schwab  <schwab@redhat.com>
70248
70249         * locale/weight.h (findidx): Add parameter len.
70250         * locale/weightwc.h (findidx): Likewise.
70251         * posix/fnmatch_loop.c (FCT): Adjust caller.
70252         * posix/regcomp.c (build_equiv_class): Likewise.
70253         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
70254         * posix/regexec.c (check_node_accept_bytes): Likewise.
70255         * string/strcoll_l.c (STRCOLL): Likewise.
70256         * string/strxfrm_l.c (STRXFRM): Likewise.
70257
70258 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
70259
70260         * Makefile.in: Remove CVSOPT handling.
70261         * configure.in: Remove use of AC_REVISION.
70262         * iconvdata/Makefile (distribute): No need to filter out CVS.
70263         * scripts/list-sources.sh: Remove CVS, subversion and monotone
70264         handling.
70265
70266 2011-11-16  Andreas Schwab  <schwab@redhat.com>
70267
70268         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
70269         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
70270         [USE_AS_STRNCASECMP_L]: Likewise.
70271         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
70272         NO_TLS_DIRECT_SEG_REFS.
70273         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
70274         Fix argument offsets for non-PIC.
70275         [USE_AS_STRNCASECMP_L]: Likewise.
70276         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
70277         NO_TLS_DIRECT_SEG_REFS.
70278
70279 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70280
70281         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
70282         O_CLOEXEC.
70283         * locale/loadlocale.c (_nl_load_locale): Likewise.
70284
70285 2011-11-15  Andreas Schwab  <schwab@redhat.com>
70286
70287         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
70288         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
70289         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
70290         (SYSCALL_GETTIME): Set errno on error.
70291
70292         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
70293         count references to noai6ai_cached.
70294
70295 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70296
70297         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
70298
70299         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
70300         FD_CLOEXEC for /proc/self/maps.
70301
70302         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
70303         FD_CLOEXEC for /proc/meminfo.
70304
70305         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
70306         gai.conf.
70307
70308         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
70309         FD_CLOEXEC for given file.
70310
70311         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
70312
70313         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
70314         FD_CLOEXEC for /etc/hosts.
70315         (_gethtent): Likewise.
70316
70317         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
70318
70319         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
70320         cancellation and set FD_CLOEXEC for /etc/netgroup.
70321
70322         * nss/nss_files/files-key.c (search): Don't allow cancellation when
70323         reading /etc/publickey.
70324
70325         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
70326         allow cancellation when reading /etc/group.
70327
70328         * nss/nss_files/files-alias.c (internal_setent): Don't allow
70329         cancellation.
70330         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
70331
70332         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
70333         when using data file.
70334
70335         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
70336
70337         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
70338         (write_nis_obj): Use "c" and "e" in fopen.
70339
70340         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
70341
70342         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
70343
70344         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
70345
70346         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
70347
70348         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
70349         locale.alias.
70350
70351         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
70352
70353         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
70354
70355         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
70356
70357         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
70358         file parsing and set FD_CLOEXEC.
70359
70360 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70361
70362         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
70363
70364 2011-11-14  Andreas Schwab  <schwab@redhat.com>
70365
70366         * malloc/arena.c (arena_get2): Don't call reused_arena when
70367         _int_new_arena failed.
70368
70369 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70370
70371         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
70372         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
70373         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
70374         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
70375         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
70376         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
70377         to compile strcasecmp and strncasecmp.
70378         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
70379         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
70380
70381         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
70382
70383 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
70384
70385         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
70386         locale-defines.sym to gen-as-const-headers.
70387         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
70388         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
70389         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
70390         to compile strcasecmp and strncasecmp.
70391         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
70392         strcasecmp_l and strncasecmp_l.
70393         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
70394         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
70395         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
70396         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
70397         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
70398         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
70399         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
70400         * sysdeps/i386/i686/multiarch/strncase.S: New file.
70401         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
70402         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
70403         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
70404
70405 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
70406
70407         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
70408         result of SYSDEP_GETTIME_CPU to retval.
70409         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
70410         parameter list to macro.  Remove trailing semicolon.  Adjust users.
70411
70412         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
70413         variable.
70414
70415         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
70416         mantissa words.
70417         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
70418
70419         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
70420         from unused variable.
70421
70422         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
70423         DWARF definitions.
70424         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
70425         for assembling.
70426
70427         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
70428         over namespaces.
70429
70430         * sunrpc/rpc_prot.c (rejected): Fix case value.
70431
70432         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
70433         unsigned long long int to avoid warnings in shift.
70434
70435         * posix/regex_internal.c (re_string_reconstruct): Actually use result
70436         of use of trans.
70437         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
70438         variable tmp.
70439
70440         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
70441         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
70442         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
70443
70444         * nis/nis_table.c (nis_list): Use variable of correct type for
70445         result of __follow_path call.
70446
70447 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70448
70449         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
70450         of math functions ceil, trunc, floor, round, and sqrt, when
70451         avaliable on the platform.
70452         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
70453         name clash.
70454         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
70455         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
70456         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
70457
70458 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
70459
70460         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
70461         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
70462
70463 2011-11-11  Roland McGrath  <roland@hack.frob.com>
70464
70465         * include/unistd.h: Fix __readlink return type.
70466         Reported by Chris Metcalf <cmetcalf@tilera.com>.
70467
70468 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
70469
70470         * stdlib/ucontext.h: Undo last change for makecontext.
70471
70472 2011-11-11  Andreas Schwab  <schwab@redhat.com>
70473
70474         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
70475
70476         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
70477         * setjmp/setjmp.h: Mark functions as non-leaf.
70478         * setjmp/bits/setjmp2.h: Likewise.
70479         * stdlib/ucontext.h: Likewise.
70480
70481 2011-11-10  Andreas Schwab  <schwab@redhat.com>
70482
70483         * malloc/arena.c (_int_new_arena): Don't increment narenas.
70484         (reused_arena): Don't check arena limit.
70485         (arena_get2): Atomically check arena limit.
70486
70487 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
70488
70489         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
70490         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
70491
70492         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
70493         instructions.
70494
70495 2011-11-07  Andreas Schwab  <schwab@redhat.com>
70496
70497         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
70498         handler when locking.
70499
70500         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
70501         Fix size of allocated buffer.
70502
70503 2011-11-04  Andreas Schwab  <schwab@redhat.com>
70504
70505         [BZ #10103]
70506         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
70507         declarations for long double functions.
70508         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
70509
70510         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
70511
70512 2011-11-03  Andreas Schwab  <schwab@redhat.com>
70513
70514         * nscd/nscd.c (main): Don't start AVC thread until credentials are
70515         installed.
70516
70517         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
70518         is disabled.
70519
70520 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
70521
70522         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
70523
70524 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
70525
70526         * include/alloca.h (stackinfo_alloca_round): Define.
70527         (extend_alloca): Use it.
70528         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
70529         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
70530         here.
70531
70532         * scripts/check-local-headers.sh: Ignore libaudit.h.
70533
70534         * nscd/Makefile (extra-objs): Make recursively expanded.
70535
70536 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
70537
70538         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
70539         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
70540
70541         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
70542         * posix/tst-rfc3484-2.c: Likewise.
70543         * posix/tst-rfc3484-3.c: Likewise.
70544
70545         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
70546         process_vm_writev.
70547         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
70548         process_vm_writev.
70549         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
70550         process_vm_writev from libc using GLIBC_2.15 version.
70551
70552         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
70553
70554 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
70555
70556         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
70557         stack usage.
70558
70559 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
70560
70561         [BZ #13367]
70562         * nss/getent.c (initgroups_keys): Show error message in case no group
70563         names are given.
70564
70565         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
70566         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
70567         __bump_nl_timestamp.
70568         * nscd/connections (nscd_init): When host database is served open
70569         netlink socket and request notification about configuration changes.
70570         (main_loop_poll): Track netlink file descriptor and bump timestamp
70571         in case data becomes available.
70572         (main_loop_epoll): Likewise.
70573         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
70574         (database_pers_head): Add extra_data fileds.
70575         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
70576         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
70577         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
70578         Adjust caller.
70579         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
70580         in6ai data, call __free_in6ai.
70581         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
70582         Add -DHAVE_NETLINK.
70583         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
70584         interface information.  Reuse previous data if netlink timestamp
70585         is not changed.
70586         (__bump_nl_timestamp): New function.
70587         (__free_in6ai): New function.
70588
70589 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
70590
70591         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
70592         close_not_cancel_no_status here.
70593         (__check_pf): Reorganize code a bit to not call close twice if OOM.
70594
70595 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
70596
70597         [BZ #13276]
70598         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
70599         return value.
70600
70601         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
70602         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
70603         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
70604
70605 2011-07-03  Andreas Jaeger  <aj@suse.de>
70606
70607         [BZ #10709]
70608         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
70609         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
70610         * math/libm-test.inc (sin_test): Add test case.
70611
70612 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
70613
70614         [BZ #13337]
70615         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
70616         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
70617
70618         * elf/chroot_canon.c (chroot_canon): Cleanups.
70619
70620         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
70621
70622         [BZ #13335]
70623         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
70624         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
70625
70626         * string/test-strchr.c: Make usable for strchrnul testing.
70627         * string/test-strchrnul.c: New file.
70628         * string/Makefile (strop-tests): Add strchrnul.
70629
70630         * po/it.po: Update from translation team.
70631         * po/es.po: Likewise.
70632
70633 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
70634
70635         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
70636         the three constants needed as parameters.  Drop the others.
70637         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
70638         __m128i_strloadu_tolower.
70639         Create and initialize variable zero and use it in all the places
70640         where _mm_setzero_si128 was used.
70641
70642         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
70643         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
70644         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
70645         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
70646         anymore.
70647         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
70648         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
70649         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
70650         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
70651         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
70652         __mpranred, __mptan.
70653         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
70654         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
70655         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
70656         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
70657         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
70658         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
70659         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
70660         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
70661         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
70662
70663 2011-10-28  Andreas Schwab  <schwab@redhat.com>
70664
70665         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
70666         redefine if SHARED.
70667         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
70668
70669         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
70670         wide char related routines to wcsmbs subdir.
70671
70672 2011-10-27  Andreas Schwab  <schwab@redhat.com>
70673
70674         [BZ #13344]
70675         * misc/sys/cdefs.h (__THROWNL): Define.
70676         * posix/unistd.h: Use __THREADNL instead of __THREAD
70677         for memory synchronization functions.
70678
70679 2011-10-26  Roland McGrath  <roland@hack.frob.com>
70680
70681         [BZ #13349]
70682         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
70683         doesn't exist.
70684         * manual/stdio.texi (Obstack Streams): Node removed.
70685
70686 2011-10-26  Andreas Schwab  <schwab@redhat.com>
70687
70688         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
70689         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
70690         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
70691
70692         * math/math_private.h (math_force_eval): Allow non-addressable
70693         arguments.
70694         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
70695
70696 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
70697
70698         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
70699         file is not needed.
70700
70701         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
70702         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
70703         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
70704         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
70705         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
70706         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
70707         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
70708         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
70709         Add AVX variants.
70710         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
70711         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
70712         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
70713         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
70714         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
70715         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
70716         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
70717         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
70718         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
70719         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
70720         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
70721         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
70722         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
70723         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
70724         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
70725         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
70726         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
70727         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
70728         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
70729
70730         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
70731         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
70732
70733         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
70734         place.  Use VEX encoding when compiling for AVX.
70735
70736 2011-10-25  Andreas Schwab  <schwab@redhat.com>
70737
70738         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
70739         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
70740
70741         * string/test-strchr.c (do_test): Don't generate NUL bytes.
70742
70743 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
70744
70745         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
70746         useless if() expression.
70747         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
70748         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
70749         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
70750         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
70751         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
70752         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
70753         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
70754         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
70755         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
70756         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
70757         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
70758         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
70759         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
70760         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
70761         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
70762         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
70763         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
70764         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
70765         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
70766
70767         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
70768
70769 2011-10-25  Andreas Schwab  <schwab@redhat.com>
70770
70771         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
70772         condition.
70773         * elf/dl-fini.c (_dl_sort_fini): Likewise.
70774
70775 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
70776
70777         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
70778         .text section.  Avoid duplicate constants.
70779         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
70780         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70781         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
70782         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
70783         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
70784         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70785         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70786         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
70787         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
70788         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
70789         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
70790         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
70791         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
70792         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
70793         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
70794         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
70795         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
70796         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
70797         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
70798         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
70799         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
70800         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
70801         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
70802         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
70803         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
70804         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
70805         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
70806         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
70807         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
70808         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
70809         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
70810         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
70811         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
70812         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
70813         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
70814         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
70815         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
70816         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
70817         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
70818         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
70819         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
70820         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
70821         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
70822         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
70823         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
70824
70825 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
70826
70827         * sysdeps/x86_64/dla.h: Move to ...
70828         * sysdeps/x86_64/fpu/dla.h: ...here.
70829         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
70830         situations.  Use __builtin_fma only for gcc 4.6 and up.
70831
70832         * config.make.in: Add have-mfma4 entry.
70833         * configure.in: Substitute libc_cv_cc_fma4.
70834         * math/Makefile (dbl-only-routines): Add sincostab.
70835         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
70836         Use __sincostab not sincos.
70837         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
70838         name is a macro.
70839         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
70840         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70841         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70842         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
70843         using __copysign.
70844         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
70845         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
70846         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
70847         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
70848         and __inv.
70849         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
70850         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
70851         __copysign.
70852         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
70853         define aliases when function name is a macro.
70854         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
70855         sysdeps/ieee754/dbl-64/sincos.tbl.
70856         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
70857         fma4-enabled routines.
70858         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
70859         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
70860         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
70861         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
70862         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
70863         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
70864         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
70865         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
70866         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
70867         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
70868         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
70869         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
70870         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
70871         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
70872         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
70873         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
70874         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
70875         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
70876         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
70877         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
70878         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
70879         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
70880         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
70881         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
70882         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
70883         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
70884         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
70885         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
70886         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
70887         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
70888
70889         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
70890         rename.
70891         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70892         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70893         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
70894         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70895         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70896         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
70897         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
70898         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
70899
70900 2011-10-24  Andreas Schwab  <schwab@redhat.com>
70901
70902         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
70903
70904 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
70905
70906         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
70907
70908         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
70909         prediction.
70910         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
70911
70912         * string/strnlen.c: Don't define STRNLEN, reverse logic.
70913         Remove unused variable magic_bits.
70914         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
70915
70916         * string/strnlen.c: Define and use STRNLEN macro.
70917         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
70918         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
70919         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
70920         * wcsmbs/wcslen.c: Define and use WCSLEN.
70921         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
70922         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
70923         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
70924         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
70925         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
70926         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
70927         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
70928
70929 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70930
70931         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
70932         strnlen-sse2-no-bsf.
70933         Rename strlen-no-bsf to strlen-sse2-no-bsf.
70934         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
70935         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
70936         Add strnlen support.
70937         (USE_AS_STRNLEN): New macro.
70938         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
70939         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
70940         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
70941         * sysdeps/x86_64/wcslen.S: New file.
70942
70943 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
70944
70945         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
70946         XMM-moves are used for copying on small sizes.
70947
70948 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70949
70950         * wcsmbs/Makefile (strop-tests): Add wcschr.
70951         * wcsmbs/test-wcschr.c: New file.
70952         * string/test-strchr.c: Update.
70953         Add wcschr support.
70954         (WIDE): New macro.
70955
70956 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70957
70958         * wcsmbs/Makefile (strop-tests): Add wcslen.
70959         * wcsmbs/test-wcslen.c: New file.
70960         * string/test-strlen.c: Update.
70961         Add wcslen support.
70962         (WIDE): New macro.
70963
70964 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
70965
70966         * po/it.po: Update from translation team.
70967
70968 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70969
70970         * sysdeps/x86_64/wcscmp.S: Update.
70971         Fix wrong comparison semantics.
70972         wcscmp shall use signed comparison not unsigned.
70973         Don't use substraction to avoid overflow bug.
70974         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
70975         * wcsmbc/wcscmp.c: Likewise.
70976         * string/test-strcmp.c: Likewise.
70977         Add new tests to check cases with negative values.
70978
70979 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
70980
70981         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
70982         * sysdeps/x86_64/dla.h: ...here.  New file.
70983         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
70984         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
70985         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
70986         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
70987         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
70988         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
70989         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
70990         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
70991         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
70992
70993 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
70994
70995         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
70996         __ynl_finite aliases.
70997
70998 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
70999
71000         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71001
71002         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
71003         define DLA_FMA.
71004         [DLA_FMA] (EMULV): Use DLA_FMA.
71005         [DLA_FMA] (MUL12): Use EMULV.
71006         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
71007         that are not needed.
71008         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71009         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71010         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71011         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71012         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71013         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71014         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71015
71016 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
71017
71018         * math/s_nan.c: Undef __nan.
71019         * math/s_nanf.c: Undef __nanf.
71020         * math/s_nanl.c: Undef __nanl.
71021         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
71022         "math_private.h".
71023
71024 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71025
71026         * math/s_catan.c: Add branch predictions.
71027         * math/s_catanf.c: Likewise.
71028         * math/s_catanh.c: Likewise.
71029         * math/s_catanhf.c: Likewise.
71030         * math/s_catanhl.c: Likewise.
71031         * math/s_catanl.c: Likewise.
71032         * math/s_cexp.c: Likewise.
71033         * math/s_cexpf.c: Likewise.
71034         * math/s_cexpl.c: Likewise.
71035         * math/s_clog.c: Likewise.
71036         * math/s_clog10.c: Likewise.
71037         * math/s_clog10f.c: Likewise.
71038         * math/s_clog10l.c: Likewise.
71039         * math/s_clogf.c: Likewise.
71040         * math/s_clogl.c: Likewise.
71041         * math/s_csqrt.c: Likewise.
71042         * math/s_csqrtf.c: Likewise.
71043         * math/s_csqrtl.c: Likewise.
71044         * math/s_ctanf.c: Likewise.
71045         * math/s_ctanh.c: Likewise.
71046         * math/s_ctanhf.c: Likewise.
71047         * math/s_ctanhl.c: Likewise.
71048         * math/s_ctanl.c: Likewise.
71049
71050         * math/math_private.h: Define __nan, __nanf, __nanl.
71051         * math/s_cacosh.c: Include <math_private.h>.
71052         * math/s_cacoshl.c: Likewise.
71053         * math/s_casinh.c: Likewise.
71054         * math/s_casinhf.c: Likewise.
71055         * math/s_casinhl.c: Likewise.
71056         * math/s_ccos.c: Rely entire on ccosh.
71057         * math/s_ccosf.c: Rely entire on ccoshf.
71058         * math/s_ccosl.c: Rely entirely on ccoshl.
71059         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
71060         Remove tests for FE_INVALID.
71061         * math/s_ccoshf.c: Likewise.
71062         * math/s_ccoshl.c: Likewise.
71063         * math/s_csin.c: Likewise.
71064         * math/s_csinf.c: Likewise.
71065         * math/s_csinh.c Likewise.
71066         * math/s_csinhf.c: Likewise.
71067         * math/s_csinhl.c: Likewise.
71068         * math/s_csinl.c: Likewise.
71069         * math/s_ctan.c: Likewise.
71070         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
71071         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
71072         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
71073
71074 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
71075
71076         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
71077         compilation problems.
71078
71079         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
71080         __builtin_expect.
71081
71082 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
71083
71084         * sysdeps/i386/configure.in: Test for -mfma4 option.
71085         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
71086         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
71087         COMMON_CPUID_INDEX_80000001.
71088         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
71089         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
71090         use it if FMA3 is not supported.
71091         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
71092
71093         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
71094         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
71095
71096 2011-10-20  Andreas Schwab  <schwab@redhat.com>
71097
71098         [BZ #12892]
71099         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
71100         it would create a cycle with a link time dependency.
71101
71102 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
71103
71104         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
71105         instruction.
71106         * string/Makefile (strop-tests): Add rawmemchr.
71107         * string/test-rawmemchr.c: New file.
71108
71109         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
71110         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
71111         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
71112         when compiling str{,n}casecmp and when AVX is available.  Hook up
71113         new optimized code in initializers.
71114
71115 2011-10-19  Andreas Schwab  <schwab@redhat.com>
71116
71117         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
71118         __feraiseexcept instead of feraiseexcept.
71119
71120 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
71121
71122         * math/math_private.h: Define defaults for libc_fetestexcept and
71123         libc_feupdateenv.
71124         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
71125         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
71126         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71127         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71128         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
71129         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71130         libc_fetestexcept and libc_feupdateenv.
71131
71132         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
71133         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
71134         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
71135         * sysdeps/x86_64/fpu/math_private.h: Define special version of
71136         libc_feholdexcept_setround.
71137
71138         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
71139         Add s_nearbyint-c and s_nearbyintf-c.
71140         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
71141         nearbyintf inlines.
71142         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
71143         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
71144         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
71145         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
71146
71147         * math/math_private.h: Define defaults for libc_fegetround,
71148         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
71149         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
71150         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
71151         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
71152         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
71153         standard functions.
71154         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71155         Remove comments and hacks for old compiler versions.
71156         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71157         libc_fegetround, libc_fesetround, libc_feholdexcept, and
71158         libc_feholdexceptl.
71159
71160 2011-10-18  Andreas Schwab  <schwab@redhat.com>
71161
71162         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
71163         (__feraiseexcept_renamed): Add __NTH.
71164         (feraiseexcept): Add __NTH.  Rename local variables to fix
71165         namespace violations.
71166
71167 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
71168
71169         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
71170
71171         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
71172
71173         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
71174         recently added interfaces.
71175         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
71176
71177         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
71178         about macro parameter expansion.
71179
71180         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
71181         __NO_MATH_INLINES is defined.  Cleanups.
71182
71183         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
71184         and __floorf is target has SSE4.1.
71185         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
71186         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
71187         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
71188         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
71189
71190         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
71191         name.
71192         (floorf): Likewise.
71193
71194         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
71195
71196 2011-10-17  Andreas Schwab  <schwab@redhat.com>
71197
71198         * misc/sys/cdefs.h: Fix last change.
71199
71200         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
71201         database lookup.
71202
71203 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
71204
71205         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
71206
71207         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
71208         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71209         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
71210         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71211         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71212         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
71213         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71214         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71215         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
71216         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
71217         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
71218         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
71219         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
71220         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
71221         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
71222         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
71223         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
71224         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
71225         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
71226         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
71227         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
71228         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
71229
71230         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
71231         ceil, ceilf, floor, floorf.
71232
71233         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
71234         Perform IRELATIVE relocations last.
71235
71236         * elf/do-rel.h: Add another parameter nrelative, replacing the
71237         local variable with the same name.  Change name of the function
71238         to end in Rel or Rela (uppercase).
71239         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
71240         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
71241         elf_dynamic_do_##reloc function.
71242
71243 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71244
71245         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
71246         is sufficient, at least on modern CPUs.
71247
71248         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
71249
71250         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
71251         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
71252
71253         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
71254         __expl_finite.
71255         * math/bits/math-finite.h: Add entries for exp.
71256         * math/e_expl.c: Add __*_finite alias.
71257         * sysdeps/i386/fpu/e_exp.S: Likewise.
71258         * sysdeps/i386/fpu/e_expf.S: Likewise.
71259         * sysdeps/i386/fpu/e_expl.c: Likewise.
71260         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71261         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71262         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
71263         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
71264         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
71265         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
71266         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
71267
71268         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
71269         is sufficient, at least on modern CPUs.
71270
71271         * ctype/ctype-info.c (__ctype_init): Define.
71272         * include/ctype.h (__ctype_init): Declare.
71273         (__ctype_b_loc): The variable is always initialized.
71274         (__ctype_toupper_loc): Likewise.
71275         (__ctype_tolower_loc): Likewise.
71276         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
71277         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
71278
71279 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
71280
71281         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
71282
71283         * configure.in: Also look in $cxxmachine/include for C++ system
71284         headers.
71285
71286 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71287
71288         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
71289         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
71290         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
71291         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
71292         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
71293         (USE_AS_WMEMCMP): New macro.
71294         Fixing indents.
71295         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
71296         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
71297         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
71298         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
71299         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71300         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
71301         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
71302         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
71303         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
71304         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
71305         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
71306         (USE_AS_WMEMCMP): New macro.
71307         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
71308         * sysdeps/string/test-memcmp.c: Update.
71309         Fix simple_wmemcmp.
71310         Add new tests.
71311         * wcsmbs/wmemcmp.c: Update.
71312         (WMEMCMP): New macro.
71313         Fix overflow bug.
71314
71315 2011-10-12  Andreas Jaeger  <aj@suse.de>
71316
71317         [BZ #13268]
71318         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
71319
71320 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71321
71322         * libio/iofwide.c (do_length): Avoid warning.
71323
71324         * ctype/ctype.h (__isctype_f): Add missing __THROW.
71325
71326 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
71327
71328         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
71329
71330         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
71331         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
71332         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
71333         * sysdeps/i386/i686/fpu/e_log.S: New file.
71334         * sysdeps/i386/i686/fpu/e_logf.S: New file.
71335         * sysdeps/i386/i686/fpu/e_logl.S: New file.
71336
71337         * ctype/ctype.h: Add support for inlined isXXX functions when
71338         compiling C++ code.
71339
71340 2011-10-14  Andreas Schwab  <schwab@redhat.com>
71341
71342         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
71343
71344         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
71345
71346 2011-10-13  Roland McGrath  <roland@hack.frob.com>
71347
71348         [BZ #13291]
71349         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
71350
71351 2011-10-13  Andreas Schwab  <schwab@redhat.com>
71352
71353         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
71354         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
71355         feraiseexcept.
71356
71357         * sysdeps/x86_64/memrchr.S: Check for zero size.
71358
71359         * string/stratcliff.c: Add memrchr tests.
71360
71361 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71362
71363         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71364         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
71365         rawmemchr-sse2 rawmemchr-sse2-bsf.
71366         * sysdeps/i386/i686/multiarch/memchr.S: New file.
71367         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
71368         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
71369         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
71370         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
71371         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
71372         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
71373         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
71374         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
71375         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
71376         * string/memrchr.c (MEMRCHR): New macro.
71377
71378 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
71379
71380         Add integration with gcc's -ffinite-math-only and optimize wrapper
71381         functions in libm.
71382         * Versions.def: Define GLIBC_2.15 version for libm.
71383         * math/Makefile (headers): Add bits/math-finite.h.
71384         * math/bits/math-finite.h: New file.
71385         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
71386         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
71387         * math/e_acoshl.c: Add __*_finite alias.
71388         * math/e_acosl.c: Likewise.
71389         * math/e_asinl.c: Likewise.
71390         * math/e_atan2l.c: Likewise.
71391         * math/e_atanhl.c: Likewise.
71392         * math/e_coshl.c: Likewise.
71393         * math/e_exp10.c: Likewise.
71394         * math/e_exp10f.c: Likewise.
71395         * math/e_exp10l.c: Likewise.
71396         * math/e_exp2l.c: Likewise.
71397         * math/e_fmodl.c: Likewise.
71398         * math/e_gammal_r.c: Likewise.
71399         * math/e_hypotl.c: Likewise.
71400         * math/e_j0l.c: Likewise.
71401         * math/e_j1l.c: Likewise.
71402         * math/e_jnl.c: Likewise.
71403         * math/e_lgammal_r.c: Likewise.
71404         * math/e_log10l.c: Likewise.
71405         * math/e_log2l.c: Likewise.
71406         * math/e_logl.c: Likewise.
71407         * math/e_powl.c: Likewise.
71408         * math/e_sinhl.c: Likewise.
71409         * math/e_sqrtl.c: Likewise.
71410         * math/e_scalb.c: Completely rewritten and optimized.
71411         * math/e_scalbf.c: Likewise.
71412         * math/e_scalbl.c: Likewise.
71413         * math/w_acos.c: Likewise.
71414         * math/w_acosf.c: Likewise.
71415         * math/w_acosl.c: Likewise.
71416         * math/w_acosh.c: Likewise.
71417         * math/w_acoshf.c: Likewise.
71418         * math/w_acoshl.c: Likewise.
71419         * math/w_asin.c: Likewise.
71420         * math/w_asinf.c: Likewise.
71421         * math/w_asinl.c: Likewise.
71422         * math/w_atan2.c: Likewise.
71423         * math/w_atan2f.c: Likewise.
71424         * math/w_atan2l.c: Likewise.
71425         * math/w_atanh.c: Likewise.
71426         * math/w_atanhf.c: Likewise.
71427         * math/w_atanhl.c: Likewise.
71428         * math/w_exp10.c: Likewise.
71429         * math/w_exp10f.c: Likewise.
71430         * math/w_exp10l.c: Likewise.
71431         * math/w_fmod.c: Likewise.
71432         * math/w_fmodf.c: Likewise.
71433         * math/w_fmodl.c: Likewise.
71434         * math/w_j0.c: Likewise.
71435         * math/w_j0f.c: Likewise.
71436         * math/w_j0l.c: Likewise.
71437         * math/w_j1.c: Likewise.
71438         * math/w_j1f.c: Likewise.
71439         * math/w_j1l.c: Likewise.
71440         * math/w_jn.c: Likewise.
71441         * math/w_jnf.c: Likewise.
71442         * math/w_log.c: Likewise.
71443         * math/w_logf.c: Likewise.
71444         * math/w_logl.c: Likewise.
71445         * math/w_log10.c: Likewise.
71446         * math/w_log10f.c: Likewise.
71447         * math/w_log10l.c: Likewise.
71448         * math/w_log2.c: Likewise.
71449         * math/w_log2f.c: Likewise.
71450         * math/w_log2l.c: Likewise.
71451         * math/w_pow.c: Likewise.
71452         * math/w_powf.c: Likewise.
71453         * math/w_powl.c: Likewise.
71454         * math/w_remainder.c: Likewise.
71455         * math/w_remainderf.c: Likewise.
71456         * math/w_remainderl.c: Likewise.
71457         * math/w_scalb.c: Likewise.
71458         * math/w_scalbf.c: Likewise.
71459         * math/w_scalbl.c: Likewise.
71460         * math/w_sqrt.c: Likewise.
71461         * math/w_sqrtf.c: Likewise.
71462         * math/w_sqrtl.c: Likewise.
71463         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
71464         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
71465         used.
71466         * math/math_private.h: Declare __kernel_standard_f.
71467         * math/w_cosh.c: Remove cruft and optimize a bit.
71468         * math/w_coshf.c: Likewise.
71469         * math/w_coshl.c: Likewise.
71470         * math/w_exp2.c: Likewise.
71471         * math/w_exp2f.c: Likewise.
71472         * math/w_exp2l.c: Likewise.
71473         * math/w_hypot.c: Likewise.
71474         * math/w_hypotf.c: Likewise.
71475         * math/w_hypotl.c: Likewise.
71476         * math/w_lgamma.c: Likewise.
71477         * math/w_lgamma_r.c: Likewise.
71478         * math/w_lgammaf.c: Likewise.
71479         * math/w_lgammaf_r.c: Likewise.
71480         * math/w_lgammal.c: Likewise.
71481         * math/w_lgammal_r.c: Likewise.
71482         * math/w_sinh.c: Likewise.
71483         * math/w_sinhf.c: Likewise.
71484         * math/w_sinhl.c: Likewise.
71485         * math/w_tgamma.c: Likewise.
71486         * math/w_tgammaf.c: Likewise.
71487         * math/w_tgammal.c: Likewise.
71488         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
71489         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71490         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
71491         Minor optimizations.  Pretty printing.  Remove cruft.
71492         * sysdeps/i386/fpu/e_acosf.S: Likewise.
71493         * sysdeps/i386/fpu/e_acosh.S: Likewise.
71494         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
71495         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
71496         * sysdeps/i386/fpu/e_acosl.c: Likewise.
71497         * sysdeps/i386/fpu/e_asin.S: Likewise.
71498         * sysdeps/i386/fpu/e_asinf.S: Likewise.
71499         * sysdeps/i386/fpu/e_atan2.S: Likewise.
71500         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
71501         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
71502         * sysdeps/i386/fpu/e_atanh.S: Likewise.
71503         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
71504         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
71505         * sysdeps/i386/fpu/e_exp10.S: Likewise.
71506         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
71507         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
71508         * sysdeps/i386/fpu/e_exp2.S: Likewise.
71509         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
71510         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
71511         * sysdeps/i386/fpu/e_fmod.S: Likewise.
71512         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
71513         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
71514         * sysdeps/i386/fpu/e_hypot.S: Likewise.
71515         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
71516         * sysdeps/i386/fpu/e_log.S: Likewise.
71517         * sysdeps/i386/fpu/e_log10.S: Likewise.
71518         * sysdeps/i386/fpu/e_log10f.S: Likewise.
71519         * sysdeps/i386/fpu/e_log10l.S: Likewise.
71520         * sysdeps/i386/fpu/e_log2.S: Likewise.
71521         * sysdeps/i386/fpu/e_log2f.S: Likewise.
71522         * sysdeps/i386/fpu/e_log2l.S: Likewise.
71523         * sysdeps/i386/fpu/e_logf.S: Likewise.
71524         * sysdeps/i386/fpu/e_logl.S: Likewise.
71525         * sysdeps/i386/fpu/e_pow.S: Likewise.
71526         * sysdeps/i386/fpu/e_powf.S: Likewise.
71527         * sysdeps/i386/fpu/e_powl.S: Likewise.
71528         * sysdeps/i386/fpu/e_remainder.S: Likewise.
71529         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
71530         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
71531         * sysdeps/i386/fpu/e_scalb.S: Likewise.
71532         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
71533         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
71534         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
71535         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
71536         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
71537         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
71538         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71539         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71540         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
71541         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71542         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
71543         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
71544         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
71545         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71546         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
71547         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
71548         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
71549         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71550         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
71551         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
71552         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71553         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
71554         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
71555         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71556         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71557         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
71558         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
71559         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
71560         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
71561         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
71562         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
71563         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71564         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
71565         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
71566         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
71567         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71568         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
71569         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
71570         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
71571         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
71572         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
71573         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
71574         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
71575         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
71576         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
71577         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
71578         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
71579         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
71580         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
71581         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
71582         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
71583         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
71584         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
71585         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
71586         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
71587         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
71588         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
71589         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
71590         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
71591         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
71592         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
71593         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
71594         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
71595         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
71596         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
71597         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
71598         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
71599         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
71600         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
71601         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
71602         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
71603         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
71604         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
71605         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
71606         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
71607         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
71608         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
71609         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
71610         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
71611         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
71612         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
71613         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
71614         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
71615         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
71616         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
71617         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71618         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
71619         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
71620         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
71621         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71622         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
71623         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
71624         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
71625         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
71626         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
71627         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
71628         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
71629         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
71630         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
71631         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
71632         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
71633         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
71634         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
71635         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
71636         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
71637         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
71638         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
71639         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
71640         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
71641         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
71642         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
71643         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
71644         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
71645         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
71646         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
71647         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
71648         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
71649         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
71650         (__isnanf): Likewise.
71651         (__isinf_ns): Likewise.
71652         (__isinf_nsf): Likewise.
71653         (__finite): Likewise.
71654         (__finitef): Likewise.
71655         (__ieee754_sqrt): Define as macro.
71656         (__ieee754_sqrtf): Define as macro.
71657         (__ieee754_sqrtl): Define as macro.
71658         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
71659         inlined copy.
71660         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
71661         __FINITE_MATH_ONLY__ consistent.
71662         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
71663
71664 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
71665
71666         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
71667         of rawmemchr.
71668
71669         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
71670
71671 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
71672
71673         * po/ja.po: Update from translation team.
71674
71675 2011-10-08  Roland McGrath  <roland@hack.frob.com>
71676
71677         * locale/programs/locarchive.c (prepare_address_space): New function.
71678         (create_archive, enlarge_archive, open_archive): Use it.
71679
71680         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
71681         inside [SHARED], where it is used.
71682
71683         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
71684
71685         * nss/getent.c (netgroup_keys): Remove unused variable.
71686         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
71687
71688 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
71689
71690         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
71691         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
71692         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
71693         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
71694         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
71695         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
71696         * math/Makefile (libm-calls): Add s_isinf_ns.
71697         * math/divtc3.c: Use __isinf_nsl instead of isinf.
71698         * math/multc3.c: Likewise.
71699         * math/s_casin.c: Likewise.
71700         * math/s_casinf.c: Likewise.
71701         * math/s_casinl.c: Likewise.
71702         * math/s_ccos.c: Likewise.
71703         * math/s_ccosf.c: Likewise.
71704         * math/s_ccosl.c: Likewise.
71705         * math/s_ctan.c: Likewise.
71706         * math/s_ctanf.c: Likewise.
71707         * math/s_ctanh.c: Likewise.
71708         * math/s_ctanhf.c: Likewise.
71709         * math/s_ctanhl.c: Likewise.
71710         * math/s_ctanl.c: Likewise.
71711         * math/w_fmod.c: Likewise.
71712         * math/w_fmodf.c: Likewise.
71713         * math/w_fmodl.c: Likewise.
71714         * math/w_remainder.c: Likewise.
71715         * math/w_remainderf.c: Likewise.
71716         * math/w_remainderl.c: Likewise.
71717         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
71718         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
71719         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
71720         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
71721         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
71722         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
71723         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
71724         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
71725
71726         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
71727         of the number.
71728         * stdio-common/printf_fphex.c: Likewise.
71729         * stdio-common/printf_size.c: Likewise.
71730
71731         * math/e_exp10.c: Include math_private.h using <...> not "...".
71732         * math/e_exp10f.c: Likewise.
71733         * math/e_exp10l.c: Likewise.
71734         * math/e_exp2l.c: Likewise.
71735         * math/e_j0l.c: Likewise.
71736         * math/e_j1l.c: Likewise.
71737         * math/e_jnl.c: Likewise.
71738         * math/e_lgammal_r.c: Likewise.
71739         * math/e_rem_pio2l.c: Likewise.
71740         * math/e_scalb.c: Likewise.
71741         * math/e_scalbf.c: Likewise.
71742         * math/e_scalbl.c: Likewise.
71743         * math/k_cosl.c: Likewise.
71744         * math/k_sinl.c: Likewise.
71745         * math/k_tanl.c: Likewise.
71746         * math/s_cacoshf.c: Likewise.
71747         * math/s_catan.c: Likewise.
71748         * math/s_catanf.c: Likewise.
71749         * math/s_catanh.c: Likewise.
71750         * math/s_catanhf.c: Likewise.
71751         * math/s_catanhl.c: Likewise.
71752         * math/s_catanl.c: Likewise.
71753         * math/s_ccosh.c: Likewise.
71754         * math/s_ccoshf.c: Likewise.
71755         * math/s_ccoshl.c: Likewise.
71756         * math/s_cexp.c: Likewise.
71757         * math/s_cexpf.c: Likewise.
71758         * math/s_cexpl.c: Likewise.
71759         * math/s_clog.c: Likewise.
71760         * math/s_clog10.c: Likewise.
71761         * math/s_clog10f.c: Likewise.
71762         * math/s_clog10l.c: Likewise.
71763         * math/s_clogf.c: Likewise.
71764         * math/s_clogl.c: Likewise.
71765         * math/s_csin.c: Likewise.
71766         * math/s_csinf.c: Likewise.
71767         * math/s_csinh.c: Likewise.
71768         * math/s_csinhf.c: Likewise.
71769         * math/s_csinhl.c: Likewise.
71770         * math/s_csinl.c: Likewise.
71771         * math/s_csqrt.c: Likewise.
71772         * math/s_csqrtf.c: Likewise.
71773         * math/s_csqrtl.c: Likewise.
71774         * math/s_ctan.c: Likewise.
71775         * math/s_ctanf.c: Likewise.
71776         * math/s_ctanh.c: Likewise.
71777         * math/s_ctanhf.c: Likewise.
71778         * math/s_ctanhl.c: Likewise.
71779         * math/s_ctanl.c: Likewise.
71780         * math/s_ldexp.c: Likewise.
71781         * math/s_ldexpf.c: Likewise.
71782         * math/s_ldexpl.c: Likewise.
71783         * math/s_significand.c: Likewise.
71784         * math/s_significandf.c: Likewise.
71785         * math/s_significandl.c: Likewise.
71786         * math/w_acos.c: Likewise.
71787         * math/w_acosf.c: Likewise.
71788         * math/w_acosh.c: Likewise.
71789         * math/w_acoshf.c: Likewise.
71790         * math/w_acoshl.c: Likewise.
71791         * math/w_acosl.c: Likewise.
71792         * math/w_asin.c: Likewise.
71793         * math/w_asinf.c: Likewise.
71794         * math/w_asinl.c: Likewise.
71795         * math/w_atan2.c: Likewise.
71796         * math/w_atan2f.c: Likewise.
71797         * math/w_atan2l.c: Likewise.
71798         * math/w_atanh.c: Likewise.
71799         * math/w_atanhf.c: Likewise.
71800         * math/w_atanhl.c: Likewise.
71801         * math/w_cosh.c: Likewise.
71802         * math/w_coshf.c: Likewise.
71803         * math/w_coshl.c: Likewise.
71804         * math/w_dremf.c: Likewise.
71805         * math/w_exp10.c: Likewise.
71806         * math/w_exp10f.c: Likewise.
71807         * math/w_exp10l.c: Likewise.
71808         * math/w_exp2.c: Likewise.
71809         * math/w_exp2f.c: Likewise.
71810         * math/w_fmod.c: Likewise.
71811         * math/w_fmodf.c: Likewise.
71812         * math/w_fmodl.c: Likewise.
71813         * math/w_hypot.c: Likewise.
71814         * math/w_hypotf.c: Likewise.
71815         * math/w_hypotl.c: Likewise.
71816         * math/w_j0.c: Likewise.
71817         * math/w_j0f.c: Likewise.
71818         * math/w_j0l.c: Likewise.
71819         * math/w_j1.c: Likewise.
71820         * math/w_j1f.c: Likewise.
71821         * math/w_j1l.c: Likewise.
71822         * math/w_jn.c: Likewise.
71823         * math/w_jnf.c: Likewise.
71824         * math/w_jnl.c: Likewise.
71825         * math/w_lgamma.c: Likewise.
71826         * math/w_lgamma_r.c: Likewise.
71827         * math/w_lgammaf.c: Likewise.
71828         * math/w_lgammaf_r.c: Likewise.
71829         * math/w_lgammal.c: Likewise.
71830         * math/w_lgammal_r.c: Likewise.
71831         * math/w_log.c: Likewise.
71832         * math/w_log10.c: Likewise.
71833         * math/w_log10f.c: Likewise.
71834         * math/w_log10l.c: Likewise.
71835         * math/w_log2.c: Likewise.
71836         * math/w_log2f.c: Likewise.
71837         * math/w_log2l.c: Likewise.
71838         * math/w_logf.c: Likewise.
71839         * math/w_logl.c: Likewise.
71840         * math/w_pow.c: Likewise.
71841         * math/w_powf.c: Likewise.
71842         * math/w_powl.c: Likewise.
71843         * math/w_remainder.c: Likewise.
71844         * math/w_remainderf.c: Likewise.
71845         * math/w_remainderl.c: Likewise.
71846         * math/w_scalb.c: Likewise.
71847         * math/w_scalbf.c: Likewise.
71848         * math/w_scalbl.c: Likewise.
71849         * math/w_sinh.c: Likewise.
71850         * math/w_sinhf.c: Likewise.
71851         * math/w_sinhl.c: Likewise.
71852         * math/w_sqrt.c: Likewise.
71853         * math/w_sqrtf.c: Likewise.
71854         * math/w_sqrtl.c: Likewise.
71855         * math/w_tgamma.c: Likewise.
71856         * math/w_tgammaf.c: Likewise.
71857         * math/w_tgammal.c: Likewise.
71858
71859         * po/ja.po: Update from translation team.
71860
71861 2011-09-29  Andreas Jaeger  <aj@suse.de>
71862
71863         [BZ #13179]
71864         * sunrpc/netname.c (netname2host): Fix logic.
71865
71866         [BZ #6779]
71867         [BZ #6783]
71868         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
71869         correctly.
71870         * math/w_remainder.c (__remainder): Likewise.
71871         * math/w_remainderf.c (__remainderf): Likewise.
71872         * math/libm-test.inc (remainder_test): Add test cases.
71873
71874 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
71875
71876         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
71877         sdiv_qrnnd.
71878
71879 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
71880
71881         * string/test-memcmp.c: Avoid unncessary #defines.
71882         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
71883
71884 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71885
71886         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
71887         Use new sse2 version for core i3 - i7 as it's faster
71888         than sse42 version.
71889         (bit_Prefer_PMINUB_for_stringop): New.
71890         * sysdeps/x86_64/rawmemchr.S: Update.
71891         Replace with faster SSE2 version.
71892         * sysdeps/x86_64/memrchr.S: New file.
71893         * sysdeps/x86_64/memchr.S: Update.
71894         Replace with faster SSE2 version.
71895
71896 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
71897
71898         * elf/dl-load.c (lose): Add cast to avoid warning.
71899
71900 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
71901
71902         * po/ca.po: Update from translation team.
71903
71904         * inet/getnetgrent_r.c: Hook up nscd.
71905         * nscd/Makefile (routines): Add nscd_netgroup.
71906         (nscd-modules): Add netgroupcache.
71907         (CFLAGS-netgroupcache.c): Define.
71908         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
71909         (cache_search): Add const to second parameter.
71910         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
71911         INNETGR.
71912         (dbs): Add netgrdb entry.
71913         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
71914         (verify_persistent_db): Handle netgrdb.
71915         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
71916         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
71917         GETFDNETGR.
71918         (netgroup_response_header): Define.
71919         (innetgroup_response_header): Define.
71920         (datahead): Add netgroup_response_header and innetgroup_response_header
71921         elements.
71922         * nscd/nscd.conf: Add entries for netgroup cache.
71923         * nscd/nscd.h (dbtype): Add netgrdb.
71924         (_PATH_NSCD_NETGROUP_DB): Define.
71925         (netgroup_iov_disabled): Declare.
71926         (xmalloc, xcalloc, xrealloc): Move declarations here.
71927         (cache_search): Adjust prototype.
71928         Add netgroup-related prototypes.
71929         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
71930         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
71931         (__nscd_innetgr): Declare.
71932         * nscd/selinux.c (perms): Use access_vector_t as element type and
71933         add netgroup-related initializers.
71934         * nscd/netgroupcache.c: New file.
71935         * nscd/nscd_netgroup.c: New file.
71936         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
71937         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
71938         For four parameters use innetgr.
71939         * nss/nss_files/files-init.c: Add definition and callback for netgr.
71940         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
71941         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
71942         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
71943
71944         * nscd/connections.c (register_traced_file): Don't register file
71945         for disabled databases.
71946
71947 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
71948
71949         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
71950
71951         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
71952         from tree and freeing node.
71953
71954 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
71955
71956         * nss/nsswitch.c (__nss_database_lookup): Handle
71957         nss_parse_service_list out of memory case.
71958
71959 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
71960
71961         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
71962         out of memory case.
71963
71964 2011-10-04  Andreas Schwab  <schwab@redhat.com>
71965
71966         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
71967         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
71968         pass it down.
71969         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
71970         elf_machine_rela, elf_machine_lazy_rel.
71971         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
71972         (ELF_DYNAMIC_DO_REL): Likewise.
71973         (ELF_DYNAMIC_DO_RELA): Likewise.
71974         (ELF_DYNAMIC_RELOCATE): Likewise.
71975         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
71976         to ELF_DYNAMIC_DO_REL.
71977         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
71978         (dl_main): In trace mode always set __RTLD_NOIFUNC.
71979         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
71980         elf_machine_rela.
71981         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
71982         skip_ifunc, don't call ifunc function if non-zero.
71983         (elf_machine_rela): Likewise.
71984         (elf_machine_lazy_rel): Likewise.
71985         (elf_machine_lazy_rela): Likewise.
71986         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
71987         (elf_machine_lazy_rel): Likewise.
71988         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
71989         Likewise.
71990         (elf_machine_lazy_rel): Likewise.
71991         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
71992         Likewise.
71993         (elf_machine_lazy_rel): Likewise.
71994         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
71995         (elf_machine_lazy_rel): Likewise.
71996         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
71997         (elf_machine_lazy_rel): Likewise.
71998         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
71999         (elf_machine_lazy_rel): Likewise.
72000         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
72001         (elf_machine_lazy_rel): Likewise.
72002         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
72003         (elf_machine_lazy_rel): Likewise.
72004         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
72005         (elf_machine_lazy_rel): Likewise.
72006
72007 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
72008
72009         * nss/nss_files/files-init.c (_nss_files_init): Use static
72010         initialization for all the *_traced_file variables.
72011
72012 2011-09-28  Andreas Schwab  <schwab@redhat.com>
72013
72014         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72015
72016 2011-09-27  Roland McGrath  <roland@hack.frob.com>
72017
72018         [BZ #13226]
72019         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
72020
72021 2011-09-27  Andreas Schwab  <schwab@redhat.com>
72022
72023         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
72024         Reread the line before reparsing it.
72025
72026 2011-09-26  Andreas Schwab  <schwab@redhat.com>
72027
72028         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
72029
72030 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
72031             Maxim Kuvyrkov  <maxim@codesourcery.com>
72032             Joseph Myers  <joseph@codesourcery.com>
72033
72034         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
72035         if needed for __stack_chk_guard.
72036
72037 2011-09-19  Roland McGrath  <roland@hack.frob.com>
72038
72039         * sysdeps/posix/spawni.c (script_execute): Always define it.
72040         It will be optimized away if unused.
72041         (maybe_script_execute): New function.
72042         (__spawni): Call it.
72043
72044         * Makerules: Don't include tls.make.
72045         (config-tls): Always set to thread.
72046         * tls.make.c: File removed.
72047
72048 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
72049
72050         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
72051         * config.make.in (CPPFLAGS-config): New substituted variable.
72052
72053 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72054
72055         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
72056
72057         [BZ #13192]
72058         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
72059         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
72060
72061 2011-09-15  Roland McGrath  <roland@hack.frob.com>
72062
72063         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
72064         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
72065         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
72066         (CALL_FAIL): Likewise.
72067         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
72068         (CALL_FAIL): Macro removed.
72069         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
72070
72071 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72072
72073         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
72074         for __FINITE_MATH_ONLY__ == 1.
72075
72076 2011-09-15  Andreas Schwab  <schwab@redhat.com>
72077
72078         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
72079         __ieee754_sqrt instead of sqrt.
72080         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
72081         __ieee754_sqrtf instead of sqrtf.
72082         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
72083         __floorf instead of floorf.
72084         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
72085         __floorf, __truncf instead of floorf, truncf.
72086
72087 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
72088
72089         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
72090
72091         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
72092         __extern_always_inline.
72093         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
72094         32-bit.
72095
72096 2011-09-14  Andreas Schwab  <schwab@redhat.com>
72097
72098         * elf/rtld.c (dl_main): Also relocate in dependency order when
72099         doing symbol dependency testing.
72100
72101 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
72102
72103         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72104         Always define `refsym'.
72105
72106 2011-09-13  Andreas Schwab  <schwab@redhat.com>
72107
72108         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
72109         (__FD_ELT): Renamed from __FDELT.
72110         * misc/bits/select2.h (__FD_ELT): Likewise.
72111         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
72112         __FD_MASK instead of __FDELT, __FDMASK.
72113         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72114         Likewise.
72115         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72116         Likewise.
72117
72118         * elf/Makefile (gen-ldd): Fix pattern.
72119
72120         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
72121         (init_tls): Likewise.
72122
72123 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
72124
72125         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
72126
72127 2011-09-12  Andreas Schwab  <schwab@redhat.com>
72128
72129         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
72130         `struct cmsghdr *' instead of `void *'.
72131         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
72132         Likewise.
72133
72134 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
72135
72136         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
72137         if non-absolute.
72138         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
72139         ldd_rewrite_script.
72140
72141 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
72142
72143         * configure.in: Remove --with-tls option.
72144         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
72145         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
72146         out in case it is missing.
72147         * sysdeps/ia64/elf/configure.in: Likewise.
72148         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
72149         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
72150         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
72151         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
72152         * sysdeps/sh/elf/configure.in: Likewise.
72153         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
72154         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
72155         * sysdeps/x86_64/elf/configure.in: Likewise.
72156         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
72157         * sysdeps/mach/hurd/tls.h: Likewise.
72158
72159         [BZ #13067]
72160         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
72161
72162         [BZ #13090]
72163         * configure.in: Fix use of AC_INIT.
72164
72165         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
72166
72167 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
72168
72169         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
72170         __set_errno.
72171         * malloc/hooks.c: Likewise.
72172
72173         [BZ #11929]
72174         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
72175         variables statically.
72176         (narenas): Initialize.
72177         (list_lock): Initialize.
72178         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
72179         initializtion of main_arena and list_lock.  Small cleanups.
72180         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
72181         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
72182         Add initializers to main_arena and mp_.
72183         (malloc_state): Remove pagesize member.  Change all users to use
72184         GLRO(dl_pagesize).
72185
72186         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
72187         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
72188         is always initialized.
72189
72190         * malloc/malloc.c: Removed unused configurations and dead code.
72191         * malloc/arena.c: Likewise.
72192         * malloc/hooks.c: Likewise.
72193         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
72194
72195         * include/tls.h: Removed.  USE___THREAD must always be defined.
72196         * bits/libc-tsd.h: Don't handle !USE___THREAD.
72197         * elf/dl-libc.c: Likewise.
72198         * elf/dl-tsd.c: Likewise.
72199         * include/errno.h: Likewise.
72200         * include/netdb.h: Likewise.
72201         * include/resolv.h: Likewise.
72202         * inet/herrno-loc.c: Likewise.
72203         * inet/herrno.c: Likewise.
72204         * malloc/arena.c: Likewise.
72205         * malloc/hooks.c: Likewise.
72206         * malloc/malloc.c: Likewise.
72207         * resolv/res-state.c: Likewise.
72208         * resolv/res_libc.c: Likewise.
72209         * sysdeps/i386/dl-machine.h: Likewise.
72210         * sysdeps/ia64/dl-machine.h: Likewise.
72211         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
72212         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
72213         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
72214         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
72215         * sysdeps/sh/dl-machine.h: Likewise.
72216         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
72217         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
72218         * sysdeps/unix/i386/sysdep.S: Likewise.
72219         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
72220         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
72221         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
72222         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
72223         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
72224         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
72225         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
72226         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
72227         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
72228         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
72229         * sysdeps/unix/x86_64/sysdep.S: Likewise.
72230         * sysdeps/x86_64/dl-machine.h: Likewise.
72231         * tls.make.c: Likewise.
72232
72233         * configure.in: Remove --with-__thread option.  Make tests for
72234         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
72235         tls_model attribute fail if no support is available.  Remove
72236         USE_IN_LIBIO.
72237         * Makeconfig: Adjust for dropped configure option.  All features are
72238         now mandatory.
72239         * Makerules: Likewise.
72240         * Versions.def: Likewise.
72241         * argp/argp-fmtstream.c: Likewise.
72242         * argp/argp-fmtstream.h: Likewise.
72243         * argp/argp-help.c: Likewise.
72244         * assert/assert.c: Likewise.
72245         * config.h.in: Likewise.
72246         * config.make.in: Likewise.
72247         * configure: Likewise.
72248         * configure.in: Likewise.
72249         * csu/Versions: Likewise.
72250         * csu/init.c: Likewise.
72251         * elf/tst-audit2.c: Likewise.
72252         * elf/tst-tls10.c: Likewise.
72253         * elf/tst-tls10.h: Likewise.
72254         * elf/tst-tls11.c: Likewise.
72255         * elf/tst-tls12.c: Likewise.
72256         * elf/tst-tls14.c: Likewise.
72257         * elf/tst-tlsmod11.c: Likewise.
72258         * elf/tst-tlsmod12.c: Likewise.
72259         * elf/tst-tlsmod13.c: Likewise.
72260         * elf/tst-tlsmod13a.c: Likewise.
72261         * elf/tst-tlsmod14a.c: Likewise.
72262         * elf/tst-tlsmod15b.c: Likewise.
72263         * elf/tst-tlsmod16a.c: Likewise.
72264         * elf/tst-tlsmod16b.c: Likewise.
72265         * elf/tst-tlsmod7.c: Likewise.
72266         * elf/tst-tlsmod8.c: Likewise.
72267         * elf/tst-tlsmod9.c: Likewise.
72268         * gmon/gmon.c: Likewise.
72269         * grp/fgetgrent_r.c: Likewise.
72270         * grp/putgrent.c: Likewise.
72271         * hurd/fopenport.c: Likewise.
72272         * include/libc-symbols.h: Likewise.
72273         * include/tls.h: Likewise.
72274         * intl/gettextP.h: Likewise.
72275         * intl/loadinfo.h: Likewise.
72276         * locale/global-locale.c: Likewise.
72277         * locale/localeinfo.h: Likewise.
72278         * mach/devstream.c: Likewise.
72279         * malloc/arena.c: Likewise.
72280         * malloc/set-freeres.c: Likewise.
72281         * misc/err.c: Likewise.
72282         * misc/getttyent.c: Likewise.
72283         * misc/mntent_r.c: Likewise.
72284         * posix/getopt.c: Likewise.
72285         * posix/wordexp.c: Likewise.
72286         * pwd/fgetpwent_r.c: Likewise.
72287         * resolv/Versions: Likewise.
72288         * resolv/res_hconf.c: Likewise.
72289         * shadow/fgetspent_r.c: Likewise.
72290         * shadow/putspent.c: Likewise.
72291         * stdio-common/printf_fphex.c: Likewise.
72292         * stdio-common/tmpfile.c: Likewise.
72293         * stdlib/abort.c: Likewise.
72294         * stdlib/fmtmsg.c: Likewise.
72295         * sunrpc/auth_unix.c: Likewise.
72296         * sunrpc/clnt_perr.c: Likewise.
72297         * sunrpc/clnt_tcp.c: Likewise.
72298         * sunrpc/clnt_udp.c: Likewise.
72299         * sunrpc/clnt_unix.c: Likewise.
72300         * sunrpc/openchild.c: Likewise.
72301         * sunrpc/svc_simple.c: Likewise.
72302         * sunrpc/svc_tcp.c: Likewise.
72303         * sunrpc/svc_udp.c: Likewise.
72304         * sunrpc/svc_unix.c: Likewise.
72305         * sunrpc/xdr.c: Likewise.
72306         * sunrpc/xdr_array.c: Likewise.
72307         * sunrpc/xdr_rec.c: Likewise.
72308         * sunrpc/xdr_ref.c: Likewise.
72309         * sunrpc/xdr_stdio.c: Likewise.
72310
72311 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72312
72313         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72314
72315 2011-07-03  Andreas Jaeger  <aj@suse.de>
72316
72317         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
72318         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
72319         regenerate with gen-libm-tests.pl.
72320
72321 2010-05-12  Petr Baudis  <pasky@suse.cz>
72322
72323         [BZ #11589]
72324         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
72325         around j0() zero points by switching to j1().
72326         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
72327         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
72328         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
72329         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
72330
72331 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72332
72333         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
72334         instead of 0.
72335         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
72336         instead of 0.
72337         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
72338         Patch in part by Pavel Roskin <proski@gnu.org>.
72339
72340         [BZ #13138]
72341         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
72342         realloc.
72343         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
72344         Free memory block if necessary.
72345
72346         [BZ #12847]
72347         * libio/genops.c (INTDEF): For string streams the _lock pointer can
72348         be NULL.  Don't lock in this case.
72349
72350 2011-09-09  Roland McGrath  <roland@hack.frob.com>
72351
72352         * elf/elf.h (ELFOSABI_GNU): New macro.
72353         (ELFOSABI_LINUX): Define to that.
72354
72355 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
72356
72357         * string/strncat.c (strncat): Undef the symbol in case it has been
72358         defined in bits/string.h.
72359
72360 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72361
72362         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
72363
72364         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
72365         link map.
72366
72367 2011-08-17  Andreas Jaeger  <aj@suse.de>
72368
72369         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
72370
72371 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
72372             Ian Lance Taylor  <iant@google.com>
72373
72374         * math/libm-test.inc (lround_test): New testcase.
72375         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
72376
72377 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
72378
72379         * Makefile: Remove support for automatic cvs check-ins.
72380         * Makerules: Likewise.
72381         * config.make.in: Likewise.
72382         * configure.in: Likewise.
72383         * intl/Makefile: Likewise.
72384         * locale/Makefile: Likewise.
72385         * po/Makefile: Likewise.
72386         * posix/Makefile: Likewise.
72387         * sysdeps/gnu/Makefile: Likewise.
72388         * sysdeps/mach/hurd/Makefile: Likewise.
72389         * sysdeps/sparc/sparc32/Makefile: Likewise.
72390
72391         [BZ #13118]
72392         * posix/Makefile (bug-regex32-ENV): Define.
72393         Patch by John Stanley <jpsinthemix@verizon.net>.
72394
72395         * misc/Makefile (headers): Add bits/select2.h.
72396         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
72397         * misc/bits/select2.h: New file.
72398         * include/bits/select2.h: New file.
72399         * debug/Makefile (routines): Add fdelt_chk.
72400         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
72401         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
72402         FD_ISSET.
72403         * debug/fdelt_chk.c: New file.
72404
72405         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
72406         * wcsmbs/test-wmemcmp.c: Likewise.
72407         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
72408         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
72409
72410 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72411
72412         * string/Makefile (strop-tests): Add memcmp.
72413         * string/test-wmemcmp.c: New file.
72414         * string/test-memcmp.c: Add wmemcmp support.
72415
72416 2011-09-08  Roland McGrath  <roland@hack.frob.com>
72417
72418         [BZ #13153]
72419         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
72420         2011-07-19 change.
72421
72422         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
72423         garbage value in a __mach_port_mod_refs call in the cases of the
72424         task-self and thread-self ports.
72425
72426 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
72427
72428         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
72429
72430 2011-09-08  Andreas Schwab  <schwab@redhat.com>
72431
72432         * elf/dl-load.c (lose): Check for non-null L.
72433
72434 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
72435
72436         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
72437
72438         * elf/dl-libc.c (dlerror_run): Pass back error code from
72439         dl_catch_error.
72440
72441         [BZ #13123]
72442         * elf/dl-load.c (lose): Free l_origin if it is valid.
72443
72444         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
72445         names.
72446         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
72447         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
72448         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
72449         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
72450         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
72451         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
72452
72453 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
72454
72455         * sysdeps/powerpc/fpu/e_hypot.c: New file.
72456         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
72457         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
72458         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
72459         * sysdeps/powerpc/fpu/k_cosf.c: New file.
72460         * sysdeps/powerpc/fpu/k_sinf.c: New file.
72461         * sysdeps/powerpc/fpu/s_cosf.c: New file.
72462         * sysdeps/powerpc/fpu/s_sinf.c: New file.
72463         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
72464         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
72465
72466 2011-08-15  Alan Modra  <amodra@gmail.com>
72467
72468         [BZ #13092]
72469         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
72470         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
72471         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
72472         ppc_mcount to static-only-routines.
72473         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
72474         __mcount_internal.
72475         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
72476         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
72477
72478 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
72479
72480         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
72481         for finite and infinity parameters.
72482
72483 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
72484
72485         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
72486         and add nop instructions for throughput optimization.
72487         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
72488
72489 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
72490
72491         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
72492         aligned copy for power7 with vector-scalar instructions.
72493         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
72494
72495 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
72496
72497         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
72498         AVX check.
72499
72500 2011-09-07  Andreas Schwab  <schwab@redhat.com>
72501
72502         [BZ #13144]
72503         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
72504         last change.
72505
72506 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
72507
72508         * sysdeps/unix/sysv/linux/x86_64/init-first.c
72509         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
72510         syscall wrapper around clock_gettime in __vdso_clock_gettime.
72511         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
72512         clock_gettime.
72513
72514 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
72515
72516         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
72517         Forgot to demangle the pointer.
72518
72519         * sysdeps/i386/sysdep.h: Define atom_text_section.
72520         * sysdeps/x86_64/sysdep.h: Likewise.
72521         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
72522         section with atom_text_section.
72523         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
72524         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
72525         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
72526         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
72527         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
72528
72529         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
72530         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
72531         already be defined.  Change to take two parameters and don't assign
72532         result to variable.  Adjust all users.
72533         Define INTERNAL_GETTIME if not already defined.
72534         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
72535         call.
72536         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
72537         HAVE_CLOCK_GETTIME_VSYSCALL.
72538         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
72539
72540         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
72541         gettimeofday vsyscall, just use time.
72542
72543 2011-09-06  Andreas Schwab  <schwab@redhat.com>
72544
72545         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
72546         <errno.h>.
72547
72548 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
72549
72550         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
72551         syscall on x86-64.
72552         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
72553         syscall.
72554         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
72555         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
72556         syscall if possible.
72557
72558 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72559
72560         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
72561         e_ident.  Don't pass to find_mapsXX.
72562         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
72563
72564 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72565
72566         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
72567         strchr-sse2-no-bsf strrchr-sse2-no-bsf
72568         * sysdeps/x86_64/multiarch/strchr.S: Update.
72569         Check bit_slow_BSF bit.
72570         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
72571         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
72572         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
72573
72574 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72575
72576         [BZ #13134]
72577         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
72578         before glibc 2.15.
72579         (tryshell): Define.
72580         (__spawni): Change last parameter to be flag.  Test
72581         SPAWN_XFLAGS_USE_PATH flag to use path or not.
72582         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
72583         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
72584         * posix/spawni.c: Likewise.
72585         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
72586         * posix/spawnp.c: Likewise.  Change normal version to use
72587         SPAWN_XFLAGS_USE_PATH.
72588         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
72589         SPAWN_XFLAGS_TRY_SHELL.
72590
72591         [BZ #13150]
72592         * posix/glob.h: Remove gcc 1.x support.
72593
72594         [BZ #13068]
72595         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
72596
72597 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72598
72599         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
72600         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
72601         strrchr-sse2-bsf
72602         * sysdeps/i386/i686/multiarch/strchr.S: New file.
72603         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
72604         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
72605         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
72606         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
72607         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
72608
72609 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72610
72611         * sysdeps/x86_64/wcscmp.S: New file.
72612
72613         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
72614         wcscmp-c wcscmp-sse2
72615         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
72616         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
72617         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
72618         * wcsmbs/wcscmp.c: Allow renaming.
72619
72620 2011-09-05  David S. Miller  <davem@davemloft.net>
72621
72622         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
72623         stack slot, rather than the struct return pointer slot.
72624         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
72625         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
72626         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
72627         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
72628
72629 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
72630
72631         * po/ja.po: Update from translation team.
72632
72633         [BZ #13144]
72634         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
72635         kernel in 64-bit binaries.
72636
72637 2011-09-01  David S. Miller  <davem@davemloft.net>
72638
72639         * elf/elf.h (HWCAP_SPARC_*): Move to..
72640         * sysdeps/sparc/sysdep.h: this new file and add new values.
72641         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
72642         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
72643         _DL_HWCAP_COUNT to 24.
72644         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
72645         entries.
72646         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
72647         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
72648         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
72649         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
72650         instead of magic constants.
72651         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
72652
72653 2011-08-31  David S. Miller  <davem@davemloft.net>
72654
72655         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
72656         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
72657         Reimplement to do errno handling inline.
72658         (SYSCALL_ERROR_HANDLER): New macro.
72659         (__SYSCALL_STRING): Do not do errno handling in asm.
72660         (__CLONE_SYSCALL_STRING): Delete.
72661         (__INTERNAL_SYSCALL_STRING): Delete.
72662         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
72663         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
72664         (PSEUDO): Reimplement to do errno handling inline.
72665         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
72666         (SYSCALL_ERROR_HANDLER): New macro.
72667         (__SYSCALL_STRING): Do not do errno handling in asm.
72668         (__CLONE_SYSCALL_STRING): Delete.
72669         (__INTERNAL_SYSCALL_STRING): Delete.
72670         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
72671         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
72672         i386.
72673         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
72674         (inline_syscall*): Add 'err' argument.
72675         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
72676         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
72677         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
72678         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
72679
72680         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
72681         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
72682
72683 2011-08-30  Andreas Schwab  <schwab@redhat.com>
72684
72685         * elf/rtld.c (dl_main): Relocate objects in dependency order.
72686
72687 2011-08-29  Jiri Olsa <jolsa@redhat.com>
72688
72689         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
72690         directive.
72691
72692 2011-08-24  David S. Miller  <davem@davemloft.net>
72693
72694         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
72695
72696 2011-08-24  Andreas Schwab  <schwab@redhat.com>
72697
72698         * elf/Makefile: Add rules to build and run unload8 test.
72699         * elf/unload8.c: New file.
72700         * elf/unload8mod1.c: New file.
72701         * elf/unload8mod1x.c: New file.
72702         * elf/unload8mod2.c: New file.
72703         * elf/unload8mod3.c: New file.
72704
72705         * elf/dl-close.c (_dl_close_worker): Reset private search list if
72706         it wasn't used.
72707
72708 2011-08-23  David S. Miller  <davem@davemloft.net>
72709
72710         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
72711         subtract stack bias.
72712         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
72713         %sp not %fp in calculations.
72714         (_JMPBUF_UNWINDS_ADJ): Likewise.
72715
72716         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
72717         (aio_suspend): Call it to force an exception region around the
72718         AIO_MISC_WAIT() invocation.
72719
72720 2011-08-23  Andreas Schwab  <schwab@redhat.com>
72721
72722         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
72723         backslash.
72724
72725 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
72726
72727         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
72728         protection macro.
72729         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
72730         and <dl-machine.h>.
72731         (Elf64_FuncDesc): Remove.
72732
72733 2011-08-22  David S. Miller  <davem@davemloft.net>
72734
72735         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
72736         sigaltstack check, add missing cfi directives.
72737         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
72738         missing cfi directives, and sigaltstack handling.
72739
72740 2011-08-16  Andreas Schwab  <schwab@redhat.com>
72741
72742         [BZ #11724]
72743         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
72744         object is seen twice.
72745         * elf/dl-fini.c (_dl_sort_fini): Likewise.
72746
72747         * elf/Makefile (distribute): Add tst-initorder2.c.
72748         (tests): Add tst-initorder2.
72749         (modules-names): Add tst-initorder2a tst-initorder2b
72750         tst-initorder2c tst-initorder2d.  Add rules to build them.
72751         ($(objpfx)tst-initorder2.out): New rule.
72752         * elf/tst-initorder2.c: New file.
72753         * elf/tst-initorder2.exp: New file.
72754
72755 2011-08-22  Andreas Schwab  <schwab@redhat.com>
72756
72757         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
72758
72759         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
72760         dependencies back to end of function.
72761
72762         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
72763         $(elfobjdir)/ld.so.
72764
72765 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
72766
72767         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
72768         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
72769         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
72770         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
72771         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
72772         of __vdso_gettimeofday.
72773         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
72774         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
72775         attribute_hidden.
72776         (_libc_vdso_platform_setup): Remove initialization of
72777         __vdso_gettimeofday and __vdso_time.
72778
72779 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
72780
72781         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
72782         and fgetc_unlocked.
72783         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
72784         getc_unlocked.
72785
72786         * elf/dl-open.c (add_to_global): Report additions to the global scope
72787         for LD_DEBUG=scopes.
72788         (dl_open_worker): Also print scope of newly loaded dependencies.
72789         (_dl_show_scope): Indicate if there is no scope.
72790
72791         [BZ #13114]
72792         * stdio-common/Makefile (tests): Add bug24.
72793         * stdio-common/bug24.c: New file.
72794
72795 2011-08-19  Andreas Jaeger  <aj@suse.de>
72796
72797         [BZ #13114]
72798         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
72799         non-existant file when using close-on-exec mode.
72800
72801 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
72802
72803         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
72804         the very first instruction.
72805
72806         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
72807         the CFI state in the end.
72808         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
72809         inclusion of dl-trampoline.h.
72810         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
72811
72812 2011-08-19  Andreas Schwab  <schwab@redhat.com>
72813
72814         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
72815         expectations for long double.
72816
72817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
72818         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
72819
72820 2011-08-14  David S. Miller  <davem@davemloft.net>
72821
72822         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
72823         artificual limit depends upon the system page size.
72824
72825 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
72826
72827         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
72828         * resolv/Makefile: Define CFLAGS-libresolv.
72829
72830 2011-08-17  Andreas Schwab  <schwab@redhat.com>
72831
72832         * nss/makedb.c (compute_tables): Make variables used in nested
72833         function static.
72834
72835 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
72836
72837         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
72838         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
72839         if buffer was too small.
72840
72841         * elf/pldd.c (main): Attach to all threads in the process.
72842         Rewrite /proc handling to use *at functions.
72843
72844 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
72845
72846         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
72847         specifies first scope to show.
72848         (dl_open_worker): Update callers.  Move printing scope of new
72849         object to before the relocation.
72850         * elf/rtld.c (dl_main): Update _dl_show_scope call.
72851         * sysdeps/generic/ldsodefs.h: Update declaration.
72852
72853         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
72854         string for the scope number.
72855
72856 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
72857
72858         * nscd/servicescache.c (cache_addserv): Make sure written is always
72859         initialized.
72860
72861 2011-08-14  Roland McGrath  <roland@hack.frob.com>
72862
72863         * sysdeps/i386/i486/bits/atomic.h
72864         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
72865         statement expression, so as to suppress "set but not used" warning.
72866         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
72867
72868         * string/strncat.c (STRNCAT): Use prototype definition.
72869
72870         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
72871         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
72872         -Iprograms here.
72873         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
72874         (localedef-modules): Add localedef.
72875         (locale-modules): Add locale.
72876
72877         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
72878         * elf/rtld.c (dl_main): Invert order of assignment in last change,
72879         to avoid a warning.
72880
72881 2011-08-14  David S. Miller  <davem@davemloft.net>
72882
72883         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
72884         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
72885
72886 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
72887
72888         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
72889         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
72890         * elf/rtld.c (dl_main): Set l_name of vDSO.
72891         Call _dl_show_scope when DL_DEBUG_SCOPES.
72892         (process_dl_debug): Recognize scopes flag and also set it for all.
72893         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
72894         Declare _dl_show_scope.
72895
72896         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
72897         (do_dlopen): Pass caller_dlopen to dl_open.
72898         (__libc_dlopen_mode): Initialize caller_dlopen.
72899
72900         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
72901         of libc.  Make tolower call locale-independent.  Optimize a bit by
72902         using isdigit instead of isalnum.
72903         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
72904
72905 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
72906
72907         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
72908         was a dependency or dynamically loaded.
72909
72910 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
72911
72912         * intl/l10nflist.c: Allow architecture-specific pop function.
72913         * sysdeps/x86_64/l10nflist.c: New file.
72914
72915         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
72916         classification.
72917
72918 2011-08-10  Andreas Schwab  <schwab@redhat.com>
72919
72920         * include/dirent.h: Add libc_hidden_proto for scandirat and
72921         scandirat64.  Don't declare __scandirat64.
72922         * dirent/scandirat.c: Add libc_hidden_def.
72923         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
72924         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
72925
72926 2011-08-10  David S. Miller  <davem@davemloft.net>
72927
72928         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
72929         enum.
72930         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
72931         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
72932         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
72933
72934 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
72935
72936         * Versions.def [libc]: Add GLIBC_2.15.
72937         * dirent/Makefile (routines): Add scandirat and scandirat64.
72938         * dirent/Versions [libc]: Export scandirat and scandirat64 for
72939         GLIBC_2.15.
72940         * dirent/dirent.h: Declare scandirat and scandirat64.
72941         * dirent/scandirat.c: New file.
72942         * dirent/scandirat64.c: New file.
72943         * sysdeps/wordsize-64/scandirat.c: New file.
72944         * sysdeps/wordsize-64/scandirat64.c: New file.
72945         * dirent/opendir.c: Define opendirat.
72946         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
72947         using scandirat.
72948         * dirent/scandir64.c: Adjust for scandir.c change.
72949         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
72950         __scandirat64, and __scandir_cancel_handler.
72951         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
72952         additional parameter and use openat instead of open (outside of ld.so).
72953         Add new __opendir as wrapper around __opendirat.
72954         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
72955         here without requiring old scandirat implementation.
72956
72957 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
72958
72959         * dirent/scandir.c (cancel_handler): Renamed to
72960         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
72961         defined.  Adjust users.
72962         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
72963         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
72964
72965 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
72966
72967         * string/test-string.h (IMPL): Use __STRING to expand name and then
72968         stringify it.
72969
72970         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
72971         of cleanups.
72972
72973 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72974
72975         * string/Makefile: Update.
72976         (strop-tests): Append strncat.
72977         * string/test-wcscmp.c: New file.
72978         New comprehensive test for wcscmp.
72979         * string/test-strcmp.c: Update.
72980         (WIDE): New define.
72981
72982 2011-07-22  Andreas Schwab  <schwab@redhat.com>
72983
72984         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
72985         line.
72986
72987 2011-07-26  Andreas Schwab  <schwab@redhat.com>
72988
72989         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
72990         encoding to ACE if AI_IDN.
72991
72992 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
72993
72994         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
72995         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
72996
72997 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
72998
72999         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
73000         Fix overflow bug in strncat.
73001         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
73002
73003         * string/test-strncat.c: Update.
73004         Add new tests for checking overflow bugs.
73005
73006 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73007
73008         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73009         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
73010         * sysdeps/i386/i686/multiarch/strcat.S: New file.
73011         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
73012         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
73013         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
73014         * sysdeps/i386/i686/multiarch/strncat.S: New file.
73015         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
73016         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
73017
73018         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
73019         (USE_AS_STRCAT): Define.
73020         Add strcat and strncat support.
73021         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73022
73023 2011-07-25  Andreas Schwab  <schwab@redhat.com>
73024
73025         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
73026         __n bigger than INT_MAX+1.
73027         (__strncmp_g): Likewise.
73028
73029 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
73030
73031         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
73032         * libio/stido.h: Likewise.
73033
73034         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
73035         (AF_NFC): Define.
73036         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
73037         (AF_NFC): Define.
73038
73039         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
73040         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73041         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73042         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
73043         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73044
73045         [BZ #13021]
73046         * scripts/test-installation.pl: Don't expect libnss_test1 to be
73047         installed.
73048
73049         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
73050         typo.
73051         (_dl_x86_64_save_sse): Likewise.
73052
73053 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
73054
73055         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
73056         OSXSAVE.
73057         (_dl_x86_64_save_sse): Likewise.
73058
73059         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
73060
73061         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
73062
73063 2011-07-21  Andreas Schwab  <schwab@redhat.com>
73064
73065         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
73066         change.
73067         (_dl_x86_64_save_sse): Use correct AVX check.
73068
73069 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73070
73071         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
73072         bug in strncpy/strncat.
73073         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
73074
73075 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
73076
73077         * string/tester.c (test_strcat): Add tests for different alignments
73078         of source and destination.
73079         (test_strncat): Likewise.
73080
73081 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73082
73083         [BZ #12852]
73084         * posix/glob.c (glob): Check passed in values before using them in
73085         expressions to avoid some overflows.
73086         (glob_in_dir): Likewise.
73087
73088         [BZ #13007]
73089         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
73090         check for AVX enablement so that we don't crash with old kernels and
73091         new hardware.
73092         * elf/tst-audit4.c: Add same checks here.
73093         * elf/tst-audit6.c: Likewise.
73094
73095         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
73096
73097 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
73098
73099         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
73100
73101 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73102
73103         * po/cs.po: Update from translation team.
73104         * po/bg.po: Likewise.
73105
73106 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
73107
73108         * misc/sys/cdefs.h: Add support for const attribute.
73109         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
73110         to gnu_dev_{major,minor,makedev} functions.
73111
73112 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
73113
73114         * intl/dcigettext.c (get_output_charset): Add missing bracket.
73115
73116 2011-07-20  Andreas Schwab  <schwab@redhat.com>
73117
73118         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
73119         strlen results.
73120
73121 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73122
73123         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
73124         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
73125         register in order to avoid conflicts with the soft frame pointer
73126         being held in r11 when necessary.
73127         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
73128         (INTERNAL_VSYSCALL_NCS): Likewise.
73129
73130 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
73131
73132         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
73133         * elf/dl-fini.c (_dl_fini): Adjust caller.
73134         * elf/dl-close.c (_dl_close_worker): Likewise.
73135         * sysdeps/generic/ldsodefs.h: Adjust declaration.
73136
73137 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73138
73139         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
73140         "aux_cache->nlibs < 0".
73141
73142         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
73143         in the reload-count case.
73144
73145 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73146
73147         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73148         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
73149         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
73150         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
73151         * sysdeps/x86_64/multiarch/strcat.S: New file.
73152         * sysdeps/x86_64/multiarch/strncat.S: New file.
73153         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
73154         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
73155         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
73156         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
73157         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
73158         (USE_AS_STRCAT): Define.
73159         Add strcat and strncat support.
73160         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73161         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
73162         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
73163         * string/strncat.c: Update.
73164         (USE_AS_STRNCAT): Define.
73165         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73166         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
73167         and i7.
73168         * sysdeps/x86_64/multiarch/init-arch.h
73169         (bit_Prefer_PMINUB_for_stringop): New.
73170         (index_Prefer_PMINUB_for_stringop): Likewise.
73171         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
73172         bit_Prefer_PMINUB_for_stringop.
73173
73174 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73175
73176         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
73177         buffer64.
73178         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
73179         of casting of buffer.
73180         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
73181         buffer32 and buffer64.
73182         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
73183         writes instead of casting of buffer.
73184         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
73185         buffer32.
73186         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
73187         casting of buffer.
73188
73189 2011-07-19  Andreas Schwab  <schwab@redhat.com>
73190
73191         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
73192
73193 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73194
73195         * nscd/nscd.c (termination_handler): Don't do anything for a database
73196         if it has not yet been initialized.
73197
73198 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73199
73200         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73201
73202 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73203
73204         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73205
73206 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73207
73208         * po/nl.po: Update from translation team.
73209         * po/sv.po: Likewise.
73210
73211 2011-07-16  Roland McGrath  <roland@hack.frob.com>
73212
73213         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
73214         now disallowed by GCC.
73215
73216         * configure.in (use-default-link): Default to yes if a test -shared
73217         link meets our qualifications.
73218         * configure: Regenerated.
73219
73220         * config.make.in (output-format): New variable.
73221         * configure.in: Check for ld --print-output-format support.
73222         * configure: Regenerated.
73223         * Makerules ($(common-objpfx)format.lds)
73224         [$(output-format) != unknown]: Just use $(output-format),
73225         instead of the linker-script munging.
73226
73227 2011-07-14  Roland McGrath  <roland@hack.frob.com>
73228
73229         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
73230         of $(common-objpfx)shlib.lds.
73231         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
73232
73233         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
73234         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
73235
73236         * configure.in (-z relro check): Adjust test code to add a large
73237         writable data section after it.
73238         * configure: Regenerated.
73239
73240 2011-07-11  Roland McGrath  <roland@hack.frob.com>
73241
73242         * configure.in (-z relro check): Fix test code to make the variable
73243         truly const.
73244         * configure: Regenerated.
73245
73246 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
73247
73248         * nscd/nscd.h (struct traced_file): Define.
73249         (struct database_dyn): Remove inotify_descr, reset_res, and filename
73250         elements.  Add traced_files.
73251         (inotify_fd): Declare.
73252         (register_traced_file): Declare.
73253         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
73254         (inotify_fd): Export.
73255         (resolv_conf_descr): Remove.
73256         (nscd_init): Move inotify descriptor creation to main.
73257         Don't register files for notification here.
73258         (register_traced_file): New function.
73259         (invalidate_cache): Don't use reset_res to determine whether to call
73260         res_init, go through the list of registered files.
73261         (main_loop_poll): The inotify descriptors are now stored in the
73262         structures for the traced files.
73263         (main_loop_epoll): Likewise.
73264         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
73265         to __nss_disable_nscd.
73266         * nscd/cache.c (prune_cache): There is no single inotify descriptor
73267         for a database anymore.  Check the records for all the registered
73268         files instead.
73269         * nss/Makefile (libnss_files-routines): Add files-init.
73270         (libnss_db-routines): Add db-init.
73271         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
73272         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
73273         * nss/nss_db/db-init.c: New file.
73274         * nss/nss_files/files-init.c: New file.
73275         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
73276         __nss_lookup_function.
73277         (__nss_lookup_function): Call nss_load_library.
73278         (nss_load_all_libraries): New function.
73279         (__nss_disable_nscd): Take parameter with callback function for files
73280         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
73281         used for the cached services.
73282         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
73283         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
73284         options for features to all the files in nscd.
73285
73286         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
73287
73288 2011-07-10  Roland McGrath  <roland@hack.frob.com>
73289
73290         * csu/elf-init.c (__libc_csu_init): Comment typo.
73291
73292 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
73293
73294         * po/pl.po: Update from translation team.
73295         * po/ja.po: Likewise.
73296         * po/ru.po: Likewise.
73297         * po/ko.po: Likewise.
73298         * po/fr.po: Likewise.
73299
73300 2011-07-09  Roland McGrath  <roland@hack.frob.com>
73301
73302         * configure.in (.ctors/.dtors header and trailer check):
73303         Use an empirical test on a built program.
73304         * configure: Regenerated.
73305
73306         * configure.in (-z relro check): Use an empirical test on a built DSO.
73307         Detect, but do not require, on ia64.
73308         * configure: Regenerated.
73309
73310         * configure.in (READELF): Find it with AC_CHECK_TOOL.
73311         Update tests that use readelf to use $READELF instead.
73312         * configure: Regenerated.
73313
73314 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
73315
73316         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
73317         if the result is not used.
73318
73319 2011-07-05  Andreas Jaeger  <aj@suse.de>
73320
73321         [BZ#9696]
73322         * stdlib/tst-strtod.c: Add testcase.
73323
73324 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
73325
73326         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
73327         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
73328         The latter has a higher limit.  Take additional parameter to pass to
73329         the new function.
73330         (__pathconf): Pass file to __statfs_link_max.
73331         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
73332         __statfs_link_max.
73333         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
73334         __statfs_link_max.
73335
73336         [BZ #12868]
73337         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
73338         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
73339         Handle Lustre.
73340         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
73341         (__statfs_filesize_max): Likewise.
73342         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
73343
73344 2011-07-05  Andreas Jaeger  <aj@suse.de>
73345
73346         * resolv/res_comp.c (dn_skipname): Remove unused variable.
73347
73348 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
73349
73350         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
73351         `status' variable.
73352         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
73353         Likewise.
73354
73355 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
73356
73357         * Makefile (strop-tests): Add strncat.
73358         * string/test-strncat.c: New file.
73359
73360 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
73361
73362         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
73363
73364 2011-06-21  Andreas Jaeger  <aj@suse.de>
73365
73366         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
73367         Copy rule from iconvdata/Makefile.
73368
73369 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73370
73371         [BZ #12922]
73372         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
73373         but no long options are defined, just return 'W'.
73374
73375 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
73376
73377         [BZ #9696]
73378         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
73379
73380 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73381
73382         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
73383         netgroups to read.
73384         (innetgr): Likewise.
73385
73386 2011-07-05  Roland McGrath  <roland@hack.frob.com>
73387
73388         * config.make.in (install_root): Default to $(DESTDIR).
73389
73390 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
73391
73392         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
73393
73394 2011-07-02  Roland McGrath  <roland@hack.frob.com>
73395
73396         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
73397
73398         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
73399         containing directory rather than embedding absolute directory names.
73400
73401         * scripts/check-local-headers.sh: Rewritten using awk.
73402         Match by word, not by line.  Print error messages for matches.
73403         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
73404
73405         * Makerules [shlib-lds-flags empty]:
73406         ($(common-objpfx)libc_pic.opts): New target.
73407         ($(common-objpfx)libc_pic.os.clean): New target.
73408         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
73409
73410         * config.make.in (OBJCOPY): New variable.
73411         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
73412         * configure: Regenerated.
73413
73414         * config.make.in (use-default-link): New variable.
73415         * configure.in (use_default_link): Grok --with-default-link to set it.
73416         * configure: Regenerated.
73417         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
73418         (shlib-lds, shlib-lds-flags): Define to empty.
73419
73420         * Makerules (shlib-lds): New variable.
73421         (shlib-lds-flags): New variable.
73422         (build-shlib, build-moduile, build-module-asneeded): Use it.
73423         ($(common-objpfx)libc.so): Use $(shlib-lds).
73424         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
73425         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
73426
73427         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
73428         DT_FLAGS/DT_FLAGS_1 with zero flags.
73429
73430         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
73431         linker script munging.
73432
73433 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
73434
73435         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
73436         as 128-bit value.
73437         * crypt/sha512.c (sha512_process_block): Perform total addition using
73438         128-bit if possible.
73439         (__sha512_finish_ctx): Likewise.
73440         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
73441         as 64-bit value.
73442         * crypt/sha256.c (SWAP64): Define.
73443         (sha256_process_block): Perform total addition using 64-bit if
73444         possible.
73445         (__sha256_finish_ctx): Likewise.
73446
73447 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
73448
73449         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
73450         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73451         * nscd/hstcache.c (cache_addhst): Likewise.
73452         * nscd/grpcache.c (cache_addgr): Likewise.
73453         * nscd/aicache.c (addhstaiX): Likewise.
73454         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
73455
73456 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
73457
73458         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
73459         * nscd/initgrcache.c (addinitgroupsX): Likewise.
73460         * nscd/hstcache.c (cache_addhst): Likewise.
73461         * nscd/grpcache.c (cache_addgr): Likewise.
73462         * nscd/aicache.c (addhstaiX): Likewise.
73463
73464 2011-07-01  Andreas Schwab  <schwab@redhat.com>
73465
73466         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
73467         domain only when needed.
73468
73469 2011-06-30  Andreas Schwab  <schwab@redhat.com>
73470
73471         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
73472         is always restored.
73473
73474 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
73475
73476         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
73477         are re-adding the entry.
73478         * nscd/servicescache.c (cache_addserv): Likewise.
73479
73480 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
73481
73482         * sysdeps/generic/dl-irel.h: fix protection against multiple
73483         inclusions.
73484         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
73485
73486 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
73487
73488         [BZ #12935]
73489         * malloc/memusage.sh: Fix quoting in message.
73490         * debug/xtrace.sh: Likewise.
73491
73492         * configure.in: Remove support for --experimental-malloc option, make
73493         it the default.
73494         * config.make.in: Likewise.
73495         * malloc/Makefile: Likewise.
73496
73497 2011-06-27  Andreas Schwab  <schwab@redhat.com>
73498
73499         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
73500         two-byte characters.
73501
73502 2011-06-27  Roland McGrath  <roland@hack.frob.com>
73503
73504         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
73505         AC_CACHE_CHECK invocation.
73506         * configure: Regenerated.
73507
73508         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
73509
73510 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
73511
73512         [BZ #12350]
73513         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
73514         bit from old_res_options.
73515
73516         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
73517
73518         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
73519         value type for setfct.
73520
73521 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
73522
73523         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
73524         __gettimeofday instead of gettimeofday.
73525
73526 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
73527
73528         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
73529
73530 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
73531
73532         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
73533
73534         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
73535         info.
73536
73537 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
73538
73539         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73540         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
73541         strcpy-sse2-unaligned strncpy-sse2-unaligned
73542         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
73543         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
73544         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
73545         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
73546         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
73547         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
73548         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
73549         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
73550         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
73551         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
73552         (STRCPY): Support SSE2 and SSSE3 versions.
73553
73554 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
73555
73556         [BZ #12874]
73557         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
73558         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
73559         kernels which artificially limit size of requests.
73560
73561 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
73562
73563         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73564         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
73565         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
73566         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
73567         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
73568         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
73569         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
73570         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
73571         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
73572         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
73573         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
73574         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
73575         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
73576         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
73577         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
73578         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73579         Enable unaligned load optimization for Intel Core i3, i5 and i7
73580         processors.
73581         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
73582         Define.
73583         (index_Fast_Unaligned_Load): Define.
73584         (HAS_FAST_UNALIGNED_LOAD): Define.
73585
73586 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
73587
73588         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
73589
73590 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
73591
73592         [BZ #12907]
73593         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
73594         until it is clear that the information is realy needed.
73595         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
73596
73597 2011-06-22  Andreas Schwab  <schwab@redhat.com>
73598
73599         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
73600
73601 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
73602
73603         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
73604         /sys/devices/system/cpu/online if it is usable.
73605
73606         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
73607         reading the information from the /proc filesystem to once a second.
73608
73609 2011-06-21  Andreas Jaeger  <aj@suse.de>
73610
73611         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
73612         NULL after inclusion of kernel headers.
73613
73614 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
73615
73616         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
73617         calls to internal_setent.
73618
73619         [BZ #12885]
73620         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
73621         addresses using gethostbyname4_r ignore IPv4 addresses.
73622
73623         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
73624         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
73625
73626         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
73627
73628 2011-06-20  David S. Miller  <davem@davemloft.net>
73629
73630         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
73631         inclusions.
73632         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
73633
73634         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
73635         (elf_irel): Use it.
73636         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
73637         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
73638         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
73639         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
73640         * sysdeps/x86_64/dl-irel.h: Likewise.
73641
73642         * elf/dl-runtime.c: Use elf_ifunc_invoke.
73643         * elf/dl-sym.c: Likewise.
73644
73645 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
73646
73647         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
73648         need to dereference resplen2.
73649
73650 2011-06-14  Andreas Schwab  <schwab@redhat.com>
73651
73652         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
73653
73654 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
73655
73656         * Makeconfig: Define vardbdir and inst_vardbdir.
73657         * nss/Makefile: Add rules to install db-Makefile.
73658
73659         * nss/nss_db/db-XXX.c: Cleanup.
73660
73661         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
73662         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
73663         GLIBC_PRIVATE.
73664         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
73665         * nss/makedb.c: Implement -g option to specify that value strings
73666         are generated and should not be added to table iterated over for
73667         get*ent calls.
73668         * nss/nss_db/db-initgroups.c: New file.
73669
73670         * nss/getent.c: Add support for initgroups lookups through getgrouplist
73671         interface.
73672
73673         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
73674         (internal_getgrouplist): Adjust to name change.
73675         Update use_initgroups_entry if this is not the first call.
73676         * nss/databases.def: Add initgroups entry.
73677
73678         * nss/makedb.c (compute_tables): Check result of multiple hash table
73679         sizes to minimize maximum chain length.
73680
73681 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
73682
73683         * Versions.def: Add entry for libnss_db.
73684         * shlib-versions: Likewise.
73685         * nss/Makefile: Add rules to build libnss_db.
73686         * nss/Versions: Add libnss_db information.  Organize libnss_files
73687         entries better.
73688         * nss/db-Makefile: Add gshadow support.  Change rules for the new
73689         makedb progra.  Some minor improvements to generate smaller files.
73690         * nss/nss_db/nss_db.h: Move NSS database header data structures to
73691         here from...
73692         * nss/makedb.c: ...here.
73693         Improve database format to be smaller and require less memory at
73694         runtime.
73695         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
73696         db anymore.
73697         * nss/nss_db/db-netgrp.c: Likewise.
73698         * nss/nss_db/db-open.c: Likewise.
73699         * nss/nss_files/flies-XXX.x: Adjust comments.
73700         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
73701         * nss/nss_files/files-grp.c: Likewise.
73702         * nss/nss_files/files-hosts.c: Likewise.
73703         * nss/nss_files/files-network.c: Likewise.
73704         * nss/nss_files/files-proto.c: Likewise.
73705         * nss/nss_files/files-pwd.c: Likewise.
73706         * nss/nss_files/files-rpc.c: Likewise.
73707         * nss/nss_files/files-service.c: Likewise.
73708         * nss/nss_files/files-sgrp.c: Likewise.
73709         * nss/nss_files/files-spwd.c: Likewise.
73710         * nss/nss_db/db-alias.c: Removed.
73711         * nss/nss_db/dummy-db.h: Removed.
73712
73713 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
73714
73715         * nss/makedb.c: Rewritten to not use database library.
73716         * nss/Makefile: Update to build new makedb program.
73717
73718 2011-06-14  Andreas Jaeger  <aj@suse.de>
73719
73720         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
73721         memset declaration.
73722
73723 2011-06-10  Andreas Schwab  <schwab@redhat.com>
73724
73725         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
73726         tmpbuf.
73727
73728 2011-06-10  Roland McGrath  <roland@hack.frob.com>
73729
73730         * Makerules (shlib.lds): Fail if the linker script comes out empty.
73731         * elf/Makefile ($(objpfx)ld.so): Likewise.
73732
73733         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
73734         Don't list ld.so twice in dependencies.
73735
73736         * posix/bug-regex31.c: Include <stdlib.h>.
73737
73738         * nscd/hstcache.c (cache_addhst): Remove unused variable.
73739
73740         * nis/nss_compat/compat-spwd.c
73741         (getspent_next_nss_netgr): Remove unused variable.
73742         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
73743
73744         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
73745         nonmembers" output to use the right array.
73746
73747         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
73748
73749         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
73750
73751         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
73752         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
73753         * catgets/gencat.c (read_input_file): Likewise.
73754         * locale/programs/locarchive.c (enlarge_archive): Likewise.
73755
73756         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
73757         variable definition inside #if's controlling its use.
73758
73759         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
73760
73761         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
73762
73763         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
73764
73765         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
73766         unreachable code.
73767
73768         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
73769
73770         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
73771         * configure: Regenerated.
73772
73773         * Makerules: Revert last change.
73774         * elf/Makefile: Likewise.
73775
73776 2011-06-09  Roland McGrath  <roland@hack.frob.com>
73777
73778         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
73779         * elf/Makefile ($(objpfx)librtld.os): Likewise.
73780         (reloc-link): Likewise.
73781
73782 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
73783
73784         * elf/Makefile: Add rules to build pldd.
73785         * elf/pldd.c: New file.
73786         * elf/pldd-xx.c: New file.
73787
73788 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
73789
73790         * version.h: Update for 2.15 development version.
73791
73792 2011-06-07  David S. Miller  <davem@davemloft.net>
73793
73794         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
73795         ifuncs.
73796         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
73797         elf_machine_lazy_rel): Likewise.
73798         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
73799         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
73800         elf_machine_lazy_rel): Likewise.
73801         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
73802         dl_hwcap via passed in argument.
73803         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
73804         Likewise.
73805
73806 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73807
73808         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
73809
73810 2011-06-06  Roland McGrath  <roland@hack.frob.com>
73811
73812         [BZ #12849]
73813         * manual/fdl-1.1.texi: New file, verbatim from:
73814         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
73815         * manual/lgpl-2.1.texi: New file, verbatim from:
73816         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
73817         * manual/Makefile (licenses): New variable, list those new file names.
73818         (texis): Use it.
73819         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
73820
73821         * manual/fdl.texi: File removed.
73822         * manual/lesser.texi: File removed.
73823         * manual/libc.texinfo (Copying, Documentation License):
73824         Use new @include file names, put @appendix directive before @include.
73825
73826 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
73827
73828         [BZ #12841]
73829         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
73830         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
73831         (mq_open): Add __NTH.
73832
73833 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
73834
73835         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73836         Assume Intel Core i3/i5/i7 processor if AVX is available.
73837
73838 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
73839
73840         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
73841         typo.
73842
73843 2011-05-31  Andreas Schwab  <schwab@redhat.com>
73844
73845         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
73846         memory.  Use alloca_account.  Fix memory leak when retrying.
73847
73848 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
73849
73850         * version.h (RELEASE): Bump for 2.14 release.
73851         * include/features.h (__GLIBC_MINOR__): Bump to 14.
73852
73853         * config.make.in (RANLIB): Remove entry.
73854
73855 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
73856
73857         * po/Makefile (po-sed-cmd): Add ksh to extensions.
73858         (libc.pot): Work around missing support for .ksh extension in xgettext.
73859
73860         [BZ #12684]
73861         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
73862         if both request failed.
73863         (send_dg): In case of server errors clear resplen or *resplen2.
73864
73865         [BZ #12454]
73866         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
73867         when there are multiple maps.
73868         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
73869         (_dl_fini): Remove test here.
73870
73871         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
73872
73873 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
73874
73875         [BZ #12350]
73876         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
73877         bit from old_res_options.
73878         (gaih_inet): Likewise.
73879
73880         [BZ #11099]
73881         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
73882         as signed.
73883
73884         * resolv/res_init.c (res_setoptions): Make the code more compact.
73885
73886         [BZ #11558]
73887         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
73888         set RES_USEVC.
73889
73890         [BZ #11634]
73891         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
73892
73893         * malloc/malloc.h: Mark malloc hook variables as deprecated.
73894
73895         [BZ #11781]
73896         * malloc/malloc.h: Declare malloc hook variables as volatile.
73897
73898         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
73899         in last patch.
73900
73901         [BZ #11799]
73902         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
73903         raise in the comment.
73904         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
73905         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
73906         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
73907
73908 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
73909
73910         [BZ #12811]
73911         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
73912         grow the buffers more if it already has to be sufficient.
73913         (build_wcs_upper_buffer): Likewise.
73914         * posix/regexec.c (check_matching): Likewise.
73915         (clean_state_log_if_needed): Likewise.
73916         (extend_buffers): Don't enlarge buffers beyond size of the input
73917         buffer.
73918         Patches mostly by Emil Wojak <emil@wojak.eu>.
73919         * posix/bug-regex32.c: New file.
73920         * posix/Makefile (tests): Add bug-regex32.
73921
73922         * locale/findlocale.c (_nl_find_locale): Return right away if
73923         _nl_explode_name failed.
73924         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
73925
73926         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
73927
73928         * debug/xtrace.sh: Unify messages.
73929         * malloc/memusage.sh: Likewise.
73930
73931         [BZ #12813]
73932         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
73933         time symbol from vDSO.  Substitute with vsyscall if not available.
73934         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
73935         __vdso_time.
73936
73937         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
73938         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
73939         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
73940         Add sendmmsg and internal_sendmmsg.
73941         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
73942         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
73943         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
73944
73945         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
73946         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
73947         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
73948
73949 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
73950
73951         [BZ #12813]
73952         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
73953         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
73954         available.
73955         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
73956         __vdso_getcpu.
73957
73958         [BZ #12814]
73959         * iconvdata/Makefile (tests): Add bug-iconv9.
73960         * iconvdata/bug-iconv9.c: New file.
73961
73962 2011-05-27  Andreas Schwab  <schwab@redhat.com>
73963
73964         [BZ #12814]
73965         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
73966
73967 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
73968
73969         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
73970         (struct user_regs_struct): Change intcs field back to cs.
73971
73972 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
73973
73974         * po/ja.po: Update from translation team.
73975
73976 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
73977
73978         [BZ #12795]
73979         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
73980         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
73981
73982 2011-05-20  Andreas Schwab  <schwab@redhat.com>
73983
73984         * stdlib/longlong.h: Update from GCC.
73985
73986 2011-05-23  Andreas Schwab  <schwab@redhat.com>
73987
73988         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
73989         parameter name.
73990         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
73991         Add parameter name.
73992         (__sysconf): Pass it down.
73993
73994 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
73995
73996         [BZ #12671]
73997         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
73998         some situations.
73999         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
74000         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
74001         add in in __libc_use_alloca calls.  Adjust callers.
74002         (glob): Use malloc in some situations.
74003
74004         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
74005         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
74006         pltexit.
74007
74008 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
74009
74010         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
74011         and CLOCK_BOOTTIME_ALARM.
74012
74013         [BZ #12782]
74014         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
74015         is returned.
74016
74017         * string/_strerror.c (__strerror_r): Print negative errors as signed
74018         numbers.
74019
74020         [BZ #12777]
74021         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
74022         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
74023         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
74024
74025         * configure.in: Fix typo in redirection and correct removal of test
74026         files in two cases.
74027
74028         [BZ #12788]
74029         * locale/setlocale.c (new_composite_name): Fix test to check for
74030         identical name of all categories.
74031
74032         [BZ #12792]
74033         * libio/filedoalloc.c (local_isatty): New function.
74034         (_IO_file_doallocate): Use local_isatty.
74035         * stdio-common/perror.c (perror): In case a new stream is used
74036         forward the stream error.
74037         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
74038         error flag.
74039
74040 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
74041
74042         [BZ #11884]
74043         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
74044         alloca.
74045         * include/alloca.h (extend_alloca_account): Define.
74046
74047         [BZ #11857]
74048         * posix/regex.h: Fix comments with documentation of user-accessible
74049         fields after compilation and describe correct free'ing of pattern
74050         after re_compile_pattern.
74051         Patch by Reuben Thomas <rrt@sc3d.org>.
74052
74053 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
74054
74055         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
74056         and -mno-altivec to prevent the compiler from using Altivec and/or
74057         VSX instructions when the corresponding registers are not available.
74058
74059 2011-05-19  Andreas Schwab  <schwab@redhat.com>
74060
74061         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
74062
74063 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
74064
74065         * libio/freopen.c (freopen): Use __dup2, not dup2.
74066         * libio/freopen64.c (freopen64): Likewise.
74067
74068 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
74069
74070         [BZ #12775]
74071         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
74072         * math/Makefile (tests): Add test-powl.
74073         (CFLAGS-test-powl.c): Define.
74074         * math/test-powl.c: New file.
74075
74076 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
74077
74078         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
74079
74080 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
74081
74082         [BZ #11837]
74083         * iconvdata/gb18030.c: Update to GB18020-2005.
74084
74085 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
74086
74087         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
74088         RE_SYNTAX_POSIX_AWK): Update to match recent development.
74089         Patch by Aharon Robbins <arnold@skeeve.com>.
74090
74091         [BZ #11892]
74092         * stdlib/putenv.c (putenv): Don't always create copy of the variable
74093         on the stack.
74094
74095         [BZ #11895]
74096         * misc/pselect.c (__pselect): Handle timeout value errors hidden
74097         through underflows.
74098
74099         [BZ #12766]
74100         * misc/error.c (error_at_line): Ensure file_name and old_file_name
74101         point to strings before performing equality test for error_one_per_line
74102         mode.
74103
74104         [BZ #11697]
74105         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
74106
74107         [BZ #11820]
74108         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74109         (struct user_fpregs_struct): Avoid __uint*_t types.
74110
74111         [BZ #6420]
74112         * malloc/mtrace.c (tr_where): Add additional parameter to point to
74113         symbol info.  Use it instead of calling _dl_addr locally.
74114         (lock_and_info): New function.
74115         (tr_freehook): Call lock_and_info and pass symbol info as additional
74116         parameter to tr_where.
74117         (tr_mallochook): Likewise.
74118         (tr_reallochook): Likewise.
74119         (tr_memalignhook): Likewise.
74120
74121         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
74122         used and couldn't be at all thread-safe.
74123
74124 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
74125
74126         * libio/freopen.c (freopen): Don't close old file descriptor
74127         before the new one is opened.  Instead dup the new file descriptor
74128         to the old one after the new stream is created.
74129         * libio/freopen64.c (freopen64): Likewise.
74130         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
74131         * libio/fileops.c (_IO_new_file_close_it): Handle new
74132         _IO_FLAGS2_NOCLOSE flag.
74133         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
74134         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
74135         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
74136         _IO_FLAGS2_NOCLOSE flag.
74137         * include/unistd.h: Add hidden_proto for dup3.
74138         Define __have_dup3.
74139         * io/dup3.c: Define hidden symbol.
74140         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
74141
74142         [BZ #7101]
74143         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
74144         when an incomplete long option is used.
74145         * posix/tst-getopt_long1.c: New file.
74146         * posix/Makefile (tests): Add tst-getopt_long1.
74147
74148         [BZ #10138]
74149         * scripts/config.guess: Update from autoconf-2.68.
74150         * scripts/config.sub: Likewise.
74151
74152         [BZ #10157]
74153         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
74154         tests into ...
74155         (has_cpuclock): ...this.  New function.
74156         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
74157         macro here based on has_cpuclock code.
74158
74159         [BZ #10149]
74160         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74161         First byte (not low byte) is now always NUL.
74162         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
74163
74164         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74165         Use non-cancelable interfaces.
74166
74167         [BZ #9809]
74168         * locale/iso-639.def: Add entry for Sorani.
74169
74170         [BZ #11901]
74171         * include/stdlib.h: Move include protection to the right place.
74172         Define abort_msg_s.  Declare __abort_msg with it.
74173         * stdlib/abort.c (__abort_msg): Adjust type.
74174         * assert/assert.c (__assert_fail_base): New function.  Majority
74175         of code from __assert_fail.  Allocate memory for __abort_msg with
74176         mmap.
74177         (__assert_fail): Now call __assert_fail_base.
74178         * assert/assert-perr.c: Remove bulk of implementation.  Use
74179         __assert_fail_base.
74180         * include/assert.hL Declare __assert_fail_base.
74181         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
74182         mmap.
74183         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
74184
74185 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
74186
74187         [BZ #11952]
74188         [BZ #12453]
74189         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
74190         until all modules are registered in the DTV.
74191         * elf/Makefile: Add rules to build and run tst-tls19.
74192         * elf/tst-tls19.c: New file.
74193         * elf/tst-tls19mod1.c: New file.
74194         * elf/tst-tls19mod2.c: New file.
74195         * elf/tst-tls19mod3.c: New file.
74196         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
74197
74198         [BZ #12083]
74199         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
74200         correctly.
74201
74202         [BZ #12601]
74203         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
74204         two-byte sequence errors.
74205         * iconvdata/Makefile (tests): Add bug-iconv8.
74206         * iconvdata/bug-iconv8.c: New file.
74207
74208         [BZ #12626]
74209         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
74210         buf2 definition.
74211
74212         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
74213
74214         [BZ #12432]
74215         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
74216         (dummy_getcfa): New function.
74217         (init): Get _Unwind_GetCFA address, use dummy if not found.
74218         (backtrace_helper): In recursion check, also check whether CFA changes.
74219         (__backtrace): Completely initialize arg.
74220
74221         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
74222         storing incomplete byte sequence in state object.  Avoid testing for
74223         guaranteed too small input if we know there is enough data available.
74224
74225 2011-05-11  Andreas Schwab  <schwab@redhat.com>
74226
74227         * Makeconfig (+link-pie): Indent.
74228         * Rules (binaries-pie): Define if $(have-fpie) and
74229         $(build-shared).
74230         (binaries-shared): Also filter out $(binaries-pie).
74231         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
74232         * nscd/Makefile (others-pie): Add nscd.
74233         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
74234         ($(objpfx)nscd): Remove command override.
74235         * login/Makefile (others-pie): Add pt_chown.
74236         ($(objpfx)pt_chown): Remove command override.
74237         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
74238         remove command overrides.
74239
74240 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
74241
74242         * libio/tst_putwc.c: Fix error messages.
74243
74244         [BZ #12724]
74245         * libio/fileops.c (_IO_new_file_close_it): Always flush when
74246         currently writing and seek to current position when not.
74247         * libio/Makefile (tests): Add bug-fclose1.
74248         * libio/bug-fclose1.c: New file.
74249
74250 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
74251
74252         [BZ #12511]
74253         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
74254         don't set DF_1_NODELETE here.
74255         (do_lookup_x): When entering new entry test for copy relocation
74256         and if necessary set DF_1_NODELETE flag.
74257         * elf/tst-unique4.cc: New file.
74258         * elf/tst-unique4.h: New file.
74259         * elf/tst-unique4lib.cc: New file.
74260         * elf/Makefile: Add rules to build and run tst-unique4.
74261         Patch by Piotr Bury <pbury@goahead.com>.
74262
74263 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
74264
74265         [BZ #12052]
74266         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
74267
74268         [BZ #12625]
74269         * misc/mntent_r.c (addmntent): Flush the stream after the output
74270
74271         [BZ #12393]
74272         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
74273         (is_trusted_path_normalize): Skip initial colon.  Append slash
74274         to empty buffer.  Duplicate is_trusted_path code but allow
74275         constructed patch to be prefix.
74276         (is_dst): Allow $ORIGIN followed by /.
74277         (_dl_dst_substitute): Correct clearing of check_for_trusted.
74278         Correct testing of result of is_trusted_path_normalize
74279         (decompose_rpath): Fix warning.
74280
74281 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
74282
74283         [BZ #11257]
74284         * grp/initgroups.c (internal_getgrouplist): When we found the service
74285         list through the initgroups entry in nsswitch.conf do not always
74286         continue on a successful lookup.  Don't always use the
74287         __nss_group_database value if it is set.
74288         * nss/nsswitch.conf (initgroups): Change action for successful db
74289         lookup to continue for compatibility.
74290
74291 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
74292
74293         [BZ #11532]
74294         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
74295         and CP774 modules.
74296         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
74297         and CP774 modules.
74298         * iconvdata/tst-tables.sh: Likewise.
74299         * iconvdata/cp770.c: New file.
74300         * iconvdata/cp771.c: New file.
74301         * iconvdata/cp772.c: New file.
74302         * iconvdata/cp773.c: New file.
74303         * iconvdata/cp774.c: New file.
74304         * iconvdata/testdata/CP770: New file.
74305         * iconvdata/testdata/CP770..UTF8: New file.
74306         * iconvdata/testdata/CP771: New file.
74307         * iconvdata/testdata/CP771..UTF8: New file.
74308         * iconvdata/testdata/CP772: New file.
74309         * iconvdata/testdata/CP772..UTF8: New file.
74310         * iconvdata/testdata/CP773: New file.
74311         * iconvdata/testdata/CP773..UTF8: New file.
74312         * iconvdata/testdata/CP774: New file.
74313         * iconvdata/testdata/CP774..UTF8: New file.
74314
74315         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
74316         END CHARMAP line.
74317         * iconvdata/gen-8bit-gap.sh: Likewise.
74318         * iconvdata/gen-8bit.sh: Likewise.
74319
74320         * locale/iso-639.def: Add ary entry.
74321
74322         [BZ #11258]
74323         * locale/C-translit.h.in: Add U20A1 transliteration.
74324
74325         [BZ #12178]
74326         * locale/iso-639.def: Add wae entry.
74327         Patch by Kevin Bortis <bortis@translate-wae.ch>.
74328
74329         [BZ #12545]
74330         * locale/programs/localedef.c (construct_output_path): Use ssize_t
74331         for n.
74332
74333         [BZ #12711]
74334         * locale/C-translit.h.in: Add entry for U20B9.
74335         Patch by pravin.d.s@gmail.com.
74336
74337 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
74338
74339         [BZ #12713]
74340         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
74341         ENAMETOOLONG use generic getcwd.
74342         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
74343         in rtld.  Use *stat64.
74344         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
74345         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
74346         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
74347         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
74348         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
74349         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
74350         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
74351         __fstatat64 macros.
74352         * include/dirent.h: Add libc_hidden_proto for rewinddir.
74353         * dirent/rewinddir.c: Add libc_hidden_def.
74354         * sysdeps/mach/hurd/rewinddir.c: Likewise.
74355         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
74356
74357         * include/dirent.h (__alloc_dir): Add flags parameter.
74358         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
74359         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
74360         __alloc_dir.
74361         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
74362         from fdopendir if O_CLOEXEC is already set.
74363
74364 2011-03-15  Alan Modra  <amodra@gmail.com>
74365
74366         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
74367         l_tls_firstbyte_offset non-zero.  Save padding offset in
74368         l_tls_firstbyte_offset for later use.
74369         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
74370         freeing static tls block.
74371
74372 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
74373
74374         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
74375         where #ifdef was intended.  The intent is to prevent ARG_MAX from
74376         being defined by the kernel headers.
74377
74378 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
74379
74380         [BZ #12734]
74381         * resolv/resolv.h: Define RES_NOTLDQUERY.
74382         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
74383         no-tld-query and set RES_NOTLDQUERY.
74384         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
74385         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
74386         modern BIND to search name as TLD unless forbidden.
74387
74388 2011-05-07  Petr Baudis  <pasky@suse.cz>
74389             Ulrich Drepper  <drepper@gmail.com>
74390
74391         [BZ #12393]
74392         * elf/dl-load.c (fillin_rpath): Move trusted path check...
74393         (is_trusted_path): ...to here.
74394         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
74395         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
74396         using is_trusted_path_normalize() in setuid scripts.
74397
74398 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
74399
74400         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
74401         __BEGIN/__END_DECLS.
74402
74403 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
74404
74405         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
74406         NSS_STATUS_NOTFOUND if no record was found.
74407
74408 2011-05-05  Andreas Schwab  <schwab@redhat.com>
74409
74410         * sunrpc/Makefile (headers): Add rpc/netdb.h.
74411         (headers-not-in-tirpc): Remove rpc/netdb.h
74412         * resolv/netdb.h: Revert last change.
74413
74414 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
74415
74416         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
74417         circular dependency between libgcc.a and libc.a.
74418
74419 2011-05-05  Andreas Schwab  <schwab@redhat.com>
74420
74421         * resolv/netdb.h: Don't include <rpc/netdb.h>.
74422         * nis/Makefile: Don't install rpcsvc/*.
74423         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
74424         instead of <rpc/types.h>.
74425         (MAXHOSTNAMELEN): Define.
74426
74427 2011-05-03  Andreas Schwab  <schwab@redhat.com>
74428
74429         * elf/ldconfig.c (add_dir): Don't crash on empty path.
74430
74431 2011-04-28  Maciej Babinski  <mbabinski@google.com>
74432
74433         [BZ #12714]
74434         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
74435         gethostbyname4_r when IPv6 results are possible.
74436
74437 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
74438
74439         [BZ #12723]
74440         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
74441         _PC_PIPE_BUF handling.
74442
74443 2011-04-30  Bruno Haible  <bruno@clisp.org>
74444
74445         [BZ #12717]
74446         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
74447         * resolv/netdb.h (getnameinfo): Change type of flags parameter
74448         to 'int'.
74449         * inet/getnameinfo.c (getnameinfo): Likewise.
74450
74451 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
74452
74453         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
74454         to groups setting in database lookup.
74455         * nss/nsswitch.conf: Add initgroups entry.
74456
74457 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
74458
74459         [BZ #12685]
74460         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
74461         mode string.
74462         Patch by Eric Blake <eblake@redhat.com>.
74463
74464 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
74465
74466         * sunrpc/Makefile (need-export-routines): Add svc_run.
74467         (routines): Remove svc_run.
74468         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
74469         * sunrpc/clnt_perr.c (clnt_perrno): Export.
74470         * sunrpc/svc_run.c (svc_run): Likewise.
74471         * sunrpc/svc_udp.c (svcudp_create): Likewise.
74472
74473 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
74474
74475         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
74476         problem in reallocation in last patch.
74477
74478 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
74479
74480         * sunrpc/Makefile: Move inclusion of Rules.
74481
74482 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
74483
74484         * nss/nss_files/files-initgroups.c: New file.
74485         * nss/Makefile (libnss_files-routines): Add files-initgroups.
74486         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
74487         _nss_files_initgroups_dyn.
74488
74489 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
74490
74491         * elf/elf.h (R_ARM_IRELATIVE): Define.
74492
74493 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
74494
74495         * po/ru.po: Update from translation team.
74496
74497 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
74498
74499         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
74500         dependencies.
74501
74502 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
74503
74504         [BZ #12653]
74505         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
74506         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
74507         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
74508         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
74509         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
74510
74511 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
74512
74513         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
74514         differing bytes.
74515         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
74516         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
74517         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
74518
74519 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
74520
74521         [BZ #12420]
74522         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
74523         storing it.
74524         * stdlib/bug-getcontext.c: New file.
74525         * stdlib/Makefile: Add rules to build and run bug-getcontext.
74526
74527 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74528
74529         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
74530         instructions into .machine "z9-109".
74531         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
74532         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
74533
74534 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74535
74536         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
74537         between environment variables and auxiliary vector.
74538
74539 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
74540
74541         * Makefile: Add rules to build linkobj/libc.so.
74542         * include/libc-symbols.h: Define libc_hidden_nolink.
74543         * include/rpc/auth.h: Mark functions which are to be hidden.
74544         * include/rpc/auth_des.h: Likewise.
74545         * include/rpc/auth_unix.h: Likewise.
74546         * include/rpc/clnt.h: Likewise.
74547         * include/rpc/des_crypt.h: Likewise.
74548         * include/rpc/key_prot.h: Likewise.
74549         * include/rpc/pmap_clnt.h: Likewise.
74550         * include/rpc/pmap_prot.h: Likewise.
74551         * include/rpc/pmap_rmt.h: Likewise.
74552         * include/rpc/rpc_msg.h: Likewise.
74553         * include/rpc/svc.h: Likewise.
74554         * include/rpc/svc_auth.h: Likewise.
74555         * include/rpc/xdr.h: Likewise.
74556         * nis/Makefile: Link all DSOs against linkobj/libc.so.
74557         * nss/Makefile: Likewise.
74558         * sunrpc/Makefile: Don't install headers.  Build library with normal
74559         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
74560         * sunrpc/auth_des.c: Hide exported symbols by default, export some
74561         for the compat linking library.  Remove use of INTDEF/INTUSE.
74562         * sunrpc/auth_none.c: Likewise.
74563         * sunrpc/auth_unix.c: Likewise.
74564         * sunrpc/authdes_prot.c: Likewise.
74565         * sunrpc/authuxprot.c: Likewise.
74566         * sunrpc/clnt_gen.c: Likewise.
74567         * sunrpc/clnt_perr.c: Likewise.
74568         * sunrpc/clnt_raw.c: Likewise.
74569         * sunrpc/clnt_simp.c: Likewise.
74570         * sunrpc/clnt_tcp.c: Likewise.
74571         * sunrpc/clnt_udp.c: Likewise.
74572         * sunrpc/clnt_unix.c: Likewise.
74573         * sunrpc/des_crypt.c: Likewise.
74574         * sunrpc/des_soft.c: Likewise.
74575         * sunrpc/get_myaddr.c: Likewise.
74576         * sunrpc/key_call.c: Likewise.
74577         * sunrpc/key_prot.c: Likewise.
74578         * sunrpc/netname.c: Likewise.
74579         * sunrpc/pm_getmaps.c: Likewise.
74580         * sunrpc/pm_getport.c: Likewise.
74581         * sunrpc/pmap_clnt.c: Likewise.
74582         * sunrpc/pmap_prot.c: Likewise.
74583         * sunrpc/pmap_prot2.c: Likewise.
74584         * sunrpc/pmap_rmt.c: Likewise.
74585         * sunrpc/publickey.c: Likewise.
74586         * sunrpc/rpc_cmsg.c: Likewise.
74587         * sunrpc/rpc_common.c: Likewise.
74588         * sunrpc/rpc_dtable.c: Likewise.
74589         * sunrpc/rpc_prot.c: Likewise.
74590         * sunrpc/rpc_thread.c: Likewise.
74591         * sunrpc/rtime.c: Likewise.
74592         * sunrpc/svc.c: Likewise.
74593         * sunrpc/svc_auth.c: Likewise.
74594         * sunrpc/svc_authux.c: Likewise.
74595         * sunrpc/svc_raw.c: Likewise.
74596         * sunrpc/svc_run.c: Likewise.
74597         * sunrpc/svc_simple.c: Likewise.
74598         * sunrpc/svc_tcp.c: Likewise.
74599         * sunrpc/svc_udp.c: Likewise.
74600         * sunrpc/svc_unix.c: Likewise.
74601         * sunrpc/svcauth_des.c: Likewise.
74602         * sunrpc/xcrypt.c: Likewise.
74603         * sunrpc/xdr.c: Likewise.
74604         * sunrpc/xdr_array.c: Likewise.
74605         * sunrpc/xdr_float.c: Likewise.
74606         * sunrpc/xdr_intXX_t.c: Likewise.
74607         * sunrpc/xdr_mem.c: Likewise.
74608         * sunrpc/xdr_rec.c: Likewise.
74609         * sunrpc/xdr_ref.c: Likewise.
74610         * sunrpc/xdr_sizeof.c: Likewise.
74611         * sunrpc/xdr_stdio.c: Likewise.
74612
74613 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
74614
74615         [BZ #12650]
74616         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
74617         * sysdeps/ia64/dl-tls.h: Likewise.
74618         * sysdeps/powerpc/dl-tls.h: Likewise.
74619         * sysdeps/s390/dl-tls.h: Likewise.
74620         * sysdeps/sh/dl-tls.h: Likewise.
74621         * sysdeps/sparc/dl-tls.h: Likewise.
74622         * sysdeps/x86_64/dl-tls.h: Likewise.
74623         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
74624
74625 2011-03-14  Andreas Schwab  <schwab@redhat.com>
74626
74627         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
74628         rpath element also skip the following colon.
74629         (expand_dynamic_string_token): Add is_path parameter and pass
74630         down to DL_DST_REQUIRED and _dl_dst_substitute.
74631         (decompose_rpath): Call expand_dynamic_string_token with
74632         non-zero is_path.  Ignore empty rpaths.
74633         (_dl_map_object_from_fd): Call expand_dynamic_string_token
74634         with zero is_path.
74635
74636 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
74637
74638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
74639         Make cancelable.
74640
74641 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
74642
74643         [BZ #12655]
74644         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
74645         Patch by Filipe David Manana <fdmanana@apache.org>.
74646
74647 2011-04-07  Andreas Schwab  <schwab@redhat.com>
74648
74649         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
74650         Maintain aligned stack.
74651         (CHECK_RSP): Remove unused macro.
74652
74653 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
74654
74655         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
74656         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
74657
74658 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
74659
74660         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
74661
74662         * include/features.h: Mention __USE_XOPEN2K8 in comment.
74663
74664 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
74665
74666         [BZ #12518]
74667         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
74668         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
74669         * sysdeps/x86_64/memmove.c: New file.
74670         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
74671         (memcpy): Renamed to ...
74672         (__new_memcpy): This.
74673         (memcpy): Provide GLIBC_2_14 memcpy.
74674         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
74675         (memcpy): Provide GLIBC_2_2_5 memcpy.
74676
74677 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
74678
74679         [BZ #12631]
74680         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
74681
74682 2011-03-30  Andreas Schwab  <schwab@redhat.com>
74683
74684         * misc/syncfs.c: New file.
74685         * misc/Makefile (routines): Add syncfs.
74686         * posix/unistd.h: Declare syncfs.
74687         * sysdeps/unix/syscalls.list: Add syncfs.
74688
74689 2011-04-01  Andreas Schwab  <schwab@redhat.com>
74690
74691         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
74692         open_by_handle_at.
74693         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
74694         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
74695         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
74696         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
74697         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
74698         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
74699         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
74700
74701 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
74702
74703         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
74704         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
74705         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
74706         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
74707         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
74708         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
74709         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
74710
74711         * io/Makefile: Compile fallocate.c, fallocate64.c, and
74712         sync_file_range.c with -fexceptions.
74713         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
74714         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
74715         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
74716         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
74717         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
74718         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
74719         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
74720         sync_file_range as cancellation point
74721         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
74722         now a wrapper around __call_sync_file_range with cancellation handling.
74723         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
74724         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
74725         function name to __call_sync_file_range.
74726         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
74727         Add call_sync_file_range.
74728
74729 2011-04-01  Andreas Schwab  <schwab@redhat.com>
74730
74731         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
74732         bits/timex.h.
74733
74734 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
74735
74736         * iconv/iconv.h: Fix typo in comment.
74737         * io/fcntl.h: Likewise.
74738         * libio/stdio.h: Likewise.
74739         * posix/spawn.h: Likewise.
74740         * posix/unistd.h: Likewise.
74741         * stdlib/stdlib.h: Likewise.
74742         * time/time.h: Likewise.
74743         * wcsmbs/wchar.h: Likewise.
74744
74745         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
74746         open_by_handle): Add.
74747         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
74748         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
74749         Augment a few comments.
74750         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
74751         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
74752         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
74753         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
74754         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
74755         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
74756         open_by_handle.
74757
74758         * io/fcntl.h (AT_EMPTY_PATH): Define.
74759
74760 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
74761
74762         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
74763         * sysdeps/unix/sysv/linux/bits/time.h: New file.
74764         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
74765         to...
74766         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
74767         * Versions.def: Add GLIBC_2.14.
74768         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
74769         Export.
74770
74771 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
74772
74773         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
74774         round counter.
74775         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
74776
74777 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
74778
74779         [BZ #12597]
74780         * string/test-strncmp.c (do_page_test): New function.
74781         (check2): Likewise.
74782         (test_main): Call check2.
74783         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
74784
74785 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
74786
74787         [BZ #12587]
74788         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
74789         Handle cache information in CPU leaf 4.
74790         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
74791
74792 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
74793
74794         [BZ #12583]
74795         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
74796         character representation.
74797         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
74798
74799 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
74800
74801         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
74802         END(__isnan) to END(__isnanf) to match function entry point/label
74803         EALIGN(__isnanf,...).
74804
74805 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
74806
74807         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
74808
74809 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
74810
74811         [BZ #12510]
74812         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
74813         copy from the symbol referenced in the relocation to initialize the
74814         used variable.
74815         Patch by Piotr Bury <pbury@goahead.com>.
74816         * elf/Makefile: Add rules to build and tst-unique3.
74817         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
74818         * elf/tst-unique3.cc: New file.
74819         * elf/tst-unique3.h: New file.
74820         * elf/tst-unique3lib.cc: New file.
74821         * elf/tst-unique3lib2.cc: New file.
74822
74823         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
74824
74825 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
74826
74827         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
74828         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
74829         to _start.
74830
74831 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
74832
74833         * elf/dl-load.c (_dl_map_object): If we are looking for the first
74834         to-be-loaded object along a path to loader is ld.so.
74835
74836 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
74837             Ulrich Drepper  <drepper@gmail.com>
74838
74839         * sysdeps/x86_64/memset.S: After aligning destination, code
74840         branches to different locations depending on the value of
74841         misalignment, when multiarch is enabled. Fix this.
74842
74843 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
74844
74845         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
74846         Set _x86_64_preferred_memory_instruction for AMD processsors.
74847         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74848         Set bit_Prefer_SSE_for_memop for AMD processors.
74849
74850 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
74851
74852         * libio/fmemopen.c (fmemopen): Optimize a bit.
74853
74854 2011-03-03  Andreas Schwab  <schwab@redhat.com>
74855
74856         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
74857
74858 2011-03-03  Roland McGrath  <roland@redhat.com>
74859
74860         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
74861
74862 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
74863
74864         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
74865         __bzero_ultra1 instead of __memset_ultra1.
74866
74867 2011-02-23  Andreas Schwab  <schwab@redhat.com>
74868             Ulrich Drepper  <drepper@gmail.com>
74869
74870         [BZ #12509]
74871         * include/link.h (struct link_map): Add l_orig_initfini.
74872         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
74873         returning unsuccessfully.
74874         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
74875         close of a file loaded at startup, restore the original l_initfini
74876         list.
74877         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
74878         list, store the pointer.
74879         * elf/Makefile ($(objpfx)noload-mem): New rule.
74880         (noload-ENV): Define.
74881         (tests): Add $(objpfx)noload-mem.
74882         * elf/noload.c: Include <memcheck.h>.
74883         (main): Call mtrace.  Close all opened handles.
74884
74885 2011-02-17  Andreas Schwab  <schwab@redhat.com>
74886
74887         [BZ #12454]
74888         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
74889         dependencies are missing.
74890
74891 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
74892
74893         Fix __if_freereq crash: Unlike the generic version which uses free,
74894         Hurd needs munmap.
74895         * sysdeps/mach/hurd/ifreq.h: New file.
74896
74897 2011-01-27  Petr Baudis  <pasky@suse.cz>
74898             Ulrich Drepper  <drepper@gmail.com>
74899
74900         [BZ 12445]#
74901         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
74902         to extend_alloca().
74903         * stdio-common/bug23.c: New file.
74904         * stdio-common/Makefile (tests): Add bug23.
74905
74906 2010-09-28  Andreas Schwab  <schwab@redhat.com>
74907             Ulrich Drepper  <drepper@gmail.com>
74908
74909         [BZ #12489]
74910         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
74911         before performing relro protection.  At old place add assertion
74912         to make sure nothing changed.
74913
74914 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
74915             Glauber de Oliveira Costa  <glommer@gmail.com>
74916
74917         * elf/elf.h: Add new ARM TLS relocs.
74918
74919 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
74920
74921         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
74922         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
74923         cast from r3.
74924         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
74925         'tests' variable.
74926         * sysdeps/wordsize-64/tst-writev.c: New file.
74927
74928 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
74929
74930         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
74931         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
74932         insns in _dl_start to prevent a TOC reference before relocs are
74933         resolved.
74934
74935 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
74936
74937         [BZ #12469]
74938         * Makeconfig: Remove RANLIB definition.
74939         * Makerules: Don't use RANLIB.
74940         * aclocal.m4: Remove ranlib test.
74941         * configure.in: No need to check for ranlib.
74942         * elf/rtld-Rules: Don't use RANLIB.
74943
74944 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
74945
74946         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
74947         protection macro.
74948         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
74949         inclusion protection macro.
74950
74951         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
74952         SIGRTMIN and SIGRTMAX and print information in that case only when
74953         SIGRTMIN is defined.
74954
74955 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
74956
74957         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
74958         arginfo fn returning -1.
74959
74960         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
74961         and thousands string is zero terminated.
74962
74963 2011-02-03  Andreas Schwab  <schwab@redhat.com>
74964
74965         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
74966         sysdeps/unix/sysv/linux/bits/socket.h.
74967
74968 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
74969
74970         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
74971         (__CPU_COUNT): Remove old macros.
74972         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
74973         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
74974         (__CPU_ALLOC, __CPU_FREE): Add macros.
74975         (__sched_cpualloc, __sched_cpufree): Add declarations.
74976
74977 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
74978
74979         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
74980         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
74981         * nscd/aicache.c (addhstaiX): Return timeout of added value.
74982         (readdhstai): Return value of addhstaiX call.
74983         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
74984         (addgrbyX): Return value returned by cache_addgr.
74985         (readdgrbyname): Return value returned by addgrbyX.
74986         (readdgrbygid): Likewise.
74987         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
74988         (addpwbyX): Return value returned by cache_addpw.
74989         (readdpwbyname): Return value returned by addhstbyX.
74990         (readdpwbyuid): Likewise.
74991         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
74992         (addservbyX): Return value returned by cache_addserv.
74993         (readdservbyname): Return value returned by addservbyX:
74994         (readdservbyport): Likewise.
74995         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
74996         (addhstbyX): Return value returned by cache_addhst.
74997         (readdhstbyname): Return value returned by addhstbyX.
74998         (readdhstbyaddr): Likewise.
74999         (readdhstbynamev6): Likewise.
75000         (readdhstbyaddrv6): Likewise.
75001         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
75002         (readdinitgroups): Return value returned by addinitgroupsX.
75003         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
75004         (prune_cache): Keep track of timeout value of re-added entries.
75005         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
75006         * nscd/nscd.h: Adjust prototypes of readd* functions.
75007
75008 2011-02-04  Roland McGrath  <roland@redhat.com>
75009
75010         * nis/nis_server.c (nis_servstate): Use the right name for 0.
75011         (nis_stats): Likewise.
75012         * nis/nis_modify.c (nis_modify): Likewise.
75013         * nis/nis_remove.c (nis_remove): Likewise.
75014         * nis/nis_add.c (nis_add): Likewise.
75015
75016         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
75017
75018         * posix/fnmatch_loop.c: Add some consts.
75019
75020         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
75021
75022 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
75023
75024         [BZ #12460]
75025         * config.make.in (config-cflags-novzeroupper): Define.
75026         * configure.in: Substitute libc_cv_cc_novzeroupper.
75027         * elf/Makefile (AVX-CFLAGS): Define.
75028         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
75029         (CFLAGS-tst-auditmod4a.c): Likewise.
75030         (CFLAGS-tst-auditmod4b.c): Likewise.
75031         (CFLAGS-tst-auditmod6b.c): Likewise.
75032         (CFLAGS-tst-auditmod6c.c): Likewise.
75033         (CFLAGS-tst-auditmod7b.c): Likewise.
75034         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
75035
75036 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
75037
75038         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
75039         function to the callback.
75040         Patch partly by Jiri Olsa <jolsa@redhat.com>.
75041
75042 2011-02-02  Andreas Schwab  <schwab@redhat.com>
75043
75044         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
75045         of errno.
75046
75047 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
75048
75049         [BZ #11724]
75050         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
75051         of constructors.
75052         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
75053         of destructors.
75054         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
75055
75056         [BZ #11724]
75057         * elf/Makefile: Add rules to build and run new test.
75058         * elf/tst-initorder.c: New file.
75059         * elf/tst-initorder.exp: New file.
75060         * elf/tst-initordera1.c: New file.
75061         * elf/tst-initordera2.c: New file.
75062         * elf/tst-initordera3.c: New file.
75063         * elf/tst-initordera4.c: New file.
75064         * elf/tst-initorderb1.c: New file.
75065         * elf/tst-initorderb2.c: New file.
75066         * elf/tst-order-a1.c: New file.
75067         * elf/tst-order-a2.c: New file.
75068         * elf/tst-order-a3.c: New file.
75069         * elf/tst-order-a4.c: New file.
75070         * elf/tst-order-b1.c: New file.
75071         * elf/tst-order-b2.c: New file.
75072         * elf/tst-order-main.c: New file.
75073         New test case by George Gensure <werkt0@gmail.com>.
75074
75075 2010-10-01  Andreas Schwab  <schwab@redhat.com>
75076
75077         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
75078         decoding ACE if AI_CANONIDN.
75079
75080 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
75081
75082         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
75083
75084 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
75085
75086         * version.h (RELEASE): Bump for 2.13 release.
75087         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
75088
75089         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
75090
75091         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
75092         MADV_NOHUGEPAGE.
75093         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
75094         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
75095         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
75096         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
75097         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
75098         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75099
75100         * posix/getconf.c: Update copyright year.
75101         * catgets/gencat.c: Likewise.
75102         * csu/version.c: Likewise.
75103         * debug/catchsegv.sh: Likewise.
75104         * debug/xtrace.sh: Likewise.
75105         * elf/ldconfig.c: Likewise.
75106         * elf/ldd.bash.in: Likewise.
75107         * elf/sprof.c (print_version): Likewise.
75108         * iconv/iconv_prog.c: Likewise.
75109         * iconv/iconvconfig.c: Likewise.
75110         * locale/programs/locale.c: Likewise.
75111         * locale/programs/localedef.c: Likewise.
75112         * malloc/memusage.sh: Likewise.
75113         * malloc/mtrace.pl: Likewise.
75114         * nscd/nscd.c (print_version): Likewise.
75115         * nss/getent.c: Likewise.
75116
75117         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
75118         PF_CAIF, and PF_ALG.
75119         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
75120
75121 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
75122
75123         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
75124         (modules-names): Use them.
75125         (ifunc-test-modules, ifunc-pie-tests): Define.
75126         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
75127         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
75128         (test-extras): Likewise.
75129         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
75130         $(compile-command.c).
75131         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
75132         (all-built-dso): Define.
75133         (check-textrel.out, check-execstack.out): Depend on it.
75134
75135         * configure.in: Don't override --enable-multi-arch.
75136
75137 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
75138
75139         [BZ #6812]
75140         * nscd/hstcache.c (tryagain): Define.
75141         (cache_addhst): Return tryagain not notfound for temporary errors.
75142         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
75143         failed.
75144
75145 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
75146
75147         [BZ #10563]
75148         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
75149         to make the syscall.
75150         * sysdeps/unix/sysv/linux/setgroups.c: New file.
75151
75152         [BZ #12378]
75153         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
75154         and fall back to matching as normal character if the string ends before
75155         the matching ']' is found.  This is what POSIX requires.
75156         * posix/testfnm.c: Adjust test result.
75157         * posix/globtest.sh: Adjust test result.  Add new test.
75158         * posix/tst-fnmatch.input: Likewise.
75159         * posix/tst-fnmatch2.c: Add new test.
75160
75161 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
75162
75163         * elf/Makefile (check-execstack): Revert last change.  Depend on
75164         check-execstack.h.
75165         (check-execstack.h): New target.
75166         (generated): Add check-execstack.h.
75167         * elf/check-execstack.c: Include "check-execstack.h".
75168         (main): Revert last change.
75169         (handle_file): Return zero if GNU_STACK is absent and
75170         DEFAULT_STACK_PERMS doesn't include PF_X.
75171
75172 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
75173
75174         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
75175         in child fails because the descriptor is already closed.
75176         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
75177         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
75178         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
75179
75180         [BZ #12397]
75181         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
75182         syscall.
75183
75184         [BZ #10484]
75185         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
75186         temporary buffer used to handle multi lookups locally.
75187         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
75188
75189 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75190
75191         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
75192         loader is ld.so.
75193
75194 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
75195
75196         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
75197         alignment for SSE2.
75198
75199 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75200
75201         [BZ #12394]
75202         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
75203         characters.  When rounding increased number of integer digits recompute
75204         number of groups.
75205         * stdio-common/tst-grouping.c: New file.
75206         * stdio-common/Makefile: Add rules to build and run tst-grouping.
75207
75208 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
75209
75210         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
75211         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
75212
75213         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
75214         void.
75215         * bits/select.h: Likewise.
75216
75217 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
75218
75219         * po/ja.po: Update from translation team.
75220
75221 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
75222
75223         [BZ #11155]
75224         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
75225         implementation just like for lxstat, fxstatat, et al.
75226
75227 2010-12-27  Jim Meyering  <meyering@redhat.com>
75228
75229         [BZ #12348]
75230         * posix/regexec.c (build_trtable): Return failure indication upon
75231         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
75232
75233 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
75234
75235         [BZ #12201]
75236         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
75237         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
75238         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
75239         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
75240
75241         [BZ #12207]
75242         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
75243
75244         [BZ #12204]
75245         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
75246         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
75247
75248 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
75249
75250         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
75251         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
75252         script has SORT_BY_INIT_PRIORITY.
75253         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
75254         NO_CTORS_DTORS_SECTIONS is defined.
75255         * elf/soinit.c: Likewise.
75256         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
75257         NO_CTORS_DTORS_SECTIONS is defined.
75258         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
75259         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
75260         * sysdeps/sh/init-first.c: Likewise.
75261         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
75262
75263 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
75264
75265         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
75266         always use the slow path.
75267
75268 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
75269
75270         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
75271         similar rule which adds the sysdep directories to the header search in
75272         order to pick up the correct platform stackinfo.h.
75273         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
75274         perform test if it is, otherwise return successfully without testing.
75275         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
75276         DEFAULT_STACK_PERMS define in stackinfo.h.
75277         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
75278         defined in stackinfo.h.
75279         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
75280         DEFAULT_STACK_PERMS defined in stackinfo.h.
75281         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
75282         * sysdeps/ia64/stackinfo.h: Likewise.
75283         * sysdeps/s390/stackinfo.h: Likewise.
75284         * sysdeps/sh/stackinfo.h: Likewise.
75285         * sysdeps/sparc/stackinfo.h: Likewise.
75286         * sysdeps/x86_64/stackinfo.h: Likewise.
75287         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
75288         PF_X for powerpc64.  Retain PF_X for powerpc32.
75289
75290 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
75291
75292         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
75293         accurately.
75294         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
75295         GETDENTS_64BIT_ALIGNED.
75296
75297 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
75298
75299         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
75300
75301 2010-12-10  Andreas Schwab  <schwab@redhat.com>
75302
75303         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
75304         _GNU_SOURCE.
75305
75306         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
75307         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
75308         Remove __restrict.
75309         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
75310         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
75311
75312 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
75313
75314         [BZ #11655]
75315         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
75316         are initialized.
75317
75318 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
75319
75320         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
75321
75322 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
75323
75324         * po/it.po: Update from translation team.
75325
75326 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
75327
75328         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
75329         unused codes.
75330
75331 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
75332
75333         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
75334
75335 2010-11-24  Andreas Schwab  <schwab@redhat.com>
75336
75337         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
75338         specially.
75339         (gaih_getanswer_slice): Likewise.
75340
75341 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
75342
75343         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
75344
75345 2010-05-31  Petr Baudis  <pasky@suse.cz>
75346
75347         [BZ #11149]
75348         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
75349         silently even in the chroot mode.
75350
75351 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
75352
75353         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
75354         last patch a bit.  Pretty printing
75355
75356 2010-05-31  Petr Baudis <pasky@suse.cz>
75357
75358         [BZ #10085]
75359         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
75360         initialization of skip_initgroups_dyn.
75361
75362 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
75363
75364         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
75365         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75366
75367 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
75368
75369         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
75370
75371 2010-11-11  Andreas Schwab  <schwab@redhat.com>
75372
75373         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
75374         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
75375         (tst-fnmatch-ENV): Set MALLOC_TRACE.
75376         ($(objpfx)tst-fnmatch-mem): New rule.
75377         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
75378         * posix/tst-fnmatch.c (main): Call mtrace.
75379
75380 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
75381
75382         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75383         Support Intel processor model 6 and model 0x2c.
75384
75385 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
75386
75387         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
75388           signed comparison.
75389
75390 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
75391
75392         [BZ #12205]
75393         * string/test-strncasecmp.c (check_result): New function.
75394         (do_one_test): Use it.
75395         (check1): New function.
75396         (test_main): Use it.
75397         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
75398         Support strcasecmp and strncasecmp.
75399
75400 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
75401
75402         [BZ #12194]
75403         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
75404         * sysdeps/x86_64/bits/byteswap.h: Likewise.
75405
75406 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
75407
75408         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
75409         IFUNC support.
75410         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
75411         memset-x86-64.
75412         * sysdeps/x86_64/multiarch/bzero.S: New file.
75413         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
75414         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
75415         * sysdeps/x86_64/multiarch/memset.S: New file.
75416         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
75417         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75418         Set bit_Prefer_SSE_for_memop for Intel processors.
75419         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
75420         Define.
75421         (index_Prefer_SSE_for_memop): Define.
75422         (HAS_PREFER_SSE_FOR_MEMOP): Define.
75423
75424 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
75425
75426         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
75427         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
75428
75429 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
75430
75431         [BZ #12191]
75432         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
75433         (__x86_64_raw_data_cache_size_half): Likewise.
75434         (__x86_64_raw_shared_cache_size): Likewise.
75435         (__x86_64_raw_shared_cache_size_half): Likewise.
75436
75437         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
75438         (__x86_64_raw_data_cache_size_half): Likewise.
75439         (__x86_64_raw_shared_cache_size): Likewise.
75440         (__x86_64_raw_shared_cache_size_half): Likewise.
75441         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
75442         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
75443         and __x86_64_raw_shared_cache_size_half.  Round
75444         __x86_64_data_cache_size_half, __x86_64_data_cache_size
75445         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
75446         to multiple of 256 bytes.
75447
75448 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
75449
75450         [BZ #12167]
75451         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
75452         of inacessible symlinks.  Verify result of symlink before returning it.
75453         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
75454         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
75455
75456 2010-10-28  Erich Ritz  <erichritz@gmail.com>
75457
75458         * math/math.h (isinf): Fix typo in comment.
75459
75460 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
75461
75462         * po/da.po: Update from translation team.
75463
75464 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
75465
75466         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
75467         is added to the list.
75468
75469 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75470             Ulrich Drepper  <drepper@gmail.com>
75471
75472         * elf/dl-object.c (_dl_new_object): Don't append the new object to
75473         the global list here.  Move code to...
75474         (_dl_add_to_namespace_list): ...here.  New function.
75475         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
75476         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
75477         * elf/dl-load.c (lose): Don't remove the element from the list.
75478         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
75479         (_dl_map_object): Likewise.
75480
75481 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
75482
75483         [BZ #12159]
75484         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
75485         into all bytes of SSE register.
75486         Patch by Richard Li <richardpku@gmail.com>.
75487
75488 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
75489
75490         [BZ #12140]
75491         * malloc/malloc.c (_int_free): Fill correct number of bytes when
75492         perturbing.
75493
75494 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
75495
75496         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
75497         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
75498         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
75499         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
75500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
75501         submachine.
75502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
75503
75504 2010-10-22  Andreas Schwab  <schwab@redhat.com>
75505
75506         * include/dlfcn.h (__RTLD_SECURE): Define.
75507         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
75508         mode & __RTLD_SECURE instead.
75509         (open_path): Rename preloaded parameter to secure.
75510         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
75511         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
75512         * elf/dl-deps.c (openaux): Likewise.
75513         * elf/rtld.c (struct map_args): Remove is_preloaded.
75514         (map_doit): Don't use it.
75515         (dl_main): Likewise.
75516         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
75517         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
75518
75519 2010-09-09  Andreas Schwab  <schwab@redhat.com>
75520
75521         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
75522         (sysd-rules-targets): Remove duplicates.
75523         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
75524         rtld-%.$o dependency.
75525
75526 2010-10-18  Andreas Schwab  <schwab@redhat.com>
75527
75528         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
75529         _dl_map_object do it.
75530
75531 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
75532
75533         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
75534         fast fma builtins, define the macros in the C99 standard.
75535         (FP_FAST_FMAF): Likewise.
75536         (FP_FAST_FMAL): Likewise.
75537         * sysdeps/x86_64/bits/mathdef.h: Likewise.
75538
75539         * bits/mathdef.h: Update copyright year.
75540         * sysdeps/powerpc/bits/mathdef.h: Likewise.
75541
75542 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
75543
75544         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
75545         builtins, define the macros in the C99 standard.
75546         (FP_FAST_FMAF): Likewise.
75547         (FP_FAST_FMAL): Likewise.
75548         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
75549         multiply/add.
75550         (FP_FAST_FMAF): Likewise.
75551
75552 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
75553
75554         [BZ #3268]
75555         * math/libm-test.inc (fma_test): Some new testcases.
75556         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
75557         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
75558         y and infinite z.  Do multiplication by C already in long double.
75559         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
75560         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
75561         y and infinite z.  Do bitwise or of inexact bit into u.d.
75562         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
75563         * sysdeps/i386/fpu/s_fmaf.S: Removed.
75564         * sysdeps/i386/fpu/s_fma.S: Removed.
75565         * sysdeps/i386/fpu/s_fmal.S: Removed.
75566
75567 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
75568
75569         [BZ #3268]
75570         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
75571         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
75572         computation is not scheduled after fetestexcept.  Fix value
75573         of minimum denormal long double.
75574
75575 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
75576
75577         [BZ #3268]
75578         * math/libm-test.inc (fma_test): Add some more tests.
75579         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
75580         correctly.
75581
75582 2010-10-15  Andreas Schwab  <schwab@redhat.com>
75583
75584         * scripts/data/localplt-s390-linux-gnu.data: New file.
75585         * scripts/data/localplt-s390x-linux-gnu.data: New file.
75586
75587 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
75588
75589         [BZ #3268]
75590         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
75591         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
75592         instead of dbl-64.
75593         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
75594         inlines.
75595         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
75596         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
75597         if one of x and y is very large and the other is subnormal.
75598         * sysdeps/s390/fpu/s_fmaf.c: New file.
75599         * sysdeps/s390/fpu/s_fma.c: New file.
75600         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
75601         * sysdeps/powerpc/fpu/s_fma.S: New file.
75602         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
75603         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
75604         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
75605
75606 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
75607
75608         [BZ #3268]
75609         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
75610         fma tests.
75611         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
75612         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
75613         * sysdeps/i386/i686/multiarch/s_fma.c: Include
75614         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
75615         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
75616         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
75617         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
75618
75619 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
75620
75621         [BZ #12078]
75622         * posix/regcomp.c (parse_branch): One more memory leak plugged.
75623         * posix/bug-regex31.input: Add test case.
75624
75625 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
75626
75627         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
75628         * posix/bug-regex31.input: New file.
75629
75630         [BZ #12078]
75631         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
75632         (parse_sub_exp): Fix last change, use postorder.
75633
75634         * posix/bug-regex31.c: New file.
75635         * posix/Makefile: Add rules to build and run bug-regex31.
75636
75637         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
75638
75639         [BZ #12078]
75640         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
75641
75642         [BZ #12108]
75643         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
75644         to have entries in sys_siglist.
75645
75646         [BZ #12093]
75647         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
75648         be NULL.
75649
75650 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
75651
75652         [BZ #3268]
75653         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
75654         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
75655         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
75656         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
75657         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
75658         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
75659         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
75660         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
75661         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
75662         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
75663         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
75664         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
75665         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
75666         * math/ftestexcept.c (fetestexcept): Likewise.
75667         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
75668         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
75669         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
75670         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
75671         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
75672         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
75673         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
75674
75675 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
75676
75677         [BZ #12107]
75678         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
75679         newline.
75680
75681 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
75682
75683         * string/bug-strstr1.c: New file.
75684         * string/Makefile: Add rules to build and run bug-strstr1.
75685
75686 2010-10-05  Eric Blake  <eblake@redhat.com>
75687
75688         [BZ #12092]
75689         * string/str-two-way.h (two_way_long_needle): Always clear memory
75690         when skipping input due to the shift table.
75691
75692 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
75693
75694         [BZ #12005]
75695         * malloc/mcheck.c: Handle large requests.
75696
75697         [BZ #12077]
75698         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
75699         for strncmp and strncasecmp.
75700         * string/stratcliff.c: Add tests for strcmp and strncmp.
75701         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
75702
75703 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
75704
75705         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
75706         __set_fpscr.
75707
75708 2010-09-30  Andreas Jaeger  <aj@suse.de>
75709
75710         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
75711         (CGROUP_SUPER_MAGIC): Define.
75712         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
75713         Handle btrfs and cgroup file systems.
75714         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
75715         Likewise.
75716
75717 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
75718
75719         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
75720         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
75721
75722 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75723
75724         [BZ #12067]
75725         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
75726         trying to locate the ELF header.
75727
75728 2010-09-27  Andreas Schwab  <schwab@redhat.com>
75729
75730         [BZ #11611]
75731         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
75732         Mask out sign-bit copies when constructing f_fsid.
75733
75734 2010-09-24  Petr Baudis <pasky@suse.cz>
75735
75736         * debug/stack_chk_fail_local.c: Add missing licence exception.
75737         * debug/warning-nop.c: Likewise.
75738
75739 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
75740
75741         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
75742         implementing getdents64 using getdents syscall, set d_type if
75743         __ASSUME_GETDENTS32_D_TYPE.
75744
75745 2010-09-16  Andreas Schwab  <schwab@redhat.com>
75746
75747         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
75748         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
75749
75750 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
75751
75752         [BZ #12037]
75753         * posix/unistd.h: Undo change of feature selection for ftruncate from
75754         2010-01-11.
75755
75756 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
75757
75758         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
75759         detection.
75760
75761 2010-09-20  Andreas Schwab  <schwab@redhat.com>
75762
75763         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
75764         fanotify_mark.
75765         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
75766
75767 2010-09-14  Andreas Schwab  <schwab@redhat.com>
75768
75769         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
75770         variables after CHECK_SP call.
75771         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
75772
75773 2010-09-13  Andreas Schwab  <schwab@redhat.com>
75774             Ulrich Drepper  <drepper@redhat.com>
75775
75776         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
75777         re-relocationg ld.so.
75778         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
75779         _dl_init_paths call.
75780         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
75781         here anymore.
75782
75783 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
75784
75785         * resolv/res_init.c (__res_vinit): Count the default server we added.
75786
75787 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
75788             Ulrich Drepper  <drepper@redhat.com>
75789
75790         [BZ #11968]
75791         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
75792         (____longjmp_chk): Use %ebx for saving value across system call.
75793         Add unwind info.
75794
75795 2010-09-06  Andreas Schwab  <schwab@redhat.com>
75796
75797         * manual/Makefile: Don't mix pattern rules with normal rules.
75798
75799 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
75800
75801         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
75802         operation.
75803         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
75804         * libio/iofopncook.c (_IO_cookie_init): Likewise.
75805         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
75806         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
75807         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
75808         Likewise.
75809
75810 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
75811
75812         [BZ #11979]
75813         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
75814         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
75815
75816 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
75817
75818         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
75819         * sysdeps/x86_64/addmul_1.S: Likewise.
75820         * sysdeps/x86_64/lshift.S: Likewise.
75821         * sysdeps/x86_64/mul_1.S: Likewise.
75822         * sysdeps/x86_64/rshift.S: Likewise.
75823         * sysdeps/x86_64/sub_n.S: Likewise.
75824         * sysdeps/x86_64/submul_1.S: Likewise.
75825
75826 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75827
75828         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
75829         Define __sched_param instead of SCHED_* and sched_param when
75830         <bits/sched.h> is included with __need_schedparam defined.
75831         * bits/sched.h [__need_schedparam]
75832         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
75833         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
75834         (__defined_schedparam): Define to 1.
75835         (__sched_param): New structure, identical to sched_param.
75836         (__need_schedparam): Undefine.
75837
75838 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
75839
75840         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
75841         (epoll_create1): Declare.
75842
75843         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
75844
75845 2010-08-31  Andreas Schwab  <schwab@redhat.com>
75846
75847         [BZ #7066]
75848         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
75849         shifting retval into place.
75850
75851 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
75852
75853         * nis/rpcsvc/nis.h: Update copyright notice.
75854         * nis/rpcsvc/nis.x: Likewise.
75855         * nis/rpcsvc/nis_callback.h: Likewise.
75856         * nis/rpcsvc/nis_callback.x: Likewise.
75857         * nis/rpcsvc/nis_object.x: Likewise.
75858         * nis/rpcsvc/nis_tags.h: Likewise.
75859         * nis/rpcsvc/yp.h: Likewise.
75860         * nis/rpcsvc/yp.x: Likewise.
75861         * nis/rpcsvc/ypupd.h: Likewise.
75862         * nis/yp_xdr.c: Likewise.
75863         * nis/ypupdate_xdr.c: Likewise.
75864
75865         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
75866         mainly the body of pmap_getport.  Add parameters to specify timeouts.
75867         (pmap_getport): Use __libc_rpc_getport.
75868         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
75869         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
75870         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
75871
75872 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
75873
75874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
75875         fanotify_mark.
75876
75877 2010-08-27  Roland McGrath  <roland@redhat.com>
75878
75879         * sysdeps/i386/i686/multiarch/Makefile
75880         (CFLAGS-varshift.c): New variable.
75881
75882 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
75883
75884         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
75885         * sysdeps/i386/i686/multiarch/varshift.c: New file.
75886
75887         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
75888
75889         * sysdeps/x86_64/strlen.S: Minimal code improvement.
75890
75891 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
75892
75893         * sysdeps/x86_64/strlen.S: Unroll the loop.
75894         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
75895         strlen-sse2 strlen-sse2-bsf.
75896         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
75897         __strlen_no_bsf if bit_Slow_BSF is set.
75898         (__strlen_sse42): Removed.
75899         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
75900         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
75901
75902 2010-08-25  Roland McGrath  <roland@redhat.com>
75903
75904         * sysdeps/x86_64/multiarch/varshift.S: File removed.
75905         * sysdeps/x86_64/multiarch/varshift.c: New file.
75906         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
75907         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
75908         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
75909         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
75910
75911 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
75912
75913         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
75914         strlen-sse2 strlen-sse2-bsf.
75915         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
75916         __strlen_sse2_bsf if bit_Slow_BSF is unset.
75917         (__strlen_sse2): Removed.
75918         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
75919         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
75920         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
75921         bit_Slow_BSF for Atom.
75922         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
75923         (index_Slow_BSF): Define.
75924         (HAS_SLOW_BSF): Define.
75925
75926 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
75927
75928         [BZ #10851]
75929         * resolv/res_init.c (__res_vinit): When no server address at all
75930         is given default to loopback.
75931
75932 2010-08-24  Roland McGrath  <roland@redhat.com>
75933
75934         * configure.in: Remove config-name.h generation.
75935         * configure: Regenerated.
75936         * config-name.in: File removed.
75937         * scripts/config-uname.sh: New file.
75938         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
75939         ($(objdir)config-name.h): New target.
75940
75941         * sunrpc/rpc_parse.h: Avoid nested comment.
75942
75943 2010-08-24  Richard Henderson  <rth@redhat.com>
75944             Ulrich Drepper  <drepper@redhat.com>
75945             H.J. Lu  <hongjiu.lu@intel.com>
75946
75947         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
75948         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
75949         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
75950         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
75951         _mm_alignr_epi8 with _mm_loadu_si128.
75952         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
75953         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
75954         (__m128i_shift_right): Removed.
75955         * sysdeps/i386/i686/multiarch/varshift.h: New file.
75956         * sysdeps/i386/i686/multiarch/varshift.S: New file.
75957         * sysdeps/x86_64/multiarch/varshift.h: New file.
75958         * sysdeps/x86_64/multiarch/varshift.S: New file.
75959
75960 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
75961
75962         * configure.in: Move assembler checks to before sysdep dir checking.
75963
75964 2010-08-20  Petr Baudis  <pasky@suse.cz>
75965
75966         * LICENSES: Sync the sunrpc license.
75967
75968 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
75969
75970         * sunrpc/auth_des.c: Update copyright notice once again.
75971         * sunrpc/auth_none.c: Likewise.
75972         * sunrpc/auth_unix.c: Likewise.
75973         * sunrpc/authdes_prot.c: Likewise.
75974         * sunrpc/authuxprot.c: Likewise.
75975         * sunrpc/bindrsvprt.c: Likewise.
75976         * sunrpc/clnt_gen.c: Likewise.
75977         * sunrpc/clnt_perr.c: Likewise.
75978         * sunrpc/clnt_raw.c: Likewise.
75979         * sunrpc/clnt_simp.c: Likewise.
75980         * sunrpc/clnt_tcp.c: Likewise.
75981         * sunrpc/clnt_udp.c: Likewise.
75982         * sunrpc/clnt_unix.c: Likewise.
75983         * sunrpc/des_crypt.c: Likewise.
75984         * sunrpc/des_soft.c: Likewise.
75985         * sunrpc/get_myaddr.c: Likewise.
75986         * sunrpc/getrpcport.c: Likewise.
75987         * sunrpc/key_call.c: Likewise.
75988         * sunrpc/key_prot.c: Likewise.
75989         * sunrpc/openchild.c: Likewise.
75990         * sunrpc/pm_getmaps.c: Likewise.
75991         * sunrpc/pm_getport.c: Likewise.
75992         * sunrpc/pmap_clnt.c: Likewise.
75993         * sunrpc/pmap_prot.c: Likewise.
75994         * sunrpc/pmap_prot2.c: Likewise.
75995         * sunrpc/pmap_rmt.c: Likewise.
75996         * sunrpc/rpc/auth.h: Likewise.
75997         * sunrpc/rpc/auth_unix.h: Likewise.
75998         * sunrpc/rpc/clnt.h: Likewise.
75999         * sunrpc/rpc/des_crypt.h: Likewise.
76000         * sunrpc/rpc/key_prot.h: Likewise.
76001         * sunrpc/rpc/netdb.h: Likewise.
76002         * sunrpc/rpc/pmap_clnt.h: Likewise.
76003         * sunrpc/rpc/pmap_prot.h: Likewise.
76004         * sunrpc/rpc/pmap_rmt.h: Likewise.
76005         * sunrpc/rpc/rpc.h: Likewise.
76006         * sunrpc/rpc/rpc_des.h: Likewise.
76007         * sunrpc/rpc/rpc_msg.h: Likewise.
76008         * sunrpc/rpc/svc.h: Likewise.
76009         * sunrpc/rpc/svc_auth.h: Likewise.
76010         * sunrpc/rpc/types.h: Likewise.
76011         * sunrpc/rpc/xdr.h: Likewise.
76012         * sunrpc/rpc_clntout.c: Likewise.
76013         * sunrpc/rpc_cmsg.c: Likewise.
76014         * sunrpc/rpc_common.c: Likewise.
76015         * sunrpc/rpc_cout.c: Likewise.
76016         * sunrpc/rpc_dtable.c: Likewise.
76017         * sunrpc/rpc_hout.c: Likewise.
76018         * sunrpc/rpc_main.c: Likewise.
76019         * sunrpc/rpc_parse.c: Likewise.
76020         * sunrpc/rpc_parse.h: Likewise.
76021         * sunrpc/rpc_prot.c: Likewise.
76022         * sunrpc/rpc_sample.c: Likewise.
76023         * sunrpc/rpc_scan.c: Likewise.
76024         * sunrpc/rpc_scan.h: Likewise.
76025         * sunrpc/rpc_svcout.c: Likewise.
76026         * sunrpc/rpc_tblout.c: Likewise.
76027         * sunrpc/rpc_util.c: Likewise.
76028         * sunrpc/rpc_util.h: Likewise.
76029         * sunrpc/rpcinfo.c: Likewise.
76030         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
76031         * sunrpc/rpcsvc/key_prot.x: Likewise.
76032         * sunrpc/rpcsvc/klm_prot.x: Likewise.
76033         * sunrpc/rpcsvc/mount.x: Likewise.
76034         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
76035         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
76036         * sunrpc/rpcsvc/rex.x: Likewise.
76037         * sunrpc/rpcsvc/rstat.x: Likewise.
76038         * sunrpc/rpcsvc/rusers.x: Likewise.
76039         * sunrpc/rpcsvc/sm_inter.x: Likewise.
76040         * sunrpc/rpcsvc/spray.x: Likewise.
76041         * sunrpc/rpcsvc/yppasswd.x: Likewise.
76042         * sunrpc/rtime.c: Likewise.
76043         * sunrpc/svc.c: Likewise.
76044         * sunrpc/svc_auth.c: Likewise.
76045         * sunrpc/svc_authux.c: Likewise.
76046         * sunrpc/svc_raw.c: Likewise.
76047         * sunrpc/svc_run.c: Likewise.
76048         * sunrpc/svc_simple.c: Likewise.
76049         * sunrpc/svc_tcp.c: Likewise.
76050         * sunrpc/svc_udp.c: Likewise.
76051         * sunrpc/svc_unix.c: Likewise.
76052         * sunrpc/svcauth_des.c: Likewise.
76053         * sunrpc/xcrypt.c: Likewise.
76054         * sunrpc/xdr.c: Likewise.
76055         * sunrpc/xdr_array.c: Likewise.
76056         * sunrpc/xdr_float.c: Likewise.
76057         * sunrpc/xdr_mem.c: Likewise.
76058         * sunrpc/xdr_rec.c: Likewise.
76059         * sunrpc/xdr_ref.c: Likewise.
76060         * sunrpc/xdr_sizeof.c: Likewise.
76061         * sunrpc/xdr_stdio.c: Likewise.
76062
76063         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
76064         handling.
76065
76066 2010-08-19  Andreas Schwab  <schwab@redhat.com>
76067
76068         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
76069
76070 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
76071
76072         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
76073         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
76074         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
76075         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
76076         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
76077         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
76078         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
76079         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
76080         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
76081         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
76082         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
76083         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
76084         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
76085         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
76086
76087 2010-07-26  Anton Blanchard  <anton@samba.org>
76088
76089         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
76090         * malloc/arena.c (heap_trim): Likewise.
76091
76092 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
76093
76094         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
76095         here.  Not...
76096         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
76097         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
76098
76099 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
76100
76101         * sysdeps/i386/elf/Makefile: New file.
76102
76103 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76104
76105         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
76106         from fanotify_init.
76107         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
76108         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76109
76110 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
76111
76112         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
76113         of strncasecmp_l.
76114         * sysdeps/multiarch/strcmp.S: Likewise.
76115
76116 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
76117
76118         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76119         strncase_l-nonascii.
76120         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76121         Add strncase_l-ssse3.
76122         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
76123         * sysdeps/x86_64/strcmp.S: Likewise.
76124         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
76125         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
76126         * sysdeps/x86_64/strncase.S: New file.
76127         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
76128         * sysdeps/x86_64/strncase_l.S: New file.
76129         * string/Makefile (strop-tests): Add strncasecmp.
76130         * string/test-strncasecmp.c: New file.
76131
76132         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
76133         warning.
76134
76135         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
76136         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
76137
76138 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76139
76140         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
76141
76142 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
76143
76144         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
76145         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
76146         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
76147
76148 2010-05-01  Alan Modra  <amodra@gmail.com>
76149
76150         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
76151         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
76152         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
76153         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
76154         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
76155         tidying.  Don't tail-call __sigjmp_save for static lib.
76156         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
76157         save location.
76158         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
76159         (CALL_MCOUNT): Add eh info, and nop after bl.
76160         (TAIL_CALL_SYSCALL_ERROR): New macro.
76161         (PSEUDO_RET): Use it.
76162         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
76163         Correct save location of integer regs and cr.
76164         (_dl_profile_resolve): Correct cr save location.  Delete nops
76165         after bl when SHARED.  Reduce cfi size a little by better
76166         placement of cfi directives.
76167         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
76168         make a stack frame.  Instead use parm save area as a temp.
76169         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
76170         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
76171         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
76172         Don't make a stack frame for parent, use parm save area.
76173         Increase child stack frame to 112 bytes.  Don't save unused reg,
76174         and adjust reg usage.  Set up cfi on error recovery and
76175         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
76176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
76177         (__makecontext): Add dummy nop after jump to exit.
76178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
76179         Use correct parm save area and cr save, reduce stack frame.
76180         Correct cfi for possible PSEUDO_RET frame setup.
76181         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
76182         Branch to local label emitted by PSEUDO_RET rather than
76183         __syscall_error.
76184
76185 2010-08-12  Andreas Schwab  <schwab@redhat.com>
76186
76187         [BZ #11904]
76188         * locale/programs/locale.c (print_assignment): New function.
76189         (show_locale_vars): Use it.
76190
76191 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
76192
76193         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
76194         field.
76195         (struct statfs64): Likewise.
76196         (_STATFS_F_FLAGS): Define.
76197         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
76198         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76199         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
76200         (ST_VALID): Define locally.
76201         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
76202         __statvfs_getflags, use the provided value.
76203         * sysdeps/unix/sysv/linux/kernel-features.h: Define
76204         __ASSUME_STATFS_F_FLAGS.
76205
76206         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
76207
76208         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
76209         Add sys/fanotify.h.
76210         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
76211         fanotify_mask for GLIBC_2.13.
76212         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
76213         fanotify_init and fanotify_mark.
76214         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76215         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
76216
76217         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
76218         Add prlimit.
76219         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
76220         prlimit64 for GLIBC_2.13.
76221         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
76222         prlimit64.
76223         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
76224         syscall.
76225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
76226         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76227         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
76228         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
76229         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
76230         add prlimit alias.
76231         * sysdeps/unix/sysv/linux/prlimit.c: New file.
76232
76233         [BZ #11903]
76234         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
76235         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
76236
76237         * nss/Makefile: Add rules to build and run tst-nss-test1.
76238         * shlib-versions: Add entry for libnss_test1.
76239         * nss/nss_test1.c: New file.
76240         * nss/tst-nss-test1.c: New file.
76241
76242         * nss/nsswitch.c (__nss_database_custom): Define new variable.
76243         (__nss_configure_lookup): Set appropriate entry in
76244         __nss_configure_lookup to true.
76245         * nss/nsswitch.h: Define enum with indeces of databases in
76246         databases and __nss_database_custom arrays.  Declare
76247         __nss_database_custom.
76248         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
76249         to avoid using nscd when custom rules are installed.
76250         * nss/getXXbyYY_r.c: Likewise.
76251         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
76252
76253         * nss/nss_files/files-parse.c: Whitespace fixes.
76254
76255 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
76256
76257         [BZ #11883]
76258         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
76259         * posix/fnmatch_loop.c: Likewise.
76260
76261 2010-07-17  Andi Kleen  <ak@linux.intel.com>
76262
76263         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
76264         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
76265         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
76266         * Versions.def [GLIBC_2.13]: Add.
76267
76268 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
76269
76270         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76271         Also fail if tpwd after pwuid call is NULL.
76272
76273 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76274
76275         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
76276         when converting to ms.
76277
76278 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76279
76280         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
76281         EOPNOTSUPP errors with ENOTTY.
76282         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
76283         EOPNOTSUPP errors with ENOTTY.
76284
76285 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
76286
76287         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76288         Add strcasecmp_l-ssse3.
76289         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
76290         strcasecmp.
76291         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
76292         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
76293         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
76294
76295 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
76296
76297         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
76298
76299         * string/Makefile (strop-tests): Add strcasecmp.
76300         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76301         strcasecmp_l-nonascii.
76302         (gen-as-const-headers): Add locale-defines.sym.
76303         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
76304         * sysdeps/x86_64/strcasecmp.S: New file.
76305         * sysdeps/x86_64/strcasecmp_l.S: New file.
76306         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
76307         * sysdeps/x86_64/locale-defines.sym: New file.
76308         * string/test-strcasecmp.c: New file.
76309
76310         * string/test-strcasestr.c: Test both ends of the range of characters.
76311         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
76312
76313 2010-07-29  Roland McGrath  <roland@redhat.com>
76314
76315         [BZ #11856]
76316         * manual/locale.texi (Yes-or-No Questions): Fix example code.
76317
76318 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
76319
76320         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
76321         for ld.so.
76322
76323 2010-07-27  Andreas Schwab  <schwab@redhat.com>
76324
76325         * manual/memory.texi (Malloc Tunable Parameters): Document
76326         M_PERTURB.
76327
76328 2010-07-26  Roland McGrath  <roland@redhat.com>
76329
76330         [BZ #11840]
76331         * configure.in (-fgnu89-inline check): Set and substitute
76332         gnu89_inline, not libc_cv_gnu89_inline.
76333         * configure: Regenerated.
76334         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
76335
76336 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
76337
76338         * string/test-strnlen.c: New file.
76339         * string/Makefile (strop-tests): Add strnlen.
76340         * string/tester.c (test_strnlen): Add a few more test cases.
76341         * string/tst-strlen.c: Better error reporting.
76342
76343         * sysdeps/x86_64/strnlen.S: New file.
76344
76345 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
76346
76347         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
76348         lower-latency instructions.
76349
76350 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
76351
76352         * string/test-strcasestr.c: New file.
76353         * string/test-strstr.c: New file.
76354         * string/Makefile (strop-tests): Add strstr and strcasestr.
76355         * string/str-two-way.h: Don't undefine MAX.
76356         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
76357
76358 2010-07-21  Andreas Schwab  <schwab@redhat.com>
76359
76360         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76361         strcasestr-nonascii.
76362         (CFLAGS-strcasestr-nonascii.c): Define.
76363         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
76364         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
76365         Remove unused attribute.
76366
76367 2010-07-20  Roland McGrath  <roland@redhat.com>
76368
76369         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
76370         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
76371         ld.so.cache was broken.  With it, there is no way to disable dsocaps
76372         like LD_HWCAP_MASK can disable hwcaps.
76373
76374 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
76375
76376         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
76377
76378 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
76379
76380         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
76381         call in strcasestr.
76382         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
76383         __strcasestr_sse42_nonascii.
76384         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
76385         strcasestr-nonascii.c.
76386         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
76387
76388 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
76389
76390         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
76391         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
76392         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
76393         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
76394
76395 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
76396
76397         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
76398         fcntl.
76399
76400 2010-07-06  Andreas Schwab  <schwab@redhat.com>
76401
76402         [BZ #11577]
76403         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
76404         dl_signal_cerror.
76405
76406 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
76407
76408         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
76409         _PC_PIPE_BUF using F_GETPIPE_SZ.
76410
76411 2010-07-05  Roland McGrath  <roland@redhat.com>
76412
76413         * manual/arith.texi (Rounding Functions): Fix rint description
76414         implicit in round description.
76415
76416 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
76417
76418         * elf/Makefile: Fix linking for a few tests to make recent linker
76419         happy.
76420
76421 2010-06-30  Andreas Schwab  <schwab@redhat.com>
76422
76423         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
76424         $(common-objpfx)libc_nonshared.a.
76425
76426 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
76427
76428         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
76429         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
76430         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
76431         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
76432         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
76433         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
76434         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
76435         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
76436         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
76437         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
76438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
76439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
76440         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
76441         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
76442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
76443         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
76444         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
76445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
76446         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
76447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
76448         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
76449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
76450         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
76451         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
76452         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
76453         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
76454         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
76455         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
76456         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
76457         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
76458         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
76459         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
76460         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
76461         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
76462         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
76463         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
76464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
76465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
76466         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
76467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
76468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
76469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
76470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
76471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
76472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
76473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
76474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
76475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
76476
76477 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
76478
76479         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
76480         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
76481         * string/memmove.c (memmove): Renamed to ...
76482         (MEMMOVE): ...this.  Default to memmove.
76483         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
76484         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
76485         (END_CHK): Define.
76486         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76487         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
76488         mempcpy-ssse3-back memmove-ssse3-back.
76489         * sysdeps/x86_64/multiarch/bcopy.S: New file .
76490         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
76491         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
76492         * sysdeps/x86_64/multiarch/memcpy.S: New file.
76493         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
76494         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
76495         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
76496         * sysdeps/x86_64/multiarch/memmove.c: New file.
76497         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
76498         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
76499         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
76500         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
76501         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
76502         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
76503         Define.
76504         (index_Fast_Copy_Backward): Define.
76505         (HAS_ARCH_FEATURE): Define.
76506         (HAS_FAST_REP_STRING): Define.
76507         (HAS_FAST_COPY_BACKWARD): Define.
76508
76509 2010-06-21  Andreas Schwab  <schwab@redhat.com>
76510
76511         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76512         Restore proper fallback handling.
76513
76514 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
76515
76516         [BZ #11701]
76517         * posix/group_member.c (__group_member): Correct checking loop.
76518
76519         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
76520         OOM in getpwuid_r correctly.  Return error number when the caller
76521         should return, otherwise -1.
76522         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
76523         call returning > 0 value.
76524         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
76525
76526 2010-06-07  Andreas Schwab  <schwab@redhat.com>
76527
76528         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
76529         libc_nonshared.a from targets in modules-names.
76530
76531 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
76532
76533         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
76534         requires it.
76535
76536 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
76537
76538         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
76539         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
76540         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
76541         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
76542
76543 2010-06-02  Andreas Schwab  <schwab@redhat.com>
76544
76545         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
76546
76547 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
76548
76549         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
76550         and F_GETPIPE_SZ.
76551         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
76552         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
76553         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
76554         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
76555         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
76556         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
76557
76558 2010-06-14  Roland McGrath  <roland@redhat.com>
76559
76560         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
76561
76562 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
76563
76564         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
76565         __REDIRECT followed by __THROW.
76566         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
76567         * posix/getopt.h (getopt): Likewise.
76568
76569 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
76570
76571         * hurd/lookup-at.c (__file_name_lookup_at): Accept
76572         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
76573         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
76574         in AT_FLAGS.
76575         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
76576         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
76577
76578 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
76579
76580         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
76581
76582 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
76583
76584         [BZ #11640]
76585         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76586         Properly check family and model.
76587
76588 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
76589
76590         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
76591
76592 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
76593
76594         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
76595
76596 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
76597
76598         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
76599         symbol reference.
76600
76601 2010-05-19  Andreas Schwab  <schwab@redhat.com>
76602
76603         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
76604         symbol reference.
76605
76606 2010-05-21  Andreas Schwab  <schwab@redhat.com>
76607
76608         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
76609         and internal_recvmmsg.
76610         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
76611         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
76612         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
76613         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
76614
76615         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
76616         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
76617         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
76618
76619 2010-05-20  Andreas Schwab  <schwab@redhat.com>
76620
76621         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
76622
76623 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
76624
76625         POWER7 optimizations.
76626         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
76627         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
76628
76629 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
76630
76631         * version.h: Update for 2.13 development version.
76632
76633 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
76634
76635         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
76636         exceptions.  Return 0.
76637
76638 2010-05-07  Roland McGrath  <roland@redhat.com>
76639
76640         * elf/ldconfig.c (main): Add a const.
76641
76642 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
76643
76644         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
76645         (args_options): Add no-idn option.
76646         (ahosts_keys_int): Add idn_flags to ai_flags.
76647         (parse_option): Handle 'i' option to clear idn_flags.
76648
76649         * malloc/malloc.c (_int_free): Possible race in the most recently
76650         added check.  Only act on the data if no current modification
76651         happened.
76652
76653 See ChangeLog.17 for earlier changes.